/* Callcenter Dashboard Custom Styles */
/* Most styling is handled by Tailwind CSS CDN */

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* Focus styles */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #d4e157;
    outline-offset: 2px;
}

/* Table row animations */
tbody tr {
    transition: background-color 0.15s ease;
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal animations */
.modal-enter {
    animation: modalEnter 0.2s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Progress bar animation */
.progress-bar {
    transition: width 0.5s ease-out;
}

/* Audio player styling */
audio {
    width: 100%;
    border-radius: 8px;
}

audio::-webkit-media-controls-panel {
    background: #1a1a1a;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    border-left: 3px solid #4caf50;
}

.toast-error {
    border-left: 3px solid #ef5350;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .bg-surface {
        background: white !important;
        border-color: #ccc !important;
    }
}

/* RTL support placeholder */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-link svg {
    margin-left: 0.75rem;
    margin-right: 0;
}
