/* Main stylesheet for Zoho Syncinator */

/* Navigation link styles */
.nav-link {
    @apply rounded-lg px-3 py-2 text-sm font-medium text-white/80 hover:bg-white/10 hover:text-white transition-colors;
}

.nav-link-active {
    @apply bg-white/10 text-white;
}

/* Task card animations */
.task-card {
    transition: all 0.2s ease;
}

.task-card:hover {
    transform: translateY(-2px);
}

/* Sync button states */
.trigger-task.loading .sync-icon {
    animation: spin 1s linear infinite;
}

.trigger-task.completed {
    @apply bg-green-600 hover:bg-green-700;
}

.trigger-task.failed {
    @apply bg-red-600 hover:bg-red-700;
}

.trigger-task:disabled {
    @apply opacity-60 cursor-not-allowed;
}

/* Progress bar animation */
@keyframes progress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

.animate-progress {
    animation: progress 3s ease-in-out infinite;
}

/* Spin animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Toast animations */
.toast {
    transition: all 0.3s ease-out;
}

.toast.show {
    transform: translateX(0);
}

/* Job status row colors */
.job-row-started {
    @apply bg-yellow-50;
}

.job-row-finished {
    @apply bg-green-50;
}

.job-row-failed {
    @apply bg-red-50;
}

/* Status badge styles */
.status-badge {
    @apply inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium;
}

.status-badge-queued {
    @apply bg-gray-100 text-gray-800;
}

.status-badge-started {
    @apply bg-yellow-100 text-yellow-800;
}

.status-badge-finished {
    @apply bg-green-100 text-green-800;
}

.status-badge-failed {
    @apply bg-red-100 text-red-800;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    @apply bg-gray-100 rounded-full;
}

::-webkit-scrollbar-thumb {
    @apply bg-gray-300 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-400;
}

/* Loading skeleton */
.skeleton {
    @apply animate-pulse bg-gray-200 rounded;
}

/* Filter button active state */
.status-filter.active {
    @apply bg-primary-100 text-primary-700;
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.2s ease-in-out;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
    @apply outline-none ring-2 ring-primary-500 ring-offset-2;
}

/* Table row hover */
tbody tr:hover {
    @apply bg-gray-50;
}

/* Pre/code styling */
pre {
    @apply font-mono text-sm;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .task-card {
        padding: 1rem;
    }
}
