/* ==========================================================================
   SIPEMINATAN — SMAN 3 PALEMBANG
   Global Light Mode & Dark Mode System (CSS Variables)
   ========================================================================== */

:root,
html[data-theme="light"] {
    color-scheme: light;

    /* Light Mode Tokens */
    --sip-bg-primary: #f8fafc;
    --sip-bg-secondary: #f1f5f9;
    --sip-bg-tertiary: #e2e8f0;
    --sip-bg-card: #ffffff;
    --sip-bg-card-elevated: #ffffff;
    --sip-bg-navbar: rgba(255, 255, 255, 0.95);
    --sip-bg-sidebar: #122b4d;
    --sip-bg-input: #ffffff;
    --sip-bg-table-head: rgba(240, 245, 250, 0.85);
    --sip-bg-table-row-hover: rgba(241, 245, 249, 0.85);

    --sip-text-primary: #122b4d;
    --sip-text-heading: #0b1c33;
    --sip-text-body: #1e293b;
    --sip-text-secondary: #475569;
    --sip-text-muted: #64748b;

    --sip-border-subtle: #f1f5f9;
    --sip-border-color: #e2e8f0;
    --sip-border-strong: #cbd5e1;

    --sip-btn-primary-bg: #193a66;
    --sip-btn-primary-hover: #122b4d;
    --sip-btn-primary-text: #ffffff;
    --sip-btn-secondary-bg: #e0f2fe;
    --sip-btn-secondary-hover: #bae6fd;
    --sip-btn-secondary-text: #122b4d;
    --sip-btn-outline-bg: #ffffff;
    --sip-btn-outline-hover: #f8fafc;
    --sip-btn-outline-text: #334155;
    --sip-btn-outline-border: #cbd5e1;

    --sip-accent-sky: #0369a1;
    --sip-shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"],
html.dark {
    color-scheme: dark;

    /* Dark Mode Tokens — Navy Gelap & Abu-Abu Gelap Berkontras Tinggi */
    --sip-bg-primary: #0b1526;
    --sip-bg-secondary: #112038;
    --sip-bg-tertiary: #192d4d;
    --sip-bg-card: #152642;
    --sip-bg-card-elevated: #1c3256;
    --sip-bg-navbar: rgba(13, 24, 44, 0.95);
    --sip-bg-sidebar: #081120;
    --sip-bg-input: #0e1b31;
    --sip-bg-table-head: #1b3154;
    --sip-bg-table-row-hover: rgba(34, 62, 104, 0.55);

    --sip-text-primary: #f8fafc;
    --sip-text-heading: #ffffff;
    --sip-text-body: #e2e8f0;
    --sip-text-secondary: #cbd5e1;
    --sip-text-muted: #94a3b8;

    --sip-border-subtle: #1e3354;
    --sip-border-color: #263f66;
    --sip-border-strong: #365687;

    --sip-btn-primary-bg: #0284c7;
    --sip-btn-primary-hover: #0369a1;
    --sip-btn-primary-text: #ffffff;
    --sip-btn-secondary-bg: rgba(14, 165, 233, 0.18);
    --sip-btn-secondary-hover: rgba(14, 165, 233, 0.28);
    --sip-btn-secondary-text: #e0f2fe;
    --sip-btn-outline-bg: #182b49;
    --sip-btn-outline-hover: #213a61;
    --sip-btn-outline-text: #e2e8f0;
    --sip-btn-outline-border: #365687;

    --sip-accent-sky: #38bdf8;
    --sip-shadow-card: 0 4px 14px -2px rgba(2, 8, 23, 0.55), 0 2px 6px -1px rgba(2, 8, 23, 0.4);
}

/* ==========================================================================
   1. Smooth Theme Transition Animation
   ========================================================================== */
html.theme-transitioning,
html.theme-transitioning body,
html.theme-transitioning header,
html.theme-transitioning aside,
html.theme-transitioning main,
html.theme-transitioning section,
html.theme-transitioning footer,
html.theme-transitioning div,
html.theme-transitioning table,
html.theme-transitioning thead,
html.theme-transitioning tbody,
html.theme-transitioning tr,
html.theme-transitioning th,
html.theme-transitioning td,
html.theme-transitioning input,
html.theme-transitioning select,
html.theme-transitioning textarea,
html.theme-transitioning button,
html.theme-transitioning a,
html.theme-transitioning span,
html.theme-transitioning p,
html.theme-transitioning h1,
html.theme-transitioning h2,
html.theme-transitioning h3,
html.theme-transitioning h4 {
    transition:
        background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        fill 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ==========================================================================
   2. Theme Toggle Button Styling (☀️ Light Mode & 🌙 Dark Mode)
   ========================================================================== */
.sip-theme-toggle-btn {
    position: relative;
    user-select: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sip-theme-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.1);
}

.sip-theme-toggle-btn:active {
    transform: translateY(0);
}

/* 2.1 Mode Terang Aktif: Tampilkan Ikon Matahari (Sun), Sembunyikan Ikon Bulan */
html:not([data-theme="dark"]) .sip-theme-icon-sun {
    display: inline-flex !important;
    opacity: 1 !important;
    transform: rotate(0deg) scale(1) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease !important;
}

html:not([data-theme="dark"]) .sip-theme-icon-moon {
    display: none !important;
    opacity: 0 !important;
    transform: rotate(-90deg) scale(0.4) !important;
}

/* 2.2 Mode Gelap Aktif: Tampilkan Ikon Bulan (Moon), Sembunyikan Ikon Matahari */
html[data-theme="dark"] .sip-theme-icon-sun,
html.dark .sip-theme-icon-sun {
    display: none !important;
    opacity: 0 !important;
    transform: rotate(90deg) scale(0.4) !important;
}

html[data-theme="dark"] .sip-theme-icon-moon,
html.dark .sip-theme-icon-moon {
    display: inline-flex !important;
    opacity: 1 !important;
    transform: rotate(0deg) scale(1) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease !important;
}

/* Legacy Dual Pill Track Toggle (Backward Compatible) */
.sip-theme-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem;
    border-radius: 9999px;
    border: 1px solid var(--sip-border-strong);
    background-color: var(--sip-bg-secondary);
    cursor: pointer;
    user-select: none;
    transition: all 0.22s ease;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.sip-theme-toggle:hover {
    border-color: var(--sip-accent-sky);
}

.sip-theme-toggle:focus-visible {
    outline: 2px solid var(--sip-accent-sky);
    outline-offset: 2px;
}

.sip-theme-toggle-track {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.sip-theme-toggle-option {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.sip-theme-emoji {
    font-size: 0.85rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sip-theme-label {
    display: none;
}

@media (min-width: 1280px) {
    .sip-theme-label {
        display: inline;
    }
}

/* Active state in Light Mode */
html:not([data-theme="dark"]) .sip-theme-opt-light {
    background-color: #ffffff;
    color: #122b4d;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
}

html:not([data-theme="dark"]) .sip-theme-opt-light .sip-theme-emoji {
    transform: rotate(0deg) scale(1.08);
}

html:not([data-theme="dark"]) .sip-theme-opt-dark {
    background-color: transparent;
    color: #64748b;
    opacity: 0.75;
}

/* Active state in Dark Mode */
html[data-theme="dark"] .sip-theme-opt-dark,
html.dark .sip-theme-opt-dark {
    background-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.45);
}

html[data-theme="dark"] .sip-theme-opt-dark .sip-theme-emoji,
html.dark .sip-theme-opt-dark .sip-theme-emoji {
    transform: rotate(-12deg) scale(1.08);
}

html[data-theme="dark"] .sip-theme-opt-light,
html.dark .sip-theme-opt-light {
    background-color: transparent;
    color: #94a3b8;
    opacity: 0.75;
}

/* ==========================================================================
   3. Global Dark Mode Surface, Card, Text, Border & Component Overrides
   ========================================================================== */
@media screen {
    /* 3.1 Main Body & Canvas Backgrounds */
    html[data-theme="dark"] body,
    html.dark body {
        background-color: var(--sip-bg-primary) !important;
        color: var(--sip-text-body) !important;
    }

    html[data-theme="dark"] .bg-slate-50,
    html.dark .bg-slate-50 {
        background-color: var(--sip-bg-primary) !important;
    }

    html[data-theme="dark"] .bg-slate-50\/60,
    html[data-theme="dark"] .bg-slate-50\/70,
    html[data-theme="dark"] .bg-slate-50\/80,
    html[data-theme="dark"] .bg-slate-100,
    html.dark .bg-slate-50\/60,
    html.dark .bg-slate-50\/70,
    html.dark .bg-slate-50\/80,
    html.dark .bg-slate-100 {
        background-color: var(--sip-bg-secondary) !important;
    }

    html[data-theme="dark"] .bg-slate-200,
    html[data-theme="dark"] .bg-slate-200\/80,
    html.dark .bg-slate-200,
    html.dark .bg-slate-200\/80 {
        background-color: var(--sip-bg-tertiary) !important;
    }

    /* 3.2 Cards, Containers, Modals, Toasts & Navbars */
    html[data-theme="dark"] .bg-white,
    html.dark .bg-white {
        background-color: var(--sip-bg-card) !important;
        box-shadow: var(--sip-shadow-card);
    }

    html[data-theme="dark"] .bg-white\/95,
    html.dark .bg-white\/95 {
        background-color: var(--sip-bg-navbar) !important;
    }

    /* Sidebar distinction in Dark Mode */
    html[data-theme="dark"] #app-sidebar,
    html.dark #app-sidebar {
        background-color: var(--sip-bg-sidebar) !important;
        border-right: 1px solid var(--sip-border-subtle);
    }

    /* 3.3 Headings & Primary Text */
    html[data-theme="dark"] .text-navy-950,
    html[data-theme="dark"] .text-navy-900,
    html[data-theme="dark"] .text-slate-900,
    html[data-theme="dark"] .text-slate-800,
    html.dark .text-navy-950,
    html.dark .text-navy-900,
    html.dark .text-slate-900,
    html.dark .text-slate-800 {
        color: var(--sip-text-primary) !important;
    }

    html[data-theme="dark"] .text-navy-800,
    html.dark .text-navy-800 {
        color: #7dd3fc !important;
    }

    /* 3.4 Secondary & Muted Text */
    html[data-theme="dark"] .text-slate-700,
    html[data-theme="dark"] .text-slate-600,
    html.dark .text-slate-700,
    html.dark .text-slate-600 {
        color: var(--sip-text-secondary) !important;
    }

    html[data-theme="dark"] .text-slate-500,
    html[data-theme="dark"] .text-slate-400,
    html.dark .text-slate-500,
    html.dark .text-slate-400 {
        color: var(--sip-text-muted) !important;
    }

    /* 3.5 Sky Accent Text */
    html[data-theme="dark"] .text-sky-700,
    html[data-theme="dark"] .text-sky-800,
    html[data-theme="dark"] .text-sky-900,
    html[data-theme="dark"] .text-sky-950,
    html.dark .text-sky-700,
    html.dark .text-sky-800,
    html.dark .text-sky-900,
    html.dark .text-sky-950 {
        color: #38bdf8 !important;
    }

    /* 3.6 Borders & Dividers */
    html[data-theme="dark"] .border-slate-100,
    html[data-theme="dark"] .border-slate-200,
    html[data-theme="dark"] .border-slate-200\/80,
    html[data-theme="dark"] .border-navy-200,
    html.dark .border-slate-100,
    html.dark .border-slate-200,
    html.dark .border-slate-200\/80,
    html.dark .border-navy-200 {
        border-color: var(--sip-border-color) !important;
    }

    html[data-theme="dark"] .border-slate-300,
    html[data-theme="dark"] .border-slate-400,
    html.dark .border-slate-300,
    html.dark .border-slate-400 {
        border-color: var(--sip-border-strong) !important;
    }

    html[data-theme="dark"] .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
    html[data-theme="dark"] .divide-slate-200 > :not([hidden]) ~ :not([hidden]),
    html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
    html.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
        border-color: var(--sip-border-color) !important;
    }

    /* 3.7 Tables */
    html[data-theme="dark"] .bg-navy-50,
    html[data-theme="dark"] .bg-navy-50\/70,
    html.dark .bg-navy-50,
    html.dark .bg-navy-50\/70 {
        background-color: var(--sip-bg-table-head) !important;
        color: var(--sip-text-primary) !important;
    }

    html[data-theme="dark"] tr.hover\:bg-slate-50:hover,
    html[data-theme="dark"] tr.hover\:bg-slate-50\/60:hover,
    html[data-theme="dark"] tr.hover\:bg-slate-50\/70:hover,
    html[data-theme="dark"] tr.hover\:bg-slate-50\/80:hover,
    html[data-theme="dark"] tr.hover\:bg-sky-50\/40:hover,
    html.dark tr.hover\:bg-slate-50:hover,
    html.dark tr.hover\:bg-slate-50\/60:hover,
    html.dark tr.hover\:bg-slate-50\/70:hover,
    html.dark tr.hover\:bg-slate-50\/80:hover,
    html.dark tr.hover\:bg-sky-50\/40:hover {
        background-color: var(--sip-bg-table-row-hover) !important;
    }

    /* 3.8 Form Controls (Inputs, Selects, Textareas) */
    html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
    html[data-theme="dark"] select,
    html[data-theme="dark"] textarea,
    html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
    html.dark select,
    html.dark textarea {
        background-color: var(--sip-bg-input) !important;
        color: var(--sip-text-primary) !important;
        border-color: var(--sip-border-strong) !important;
    }

    html[data-theme="dark"] select option,
    html.dark select option {
        background-color: #0e1b31;
        color: #f8fafc;
    }

    html[data-theme="dark"] input::placeholder,
    html[data-theme="dark"] textarea::placeholder,
    html.dark input::placeholder,
    html.dark textarea::placeholder {
        color: #64748b !important;
    }

    html[data-theme="dark"] input:focus,
    html[data-theme="dark"] select:focus,
    html[data-theme="dark"] textarea:focus,
    html.dark input:focus,
    html.dark select:focus,
    html.dark textarea:focus {
        border-color: #38bdf8 !important;
        box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
    }

    html[data-theme="dark"] input[type="checkbox"],
    html[data-theme="dark"] input[type="radio"],
    html.dark input[type="checkbox"],
    html.dark input[type="radio"] {
        accent-color: #0284c7;
    }

    /* 3.9 Buttons & Interactive Hover States */
    html[data-theme="dark"] a.bg-navy-800,
    html[data-theme="dark"] button.bg-navy-800,
    html.dark a.bg-navy-800,
    html.dark button.bg-navy-800 {
        background-color: var(--sip-btn-primary-bg) !important;
        color: var(--sip-btn-primary-text) !important;
        border: 1px solid rgba(56, 189, 248, 0.3);
    }

    html[data-theme="dark"] a.bg-navy-800:hover,
    html[data-theme="dark"] button.bg-navy-800:hover,
    html.dark a.bg-navy-800:hover,
    html.dark button.bg-navy-800:hover {
        background-color: var(--sip-btn-primary-hover) !important;
    }

    html[data-theme="dark"] .hover\:bg-slate-50:hover,
    html[data-theme="dark"] .hover\:bg-slate-100:hover,
    html[data-theme="dark"] .hover\:bg-sky-50:hover,
    html.dark .hover\:bg-slate-50:hover,
    html.dark .hover\:bg-slate-100:hover,
    html.dark .hover\:bg-sky-50:hover {
        background-color: var(--sip-bg-card-elevated) !important;
    }

    html[data-theme="dark"] .hover\:text-navy-900:hover,
    html[data-theme="dark"] .hover\:text-slate-700:hover,
    html.dark .hover\:text-navy-900:hover,
    html.dark .hover\:text-slate-700:hover {
        color: #38bdf8 !important;
    }

    /* 3.10 Soft Tinted Cards, Alerts & Badges (Sky, Emerald, Amber, Rose, Teal, Indigo, Purple) */
    html[data-theme="dark"] .bg-sky-50,
    html[data-theme="dark"] .bg-sky-50\/40,
    html[data-theme="dark"] .bg-sky-50\/50,
    html[data-theme="dark"] .bg-sky-50\/60,
    html[data-theme="dark"] .bg-sky-50\/70,
    html[data-theme="dark"] .bg-sky-50\/80,
    html[data-theme="dark"] .bg-sky-100,
    html.dark .bg-sky-50,
    html.dark .bg-sky-50\/40,
    html.dark .bg-sky-50\/50,
    html.dark .bg-sky-50\/60,
    html.dark .bg-sky-50\/70,
    html.dark .bg-sky-50\/80,
    html.dark .bg-sky-100 {
        background-color: rgba(14, 165, 233, 0.16) !important;
        color: #e0f2fe !important;
    }

    /* Keep sky-100 buttons inside dark hero sections readable */
    html[data-theme="dark"] .hover\:bg-sky-200:hover,
    html.dark .hover\:bg-sky-200:hover {
        background-color: rgba(14, 165, 233, 0.28) !important;
    }

    html[data-theme="dark"] .border-sky-200,
    html[data-theme="dark"] .border-sky-200\/80,
    html[data-theme="dark"] .border-sky-300,
    html.dark .border-sky-200,
    html.dark .border-sky-200\/80,
    html.dark .border-sky-300 {
        border-color: rgba(56, 189, 248, 0.35) !important;
    }

    /* Emerald (Success / Social RIASEC) */
    html[data-theme="dark"] .bg-emerald-50,
    html[data-theme="dark"] .bg-emerald-50\/40,
    html[data-theme="dark"] .bg-emerald-50\/60,
    html[data-theme="dark"] .bg-emerald-100,
    html.dark .bg-emerald-50,
    html.dark .bg-emerald-50\/40,
    html.dark .bg-emerald-50\/60,
    html.dark .bg-emerald-100 {
        background-color: rgba(16, 185, 129, 0.15) !important;
        color: #d1fae5 !important;
    }

    html[data-theme="dark"] .border-emerald-200,
    html[data-theme="dark"] .border-emerald-300,
    html.dark .border-emerald-200,
    html.dark .border-emerald-300 {
        border-color: rgba(52, 211, 153, 0.35) !important;
    }

    html[data-theme="dark"] .text-emerald-700,
    html[data-theme="dark"] .text-emerald-800,
    html[data-theme="dark"] .text-emerald-900,
    html[data-theme="dark"] .text-emerald-950,
    html.dark .text-emerald-700,
    html.dark .text-emerald-800,
    html.dark .text-emerald-900,
    html.dark .text-emerald-950 {
        color: #6ee7b7 !important;
    }

    /* Amber (Warning / Enterprising RIASEC) */
    html[data-theme="dark"] .bg-amber-50,
    html[data-theme="dark"] .bg-amber-50\/40,
    html[data-theme="dark"] .bg-amber-50\/60,
    html[data-theme="dark"] .bg-amber-50\/80,
    html[data-theme="dark"] .bg-amber-100,
    html.dark .bg-amber-50,
    html.dark .bg-amber-50\/40,
    html.dark .bg-amber-50\/60,
    html.dark .bg-amber-50\/80,
    html.dark .bg-amber-100 {
        background-color: rgba(245, 158, 11, 0.15) !important;
        color: #fef3c7 !important;
    }

    html[data-theme="dark"] .border-amber-200,
    html[data-theme="dark"] .border-amber-300,
    html.dark .border-amber-200,
    html.dark .border-amber-300 {
        border-color: rgba(251, 191, 36, 0.35) !important;
    }

    html[data-theme="dark"] .text-amber-600,
    html[data-theme="dark"] .text-amber-700,
    html[data-theme="dark"] .text-amber-800,
    html[data-theme="dark"] .text-amber-900,
    html[data-theme="dark"] .text-amber-950,
    html.dark .text-amber-600,
    html.dark .text-amber-700,
    html.dark .text-amber-800,
    html.dark .text-amber-900,
    html.dark .text-amber-950 {
        color: #fcd34d !important;
    }

    /* Rose (Danger / Cost Criteria) */
    html[data-theme="dark"] .bg-rose-50,
    html.dark .bg-rose-50 {
        background-color: rgba(244, 63, 94, 0.15) !important;
        color: #ffe4e6 !important;
    }

    html[data-theme="dark"] .border-rose-200,
    html[data-theme="dark"] .border-rose-300,
    html[data-theme="dark"] .border-rose-400,
    html.dark .border-rose-200,
    html.dark .border-rose-300,
    html.dark .border-rose-400 {
        border-color: rgba(251, 113, 133, 0.4) !important;
    }

    html[data-theme="dark"] .text-rose-500,
    html[data-theme="dark"] .text-rose-600,
    html[data-theme="dark"] .text-rose-700,
    html[data-theme="dark"] .text-rose-800,
    html[data-theme="dark"] .text-rose-900,
    html.dark .text-rose-500,
    html.dark .text-rose-600,
    html.dark .text-rose-700,
    html.dark .text-rose-800,
    html.dark .text-rose-900 {
        color: #fda4af !important;
    }

    /* Teal (Realistic RIASEC) */
    html[data-theme="dark"] .bg-teal-50,
    html[data-theme="dark"] .bg-teal-50\/60,
    html[data-theme="dark"] .bg-teal-100,
    html.dark .bg-teal-50,
    html.dark .bg-teal-50\/60,
    html.dark .bg-teal-100 {
        background-color: rgba(20, 184, 166, 0.16) !important;
        color: #ccfbf1 !important;
    }

    html[data-theme="dark"] .border-teal-200,
    html.dark .border-teal-200 {
        border-color: rgba(45, 212, 191, 0.35) !important;
    }

    html[data-theme="dark"] .text-teal-800,
    html.dark .text-teal-800 {
        color: #5eead4 !important;
    }

    /* Indigo (Investigative RIASEC) */
    html[data-theme="dark"] .bg-indigo-50,
    html[data-theme="dark"] .bg-indigo-50\/60,
    html[data-theme="dark"] .bg-indigo-100,
    html.dark .bg-indigo-50,
    html.dark .bg-indigo-50\/60,
    html.dark .bg-indigo-100 {
        background-color: rgba(99, 102, 241, 0.18) !important;
        color: #e0e7ff !important;
    }

    html[data-theme="dark"] .border-indigo-200,
    html.dark .border-indigo-200 {
        border-color: rgba(129, 140, 248, 0.35) !important;
    }

    html[data-theme="dark"] .text-indigo-800,
    html.dark .text-indigo-800 {
        color: #a5b4fc !important;
    }

    /* Purple (Artistic RIASEC) */
    html[data-theme="dark"] .bg-purple-50,
    html[data-theme="dark"] .bg-purple-50\/60,
    html[data-theme="dark"] .bg-purple-100,
    html.dark .bg-purple-50,
    html.dark .bg-purple-50\/60,
    html.dark .bg-purple-100 {
        background-color: rgba(168, 85, 247, 0.18) !important;
        color: #f3e8ff !important;
    }

    html[data-theme="dark"] .border-purple-200,
    html.dark .border-purple-200 {
        border-color: rgba(192, 132, 252, 0.35) !important;
    }

    html[data-theme="dark"] .text-purple-800,
    html.dark .text-purple-800 {
        color: #d8b4fe !important;
    }

    /* 3.11 Special Gradients in Student Recommendations & Preference Wizard */
    html[data-theme="dark"] .from-sky-50\/70.to-white,
    html.dark .from-sky-50\/70.to-white {
        background-image: linear-gradient(to bottom, rgba(14, 165, 233, 0.16), var(--sip-bg-card)) !important;
    }

    html[data-theme="dark"] .from-emerald-50.to-teal-50,
    html.dark .from-emerald-50.to-teal-50 {
        background-image: linear-gradient(to right, rgba(16, 185, 129, 0.16), rgba(20, 184, 166, 0.16)) !important;
    }

    /* 3.12 Progress Bar & Ring Adjustments */
    html[data-theme="dark"] .ring-slate-200\/70,
    html.dark .ring-slate-200\/70 {
        --tw-ring-color: rgba(54, 86, 135, 0.6) !important;
    }

    html[data-theme="dark"] .bg-navy-700,
    html.dark .bg-navy-700 {
        background-color: #0284c7 !important;
    }

    html[data-theme="dark"] .border-navy-800\/80,
    html.dark .border-navy-800\/80 {
        border-color: #38bdf8 !important;
    }

    /* 3.13 SVG Hexagonal RIASEC Chart in Dark Mode */
    html[data-theme="dark"] svg[aria-label*="Grafik Heksagonal"] polygon[fill="#f8fafc"],
    html.dark svg[aria-label*="Grafik Heksagonal"] polygon[fill="#f8fafc"] {
        fill: rgba(14, 27, 49, 0.75) !important;
    }

    html[data-theme="dark"] svg[aria-label*="Grafik Heksagonal"] polygon[stroke="#cbd5e1"],
    html[data-theme="dark"] svg[aria-label*="Grafik Heksagonal"] line[stroke="#cbd5e1"],
    html.dark svg[aria-label*="Grafik Heksagonal"] polygon[stroke="#cbd5e1"],
    html.dark svg[aria-label*="Grafik Heksagonal"] line[stroke="#cbd5e1"] {
        stroke: #365687 !important;
    }

    html[data-theme="dark"] svg[aria-label*="Grafik Heksagonal"] polygon[stroke="#1e3a8a"],
    html.dark svg[aria-label*="Grafik Heksagonal"] polygon[stroke="#1e3a8a"] {
        fill: rgba(96, 165, 250, 0.28) !important;
        stroke: #60a5fa !important;
    }

    html[data-theme="dark"] svg[aria-label*="Grafik Heksagonal"] circle[fill="#1e3a8a"],
    html.dark svg[aria-label*="Grafik Heksagonal"] circle[fill="#1e3a8a"] {
        fill: #60a5fa !important;
    }

    html[data-theme="dark"] .fill-slate-800,
    html.dark .fill-slate-800 {
        fill: #f1f5f9 !important;
    }
}
