/* Custom styles for RapidQueue Admin Panel */

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

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-pulse {
    animation: pulse 2s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* View transitions */
.view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Navigation active state */
.nav-item {
    transition: all 0.2s ease;
    position: relative;
}

.nav-item.active {
    background-color: rgb(99 102 241 / 0.1);
    color: rgb(99 102 241);
    border-right: 3px solid rgb(99 102 241);
}

.nav-item:hover {
    transform: translateX(2px);
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Status indicators */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online { background-color: #10b981; }
.status-busy { background-color: #f59e0b; }
.status-offline { background-color: #6b7280; }
.status-error { background-color: #ef4444; }

/* Notification animations */
.notification-enter {
    transform: translateX(100%);
    opacity: 0;
}

.notification-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.notification-exit {
    transform: translateX(0);
    opacity: 1;
}

.notification-exit-active {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Table enhancements */
table {
    border-collapse: separate;
    border-spacing: 0;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f8fafc;
}

/* Form enhancements */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: rgb(99 102 241);
    border-color: rgb(99 102 241);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.badge-success {
    background-color: rgb(220 252 231);
    color: rgb(22 163 74);
}

.badge-warning {
    background-color: rgb(254 243 199);
    color: rgb(202 138 4);
}

.badge-error {
    background-color: rgb(254 226 226);
    color: rgb(220 38 38);
}

.badge-info {
    background-color: rgb(219 234 254);
    color: rgb(37 99 235);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .nav-item {
        padding: 0.75rem 1rem;
    }
    
    .nav-item span {
        font-size: 0.875rem;
    }
    
    .card-hover {
        margin-bottom: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
}

/* Print styles */
@media print {
    .nav-item, .sidebar, button {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Dark mode support (if needed later) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Utility classes */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-soft {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Custom focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid rgb(99 102 241);
    outline-offset: 2px;
}