/**
 * Volentis HR Interview Agent - Main Styles
 * TD-006: Extracted from index.html for better maintainability
 */

/* =========================================== */
/* Animations */
/* =========================================== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-enter {
    animation: slideIn 0.3s ease;
}

/* Toast animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.toast-enter {
    animation: slideInRight 0.3s ease;
}

.toast-exit {
    animation: slideOutRight 0.3s ease;
}

/* =========================================== */
/* Custom Scrollbar */
/* =========================================== */

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

/* =========================================== */
/* Sidebar */
/* =========================================== */

.sidebar-collapsed {
    width: 0;
    overflow: hidden;
}

/* =========================================== */
/* Glassmorphism Effects */
/* =========================================== */

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(45, 45, 45, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================== */
/* Smooth Transitions */
/* =========================================== */

* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* =========================================== */
/* Mobile Responsive */
/* =========================================== */

@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 50;
        transition: left 0.3s ease;
    }
    
    #sidebar.mobile-open {
        left: 0;
    }
    
    #sidebarBackdrop {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 40;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    #sidebarBackdrop.show {
        display: block;
        opacity: 1;
    }
    
    #mainContent {
        width: 100%;
    }
}

/* =========================================== */
/* Dark Mode */
/* =========================================== */

body.dark-mode {
    background-color: #1a1a1a;
    color: #e5e5e5;
}

body.dark-mode .bg-white {
    background-color: #2d2d2d !important;
}

body.dark-mode .bg-gray-50 {
    background-color: #1a1a1a !important;
}

body.dark-mode .bg-gray-100 {
    background-color: #2d2d2d !important;
}

body.dark-mode .bg-gray-200 {
    background-color: #3d3d3d !important;
}

body.dark-mode .text-gray-600 {
    color: #a0a0a0 !important;
}

body.dark-mode .text-gray-700 {
    color: #b0b0b0 !important;
}

body.dark-mode .text-gray-800 {
    color: #d0d0d0 !important;
}

body.dark-mode .text-gray-900 {
    color: #e5e5e5 !important;
}

body.dark-mode .border-gray-200 {
    border-color: #3d3d3d !important;
}

body.dark-mode .border-gray-300 {
    border-color: #4d4d4d !important;
}

body.dark-mode .hover\:bg-gray-100:hover {
    background-color: #3d3d3d !important;
}

body.dark-mode .hover\:bg-gray-200:hover {
    background-color: #4d4d4d !important;
}
