:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

/* --- LIGHT THEME OVERRIDES (Merah Putih) --- */
body.light-theme {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b; /* Slate-800 */
}

.light-theme .glass {
    background: rgba(255, 255, 255, 0.85); /* Lighter glass */
    border: 1px solid rgba(226, 232, 240, 0.8); /* Slate-200 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Force Text Colors override for Light Mode */
.light-theme .text-slate-500, 
.light-theme .text-slate-400,
.light-theme .text-slate-300 {
    color: #475569 !important; /* Slate-600 */
}

.light-theme .text-white {
    color: #1e293b !important; /* Slate-800 */
}

/* Red Accents (replacing Indigo/Blue) -> Merah Putih Theme */
.light-theme .text-indigo-400 {
    color: #dc2626 !important; /* Red-600 */
}

.light-theme .bg-indigo-600 {
    background-color: #dc2626 !important; /* Red-600 */
}

.light-theme .bg-indigo-500\/80 {
    background-color: rgba(220, 38, 38, 0.9) !important; /* Red-600 */
}

.light-theme .bg-indigo-500\/20 {
    background-color: rgba(220, 38, 38, 0.1) !important;
}

/* Progress bar gradient override: Red to White */
.light-theme .from-indigo-500 {
    --tw-gradient-from: #dc2626 !important; /* Red-600 */
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(220, 38, 38, 0));
}

.light-theme .to-cyan-500 {
    --tw-gradient-to: #e2e8f0 !important; /* Slate-200 (White-ish) */
}

/* Dark backgrounds to White/Light Gray */
.light-theme .bg-slate-900 {
    background-color: #f1f5f9 !important; /* Slate-100 */
    border-color: #cbd5e1 !important; /* Slate-300 */
}

.light-theme .bg-slate-800 {
    background-color: #e2e8f0 !important; /* Slate-200 */ 
    border-color: #cbd5e1 !important; /* Slate-300 */
}

.light-theme .shadow-\[0_0_20px_rgba\(99\,102\,241\,0\.5\)\] {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4) !important; /* Red Glow */
}

.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: var(--text-muted);
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.stat-card {
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

@media (max-width: 1024px) {
    .sidebar {
        left: -280px;
    }
    .sidebar.active {
        left: 0;
    }
    .main-content {
        margin-left: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}
