/**
 * Theme Styles - Advanced Theme System
 * Supports 6 themes with smooth transitions
 */

/* ========== Dark Theme ========== */
body.dark-theme {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --light-bg: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --border-color: #475569;
}

body.dark-theme .header,
body.dark-theme .card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.dark-theme .table thead {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

body.dark-theme .form-control {
    background: var(--bg-main);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-theme .submenu {
    background: var(--bg-main);
}

/* ========== Blue Theme ========== */
body.theme-blue {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
}

body.theme-blue .stat-icon.primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

/* ========== Green Theme ========== */
body.theme-green {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #d1fae5;
}

body.theme-green .stat-icon.primary {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* ========== Purple Theme ========== */
body.theme-purple {
    --primary-color: #a855f7;
    --primary-dark: #9333ea;
    --primary-light: #f3e8ff;
}

body.theme-purple .stat-icon.primary {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

/* ========== Orange Theme ========== */
body.theme-orange {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #ffedd5;
}

body.theme-orange .stat-icon.primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* ========== Theme Transitions ========== */
body,
.header,
.sidebar,
.card,
.btn,
.form-control,
.table thead {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========== Dark Mode Scrollbar ========== */
body.dark-theme .sidebar::-webkit-scrollbar-track {
    background: var(--bg-main);
}

body.dark-theme .sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

body.dark-theme .sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ========== Theme Specific Adjustments ========== */
body.dark-theme .lang-btn {
    color: var(--text-secondary);
}

body.dark-theme .lang-btn:hover {
    background: var(--bg-main);
}

body.dark-theme .lang-btn.active {
    background: var(--primary-color);
    color: white;
}

body.dark-theme .user-info:hover {
    background: var(--bg-main);
}

body.dark-theme .sidebar-menu>li>a:hover {
    background: var(--bg-main);
}

body.dark-theme .submenu li a:hover {
    background: var(--bg-card);
}

body.dark-theme .table-hover tbody tr:hover {
    background: var(--bg-main);
}

body.dark-theme .modal-content {
    background: var(--bg-card);
}

body.dark-theme .modal {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-theme .alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

body.dark-theme .alert-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

body.dark-theme .alert-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

body.dark-theme .alert-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}