/* ==========================================================================
   GCFINANCE ENTERPRISE DESIGN SYSTEM & MULTI-THEME ENGINE
   Calibrated for high-trust NZ Financial Advisory & Wealthtech SaaS.
   Supported Themes:
   1. pastel (Default) — Soft Blossom Pastel (Calm pearl, gentle lilac & rose)
   2. clean-light — Nordic Executive (Stripe/Mercury crisp white & sapphire)
   3. warm-sand — Warm Sand (Swiss editorial linen, warm stone & sage)
   4. midnight — Midnight Obsidian (Deep dark slate, high-contrast glow)
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL RESET & SMOOTH TRANSITIONS
   -------------------------------------------------------------------------- */
html, body {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ==========================================================================
   THEME 1: PASTEL BLOSSOM (Soft Calm Pastel, Light & Friendly)
   ========================================================================== */
html[data-theme="pastel"],
html:not([data-theme]) {
    color-scheme: light;
}

html[data-theme="pastel"] body,
html:not([data-theme]) body {
    background-color: #FBF9FD !important;
    color: #2D3748 !important;
}

/* Canvas, Sidebar & Core Containers */
html[data-theme="pastel"] .bg-slate-950,
html:not([data-theme]) .bg-slate-950 {
    background-color: #FBF9FD !important;
}

html[data-theme="pastel"] aside,
html:not([data-theme]) aside {
    background-color: #FFFFFF !important;
    border-color: #EDE8F2 !important;
}

html[data-theme="pastel"] header,
html:not([data-theme]) header {
    background-color: #FFFFFF !important;
    border-color: #EDE8F2 !important;
}

html[data-theme="pastel"] .bg-slate-900,
html[data-theme="pastel"] .bg-slate-900\/90,
html[data-theme="pastel"] .bg-slate-900\/80,
html[data-theme="pastel"] .bg-slate-900\/70,
html[data-theme="pastel"] .bg-slate-900\/60,
html[data-theme="pastel"] .bg-slate-900\/40,
html:not([data-theme]) .bg-slate-900,
html:not([data-theme]) .bg-slate-900\/90,
html:not([data-theme]) .bg-slate-900\/80,
html:not([data-theme]) .bg-slate-900\/70,
html:not([data-theme]) .bg-slate-900\/60,
html:not([data-theme]) .bg-slate-900\/40 {
    background-color: #FFFFFF !important;
}

/* Secondary Panels, Sub-cards & Row Backgrounds */
html[data-theme="pastel"] .bg-slate-800,
html[data-theme="pastel"] .bg-slate-850,
html[data-theme="pastel"] .bg-slate-950\/90,
html[data-theme="pastel"] .bg-slate-950\/80,
html[data-theme="pastel"] .bg-slate-950\/70,
html[data-theme="pastel"] .bg-slate-950\/60,
html[data-theme="pastel"] .bg-slate-950\/40,
html:not([data-theme]) .bg-slate-800,
html:not([data-theme]) .bg-slate-850,
html:not([data-theme]) .bg-slate-950\/90,
html:not([data-theme]) .bg-slate-950\/80,
html:not([data-theme]) .bg-slate-950\/70,
html:not([data-theme]) .bg-slate-950\/60,
html:not([data-theme]) .bg-slate-950\/40 {
    background-color: #F8F6FA !important;
}

/* Hairline Borders & Dividers */
html[data-theme="pastel"] .border-slate-800,
html[data-theme="pastel"] .border-slate-800\/90,
html[data-theme="pastel"] .border-slate-800\/80,
html[data-theme="pastel"] .border-slate-800\/60,
html[data-theme="pastel"] .border-slate-700,
html[data-theme="pastel"] .border-slate-700\/80,
html[data-theme="pastel"] .border-slate-700\/60,
html[data-theme="pastel"] .border-slate-900,
html[data-theme="pastel"] .divide-slate-800 > * + *,
html[data-theme="pastel"] .divide-slate-800\/80 > * + *,
html:not([data-theme]) .border-slate-800,
html:not([data-theme]) .border-slate-800\/90,
html:not([data-theme]) .border-slate-800\/80,
html:not([data-theme]) .border-slate-800\/60,
html:not([data-theme]) .border-slate-700,
html:not([data-theme]) .border-slate-700\/80,
html:not([data-theme]) .border-slate-700\/60,
html:not([data-theme]) .border-slate-900,
html:not([data-theme]) .divide-slate-800 > * + *,
html:not([data-theme]) .divide-slate-800\/80 > * + * {
    border-color: #EAE5F0 !important;
}

/* Typography Hierarchy — High Contrast & Deep Legibility */
html[data-theme="pastel"] .text-white,
html[data-theme="pastel"] .text-slate-100,
html:not([data-theme]) .text-white,
html:not([data-theme]) .text-slate-100 {
    color: #0F172A !important; /* Deep Obsidian Slate */
}

html[data-theme="pastel"] .text-slate-200,
html[data-theme="pastel"] .text-slate-300,
html:not([data-theme]) .text-slate-200,
html:not([data-theme]) .text-slate-300 {
    color: #1E293B !important; /* Deep Slate-800 */
}

html[data-theme="pastel"] .text-slate-400,
html:not([data-theme]) .text-slate-400 {
    color: #334155 !important; /* Rich Legible Slate-700 (8.5:1 contrast ratio) */
}

html[data-theme="pastel"] .text-slate-500,
html:not([data-theme]) .text-slate-500 {
    color: #475569 !important; /* Crisp Slate-600 (6.2:1 contrast ratio) */
}

/* Sidebar Navigation Items */
html[data-theme="pastel"] aside a,
html:not([data-theme]) aside a {
    color: #334155 !important;
    font-weight: 500;
}
html[data-theme="pastel"] aside a:hover,
html:not([data-theme]) aside a:hover {
    background-color: #F5F1FA !important;
    color: #1A132F !important;
}
html[data-theme="pastel"] aside a svg,
html[data-theme="pastel"] aside a i,
html:not([data-theme]) aside a svg,
html:not([data-theme]) aside a i {
    color: #64748B !important;
    stroke: #64748B !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}
html[data-theme="pastel"] aside a:hover svg,
html[data-theme="pastel"] aside a:hover i,
html:not([data-theme]) aside a:hover svg,
html:not([data-theme]) aside a:hover i {
    color: #63429E !important;
    stroke: #63429E !important;
}
html[data-theme="pastel"] aside a.bg-cyan-950\/80,
html[data-theme="pastel"] aside a.bg-indigo-950\/80,
html:not([data-theme]) aside a.bg-cyan-950\/80,
html:not([data-theme]) aside a.bg-indigo-950\/80 {
    background-color: #F1ECF9 !important;
    border-color: #DDD4EC !important;
    color: #63429E !important;
    font-weight: 700 !important;
}
html[data-theme="pastel"] aside a.bg-cyan-950\/80 i,
html[data-theme="pastel"] aside a.bg-cyan-950\/80 svg,
html[data-theme="pastel"] aside a.bg-indigo-950\/80 i,
html[data-theme="pastel"] aside a.bg-indigo-950\/80 svg,
html:not([data-theme]) aside a.bg-cyan-950\/80 i,
html:not([data-theme]) aside a.bg-cyan-950\/80 svg,
html:not([data-theme]) aside a.bg-indigo-950\/80 i,
html:not([data-theme]) aside a.bg-indigo-950\/80 svg {
    color: #7952B3 !important;
    stroke: #7952B3 !important;
}

/* All Table Rows & Hover (Eliminate Dark Slabs!) */
html[data-theme="pastel"] table,
html:not([data-theme]) table {
    background-color: #FFFFFF !important;
}
html[data-theme="pastel"] thead,
html:not([data-theme]) thead {
    background-color: #F8F6FA !important;
    border-bottom: 1px solid #EAE5F0 !important;
}
html[data-theme="pastel"] thead th,
html:not([data-theme]) thead th {
    color: #6B6280 !important;
    background-color: #F8F6FA !important;
}
html[data-theme="pastel"] tbody tr,
html:not([data-theme]) tbody tr {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #F1EDF5 !important;
}
html[data-theme="pastel"] tbody tr:hover,
html[data-theme="pastel"] tr.hover\:bg-slate-800\/50:hover,
html[data-theme="pastel"] tr.hover\:bg-slate-800\/60:hover,
html[data-theme="pastel"] .hover\:bg-slate-800\/50:hover,
html[data-theme="pastel"] .hover\:bg-slate-800\/60:hover,
html[data-theme="pastel"] .hover\:bg-slate-800:hover,
html:not([data-theme]) tbody tr:hover,
html:not([data-theme]) tr.hover\:bg-slate-800\/50:hover,
html:not([data-theme]) tr.hover\:bg-slate-800\/60:hover,
html:not([data-theme]) .hover\:bg-slate-800\/50:hover,
html:not([data-theme]) .hover\:bg-slate-800\/60:hover,
html:not([data-theme]) .hover\:bg-slate-800:hover {
    background-color: #F8F4FC !important;
}

/* Soft Pastel Accents & Badges */
html[data-theme="pastel"] [class*="bg-cyan-950"],
html:not([data-theme]) [class*="bg-cyan-950"] {
    background-color: #EBF8FF !important;
}
html[data-theme="pastel"] .text-cyan-400,
html[data-theme="pastel"] .text-cyan-300,
html[data-theme="pastel"] .text-cyan-200,
html[data-theme="pastel"] .text-cyan-100,
html:not([data-theme]) .text-cyan-400,
html:not([data-theme]) .text-cyan-300,
html:not([data-theme]) .text-cyan-200,
html:not([data-theme]) .text-cyan-100 {
    color: #0369A1 !important; /* High-contrast Oceanic Blue */
}
html[data-theme="pastel"] .border-cyan-800,
html[data-theme="pastel"] .border-cyan-700,
html:not([data-theme]) .border-cyan-800,
html:not([data-theme]) .border-cyan-700 {
    border-color: #BAE6FD !important;
}

html[data-theme="pastel"] [class*="bg-emerald-950"],
html:not([data-theme]) [class*="bg-emerald-950"] {
    background-color: #ECFDF5 !important;
}
html[data-theme="pastel"] .text-emerald-400,
html[data-theme="pastel"] .text-emerald-300,
html[data-theme="pastel"] .text-emerald-200,
html[data-theme="pastel"] .text-emerald-100,
html:not([data-theme]) .text-emerald-400,
html:not([data-theme]) .text-emerald-300,
html:not([data-theme]) .text-emerald-200,
html:not([data-theme]) .text-emerald-100 {
    color: #047857 !important; /* Deep Forest Emerald — High Contrast on Light */
}
html[data-theme="pastel"] .border-emerald-800,
html[data-theme="pastel"] .border-emerald-800\/80,
html[data-theme="pastel"] .border-emerald-700,
html:not([data-theme]) .border-emerald-800,
html:not([data-theme]) .border-emerald-800\/80,
html:not([data-theme]) .border-emerald-700 {
    border-color: #A7F3D0 !important;
}

html[data-theme="pastel"] [class*="bg-amber-950"],
html:not([data-theme]) [class*="bg-amber-950"] {
    background-color: #FFFBEB !important;
}
html[data-theme="pastel"] .text-amber-400,
html[data-theme="pastel"] .text-amber-300,
html[data-theme="pastel"] .text-amber-200,
html[data-theme="pastel"] .text-amber-100,
html:not([data-theme]) .text-amber-400,
html:not([data-theme]) .text-amber-300,
html:not([data-theme]) .text-amber-200,
html:not([data-theme]) .text-amber-100 {
    color: #B45309 !important; /* Deep Golden Amber */
}
html[data-theme="pastel"] .border-amber-800,
html[data-theme="pastel"] .border-amber-800\/80,
html[data-theme="pastel"] .border-amber-700,
html:not([data-theme]) .border-amber-800,
html:not([data-theme]) .border-amber-800\/80,
html:not([data-theme]) .border-amber-700 {
    border-color: #FDE68A !important;
}

html[data-theme="pastel"] [class*="bg-indigo-950"],
html:not([data-theme]) [class*="bg-indigo-950"] {
    background-color: #EEF2FF !important;
}
html[data-theme="pastel"] .text-indigo-400,
html[data-theme="pastel"] .text-indigo-300,
html[data-theme="pastel"] .text-indigo-200,
html[data-theme="pastel"] .text-indigo-100,
html:not([data-theme]) .text-indigo-400,
html:not([data-theme]) .text-indigo-300,
html:not([data-theme]) .text-indigo-200,
html:not([data-theme]) .text-indigo-100 {
    color: #4338CA !important; /* Deep Royal Indigo */
}
html[data-theme="pastel"] .border-indigo-800,
html[data-theme="pastel"] .border-indigo-700,
html:not([data-theme]) .border-indigo-800,
html:not([data-theme]) .border-indigo-700 {
    border-color: #C7D2FE !important;
}

/* Rose / Red (Statutory Alerts, Errors & Serious Incidents) */
html[data-theme="pastel"] [class*="bg-rose-950"],
html:not([data-theme]) [class*="bg-rose-950"] {
    background-color: #FFF1F2 !important;
}
html[data-theme="pastel"] .text-rose-400,
html[data-theme="pastel"] .text-rose-300,
html[data-theme="pastel"] .text-rose-200,
html[data-theme="pastel"] .text-rose-100,
html:not([data-theme]) .text-rose-400,
html:not([data-theme]) .text-rose-300,
html:not([data-theme]) .text-rose-200,
html:not([data-theme]) .text-rose-100 {
    color: #BE123C !important; /* Deep Crimson */
}
html[data-theme="pastel"] .border-rose-800,
html[data-theme="pastel"] .border-rose-800\/80,
html[data-theme="pastel"] .border-rose-700,
html:not([data-theme]) .border-rose-800,
html:not([data-theme]) .border-rose-800\/80,
html:not([data-theme]) .border-rose-700 {
    border-color: #FDA4AF !important;
}

/* Action Buttons (Refined & Elegant) */
html[data-theme="pastel"] button.bg-cyan-600,
html[data-theme="pastel"] a.bg-cyan-600,
html:not([data-theme]) button.bg-cyan-600,
html:not([data-theme]) a.bg-cyan-600 {
    background-color: #7952B3 !important;
    background-image: none !important;
    color: #FFFFFF !important;
}
html[data-theme="pastel"] button.bg-cyan-600:hover,
html[data-theme="pastel"] a.bg-cyan-600:hover,
html:not([data-theme]) button.bg-cyan-600:hover,
html:not([data-theme]) a.bg-cyan-600:hover {
    background-color: #66419E !important;
}

html[data-theme="pastel"] button.bg-emerald-600,
html:not([data-theme]) button.bg-emerald-600 {
    background-color: #059669 !important;
    color: #FFFFFF !important;
}
html[data-theme="pastel"] button.bg-emerald-600:hover,
html:not([data-theme]) button.bg-emerald-600:hover {
    background-color: #047857 !important;
}

/* Form Inputs & Controls */
html[data-theme="pastel"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme="pastel"] select,
html[data-theme="pastel"] textarea,
html:not([data-theme]) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html:not([data-theme]) select,
html:not([data-theme]) textarea {
    background-color: #FFFFFF !important;
    border-color: #E2DAEB !important;
    color: #1A132F !important;
}
html[data-theme="pastel"] input:focus,
html[data-theme="pastel"] select:focus,
html[data-theme="pastel"] textarea:focus,
html:not([data-theme]) input:focus,
html:not([data-theme]) select:focus,
html:not([data-theme]) textarea:focus {
    border-color: #7952B3 !important;
    box-shadow: 0 0 0 2px rgba(121, 82, 179, 0.15) !important;
}


/* ==========================================================================
   THEME 2: NORDIC EXECUTIVE CLEAN (Stripe / Mercury Bank Crisp White)
   ========================================================================== */
html[data-theme="clean-light"] {
    color-scheme: light;
}

html[data-theme="clean-light"] body {
    background-color: #F8FAFC !important;
    color: #1E293B !important;
}

html[data-theme="clean-light"] .bg-slate-950 {
    background-color: #F8FAFC !important;
}

html[data-theme="clean-light"] aside,
html[data-theme="clean-light"] header {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

html[data-theme="clean-light"] .bg-slate-900,
html[data-theme="clean-light"] .bg-slate-900\/90,
html[data-theme="clean-light"] .bg-slate-900\/80,
html[data-theme="clean-light"] .bg-slate-900\/70,
html[data-theme="clean-light"] .bg-slate-900\/60,
html[data-theme="clean-light"] .bg-slate-900\/40 {
    background-color: #FFFFFF !important;
}

html[data-theme="clean-light"] .bg-slate-800,
html[data-theme="clean-light"] .bg-slate-850,
html[data-theme="clean-light"] .bg-slate-950\/90,
html[data-theme="clean-light"] .bg-slate-950\/80,
html[data-theme="clean-light"] .bg-slate-950\/70,
html[data-theme="clean-light"] .bg-slate-950\/60,
html[data-theme="clean-light"] .bg-slate-950\/40 {
    background-color: #F8FAFC !important;
}

html[data-theme="clean-light"] .border-slate-800,
html[data-theme="clean-light"] .border-slate-800\/90,
html[data-theme="clean-light"] .border-slate-800\/80,
html[data-theme="clean-light"] .border-slate-800\/60,
html[data-theme="clean-light"] .border-slate-700,
html[data-theme="clean-light"] .border-slate-700\/80,
html[data-theme="clean-light"] .border-slate-700\/60,
html[data-theme="clean-light"] .border-slate-900,
html[data-theme="clean-light"] .divide-slate-800 > * + * {
    border-color: #E2E8F0 !important;
}

/* Typography Hierarchy */
html[data-theme="clean-light"] .text-white,
html[data-theme="clean-light"] .text-slate-100 {
    color: #0F172A !important; /* Deep Slate-900 */
}

html[data-theme="clean-light"] .text-slate-200,
html[data-theme="clean-light"] .text-slate-300 {
    color: #1E293B !important; /* Deep Slate-800 */
}

html[data-theme="clean-light"] .text-slate-400 {
    color: #334155 !important; /* High Contrast Slate-700 */
}

html[data-theme="clean-light"] .text-slate-500 {
    color: #475569 !important; /* Legible Slate-600 */
}

/* Sidebar Navigation Items */
html[data-theme="clean-light"] aside a {
    color: #334155 !important;
    font-weight: 500;
}
html[data-theme="clean-light"] aside a:hover {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
}
html[data-theme="clean-light"] aside a svg,
html[data-theme="clean-light"] aside a i {
    color: #64748B !important;
    stroke: #64748B !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}
html[data-theme="clean-light"] aside a:hover svg,
html[data-theme="clean-light"] aside a:hover i {
    color: #0284C7 !important;
    stroke: #0284C7 !important;
}
html[data-theme="clean-light"] aside a.bg-cyan-950\/80,
html[data-theme="clean-light"] aside a.bg-indigo-950\/80 {
    background-color: #F0F9FF !important;
    border-color: #BAE6FD !important;
    color: #0284C7 !important;
    font-weight: 700 !important;
}
html[data-theme="clean-light"] aside a.bg-cyan-950\/80 i,
html[data-theme="clean-light"] aside a.bg-cyan-950\/80 svg,
html[data-theme="clean-light"] aside a.bg-indigo-950\/80 i,
html[data-theme="clean-light"] aside a.bg-indigo-950\/80 svg {
    color: #0284C7 !important;
    stroke: #0284C7 !important;
}

/* Tables & Rows */
html[data-theme="clean-light"] table {
    background-color: #FFFFFF !important;
}
html[data-theme="clean-light"] thead {
    background-color: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
}
html[data-theme="clean-light"] thead th {
    color: #475569 !important;
    background-color: #F8FAFC !important;
}
html[data-theme="clean-light"] tbody tr {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #F1F5F9 !important;
}
html[data-theme="clean-light"] tbody tr:hover,
html[data-theme="clean-light"] tr.hover\:bg-slate-800\/50:hover,
html[data-theme="clean-light"] tr.hover\:bg-slate-800\/60:hover,
html[data-theme="clean-light"] .hover\:bg-slate-800\/50:hover,
html[data-theme="clean-light"] .hover\:bg-slate-800\/60:hover {
    background-color: #F8FAFC !important;
}

/* High-Contrast Corporate Accents */
html[data-theme="clean-light"] [class*="bg-cyan-950"] {
    background-color: #F0F9FF !important;
}
html[data-theme="clean-light"] .text-cyan-400,
html[data-theme="clean-light"] .text-cyan-300,
html[data-theme="clean-light"] .text-cyan-200,
html[data-theme="clean-light"] .text-cyan-100 {
    color: #0284C7 !important;
}
html[data-theme="clean-light"] .border-cyan-800,
html[data-theme="clean-light"] .border-cyan-700 {
    border-color: #BAE6FD !important;
}

html[data-theme="clean-light"] [class*="bg-emerald-950"] {
    background-color: #ECFDF5 !important;
}
html[data-theme="clean-light"] .text-emerald-400,
html[data-theme="clean-light"] .text-emerald-300,
html[data-theme="clean-light"] .text-emerald-200,
html[data-theme="clean-light"] .text-emerald-100 {
    color: #047857 !important; /* Deep Forest Emerald */
}
html[data-theme="clean-light"] .border-emerald-800,
html[data-theme="clean-light"] .border-emerald-700 {
    border-color: #A7F3D0 !important;
}

html[data-theme="clean-light"] [class*="bg-amber-950"] {
    background-color: #FFFBEB !important;
}
html[data-theme="clean-light"] .text-amber-400,
html[data-theme="clean-light"] .text-amber-300,
html[data-theme="clean-light"] .text-amber-200,
html[data-theme="clean-light"] .text-amber-100 {
    color: #B45309 !important;
}
html[data-theme="clean-light"] .border-amber-800,
html[data-theme="clean-light"] .border-amber-700 {
    border-color: #FDE68A !important;
}

html[data-theme="clean-light"] [class*="bg-indigo-950"] {
    background-color: #EEF2FF !important;
}
html[data-theme="clean-light"] .text-indigo-400,
html[data-theme="clean-light"] .text-indigo-300,
html[data-theme="clean-light"] .text-indigo-200,
html[data-theme="clean-light"] .text-indigo-100 {
    color: #4338CA !important;
}
html[data-theme="clean-light"] .border-indigo-800,
html[data-theme="clean-light"] .border-indigo-700 {
    border-color: #C7D2FE !important;
}

html[data-theme="clean-light"] [class*="bg-rose-950"] {
    background-color: #FFF1F2 !important;
}
html[data-theme="clean-light"] .text-rose-400,
html[data-theme="clean-light"] .text-rose-300,
html[data-theme="clean-light"] .text-rose-200,
html[data-theme="clean-light"] .text-rose-100 {
    color: #BE123C !important;
}
html[data-theme="clean-light"] .border-rose-800,
html[data-theme="clean-light"] .border-rose-700 {
    border-color: #FDA4AF !important;
}
html[data-theme="clean-light"] .border-indigo-800 {
    border-color: #C7D2FE !important;
}

/* Action Buttons */
html[data-theme="clean-light"] button.bg-cyan-600,
html[data-theme="clean-light"] a.bg-cyan-600 {
    background-color: #0284C7 !important;
    background-image: none !important;
    color: #FFFFFF !important;
}
html[data-theme="clean-light"] button.bg-cyan-600:hover,
html[data-theme="clean-light"] a.bg-cyan-600:hover {
    background-color: #0369A1 !important;
}

html[data-theme="clean-light"] button.bg-emerald-600 {
    background-color: #059669 !important;
    color: #FFFFFF !important;
}
html[data-theme="clean-light"] button.bg-emerald-600:hover {
    background-color: #047857 !important;
}

/* Form Inputs */
html[data-theme="clean-light"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme="clean-light"] select,
html[data-theme="clean-light"] textarea {
    background-color: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}
html[data-theme="clean-light"] input:focus,
html[data-theme="clean-light"] select:focus,
html[data-theme="clean-light"] textarea:focus {
    border-color: #0284C7 !important;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15) !important;
}


/* ==========================================================================
   THEME 3: WARM SAND (Swiss Editorial Linen & Sage)
   ========================================================================== */
html[data-theme="warm-sand"] {
    color-scheme: light;
}

html[data-theme="warm-sand"] body {
    background-color: #FAF8F5 !important;
    color: #292524 !important;
}

html[data-theme="warm-sand"] .bg-slate-950 {
    background-color: #FAF8F5 !important;
}

html[data-theme="warm-sand"] aside {
    background-color: #F5F1EB !important;
    border-color: #E8E2D8 !important;
}

html[data-theme="warm-sand"] header {
    background-color: #FFFFFF !important;
    border-color: #E8E2D8 !important;
}

html[data-theme="warm-sand"] .bg-slate-900,
html[data-theme="warm-sand"] .bg-slate-900\/90,
html[data-theme="warm-sand"] .bg-slate-900\/80,
html[data-theme="warm-sand"] .bg-slate-900\/70,
html[data-theme="warm-sand"] .bg-slate-900\/60,
html[data-theme="warm-sand"] .bg-slate-900\/40 {
    background-color: #FFFFFF !important;
}

html[data-theme="warm-sand"] .bg-slate-800,
html[data-theme="warm-sand"] .bg-slate-850,
html[data-theme="warm-sand"] .bg-slate-950\/90,
html[data-theme="warm-sand"] .bg-slate-950\/80,
html[data-theme="warm-sand"] .bg-slate-950\/70,
html[data-theme="warm-sand"] .bg-slate-950\/60,
html[data-theme="warm-sand"] .bg-slate-950\/40 {
    background-color: #F8F5EF !important;
}

html[data-theme="warm-sand"] .border-slate-800,
html[data-theme="warm-sand"] .border-slate-800\/90,
html[data-theme="warm-sand"] .border-slate-800\/80,
html[data-theme="warm-sand"] .border-slate-800\/60,
html[data-theme="warm-sand"] .border-slate-700,
html[data-theme="warm-sand"] .border-slate-700\/80,
html[data-theme="warm-sand"] .border-slate-700\/60,
html[data-theme="warm-sand"] .border-slate-900,
html[data-theme="warm-sand"] .divide-slate-800 > * + * {
    border-color: #E8E2D8 !important;
}

/* Typography Hierarchy */
html[data-theme="warm-sand"] .text-white,
html[data-theme="warm-sand"] .text-slate-100 {
    color: #1C1917 !important; /* Rich Warm Espresso */
}

html[data-theme="warm-sand"] .text-slate-200,
html[data-theme="warm-sand"] .text-slate-300 {
    color: #292524 !important; /* Stone-800 */
}

html[data-theme="warm-sand"] .text-slate-400 {
    color: #44403C !important; /* High Contrast Stone-700 */
}

html[data-theme="warm-sand"] .text-slate-500 {
    color: #57534E !important; /* Legible Stone-600 */
}

/* Sidebar Navigation Items */
html[data-theme="warm-sand"] aside a {
    color: #44403C !important;
    font-weight: 500;
}
html[data-theme="warm-sand"] aside a:hover {
    background-color: #ECE6DC !important;
    color: #1C1917 !important;
}
html[data-theme="warm-sand"] aside a svg,
html[data-theme="warm-sand"] aside a i {
    color: #78716C !important;
    stroke: #78716C !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}
html[data-theme="warm-sand"] aside a:hover svg,
html[data-theme="warm-sand"] aside a:hover i {
    color: #B45309 !important;
    stroke: #B45309 !important;
}
html[data-theme="warm-sand"] aside a.bg-cyan-950\/80,
html[data-theme="warm-sand"] aside a.bg-indigo-950\/80 {
    background-color: #E6E0D4 !important;
    border-color: #D6CEC0 !important;
    color: #292524 !important;
    font-weight: 700 !important;
}
html[data-theme="warm-sand"] aside a.bg-cyan-950\/80 i,
html[data-theme="warm-sand"] aside a.bg-cyan-950\/80 svg,
html[data-theme="warm-sand"] aside a.bg-indigo-950\/80 i,
html[data-theme="warm-sand"] aside a.bg-indigo-950\/80 svg {
    color: #92400E !important;
    stroke: #92400E !important;
}

/* Tables & Rows */
html[data-theme="warm-sand"] table {
    background-color: #FFFFFF !important;
}
html[data-theme="warm-sand"] thead {
    background-color: #F8F5EF !important;
    border-bottom: 1px solid #E8E2D8 !important;
}
html[data-theme="warm-sand"] thead th {
    color: #57534E !important;
    background-color: #F8F5EF !important;
}
html[data-theme="warm-sand"] tbody tr {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #F2EEE6 !important;
}
html[data-theme="warm-sand"] tbody tr:hover,
html[data-theme="warm-sand"] tr.hover\:bg-slate-800\/50:hover,
html[data-theme="warm-sand"] tr.hover\:bg-slate-800\/60:hover,
html[data-theme="warm-sand"] .hover\:bg-slate-800\/50:hover,
html[data-theme="warm-sand"] .hover\:bg-slate-800\/60:hover {
    background-color: #F8F5EF !important;
}

/* Warm Earth Accents */
html[data-theme="warm-sand"] [class*="bg-cyan-950"] {
    background-color: #F0FDF4 !important;
}
html[data-theme="warm-sand"] .text-cyan-400,
html[data-theme="warm-sand"] .text-cyan-300,
html[data-theme="warm-sand"] .text-cyan-200,
html[data-theme="warm-sand"] .text-cyan-100 {
    color: #0F766E !important;
}
html[data-theme="warm-sand"] .border-cyan-800,
html[data-theme="warm-sand"] .border-cyan-700 {
    border-color: #99F6E4 !important;
}

html[data-theme="warm-sand"] [class*="bg-emerald-950"] {
    background-color: #ECFDF5 !important;
}
html[data-theme="warm-sand"] .text-emerald-400,
html[data-theme="warm-sand"] .text-emerald-300,
html[data-theme="warm-sand"] .text-emerald-200,
html[data-theme="warm-sand"] .text-emerald-100 {
    color: #047857 !important;
}
html[data-theme="warm-sand"] .border-emerald-800,
html[data-theme="warm-sand"] .border-emerald-700 {
    border-color: #A7F3D0 !important;
}

html[data-theme="warm-sand"] [class*="bg-indigo-950"] {
    background-color: #EEF2FF !important;
}
html[data-theme="warm-sand"] .text-indigo-400,
html[data-theme="warm-sand"] .text-indigo-300,
html[data-theme="warm-sand"] .text-indigo-200,
html[data-theme="warm-sand"] .text-indigo-100 {
    color: #4338CA !important;
}
html[data-theme="warm-sand"] .border-indigo-800,
html[data-theme="warm-sand"] .border-indigo-700 {
    border-color: #C7D2FE !important;
}

html[data-theme="warm-sand"] [class*="bg-amber-950"] {
    background-color: #FFFBEB !important;
}
html[data-theme="warm-sand"] .text-amber-400,
html[data-theme="warm-sand"] .text-amber-300,
html[data-theme="warm-sand"] .text-amber-200,
html[data-theme="warm-sand"] .text-amber-100 {
    color: #B45309 !important;
}
html[data-theme="warm-sand"] .border-amber-800,
html[data-theme="warm-sand"] .border-amber-700 {
    border-color: #FDE68A !important;
}

html[data-theme="warm-sand"] [class*="bg-rose-950"] {
    background-color: #FFF1F2 !important;
}
html[data-theme="warm-sand"] .text-rose-400,
html[data-theme="warm-sand"] .text-rose-300,
html[data-theme="warm-sand"] .text-rose-200,
html[data-theme="warm-sand"] .text-rose-100 {
    color: #BE123C !important;
}
html[data-theme="warm-sand"] .border-rose-800,
html[data-theme="warm-sand"] .border-rose-700 {
    border-color: #FDA4AF !important;
}

html[data-theme="warm-sand"] button.bg-cyan-600,
html[data-theme="warm-sand"] a.bg-cyan-600 {
    background-color: #0F766E !important;
    background-image: none !important;
    color: #FFFFFF !important;
}
html[data-theme="warm-sand"] button.bg-cyan-600:hover,
html[data-theme="warm-sand"] a.bg-cyan-600:hover {
    background-color: #115E59 !important;
}


/* ==========================================================================
   THEME 4: MIDNIGHT OBSIDIAN (Classic Deep Dark Slate)
   ========================================================================== */
html[data-theme="midnight"] {
    color-scheme: dark;
}

html[data-theme="midnight"] body {
    background-color: #030712 !important;
    color: #F1F5F9 !important;
}

html[data-theme="midnight"] .bg-slate-950 {
    background-color: #030712 !important;
}

html[data-theme="midnight"] aside,
html[data-theme="midnight"] header {
    background-color: #0F172A !important;
    border-color: #1E293B !important;
}

html[data-theme="midnight"] .bg-slate-900 {
    background-color: #0B1120 !important;
}

html[data-theme="midnight"] .bg-slate-800 {
    background-color: #1E293B !important;
}

html[data-theme="midnight"] .border-slate-800 {
    border-color: #1E293B !important;
}

html[data-theme="midnight"] .text-white {
    color: #FFFFFF !important;
}

html[data-theme="midnight"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme="midnight"] select,
html[data-theme="midnight"] textarea {
    background-color: #020617 !important;
    border-color: #1E293B !important;
    color: #F8FAFC !important;
}


/* ==========================================================================
   THEME DROPDOWN & CONTROL WIDGET
   ========================================================================== */
.theme-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

html[data-theme="pastel"] .theme-picker-btn,
html:not([data-theme]) .theme-picker-btn {
    background-color: #FFFFFF;
    border: 1px solid #EAE5F0;
    color: #1A132F;
}

html[data-theme="clean-light"] .theme-picker-btn {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #0F172A;
}

html[data-theme="warm-sand"] .theme-picker-btn {
    background-color: #FFFFFF;
    border: 1px solid #E8E2D8;
    color: #292524;
}

html[data-theme="midnight"] .theme-picker-btn {
    background-color: #1E293B;
    border: 1px solid #334155;
    color: #F8FAFC;
}

.theme-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 220px;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

html[data-theme="pastel"] .theme-dropdown,
html:not([data-theme]) .theme-dropdown {
    background-color: #FFFFFF;
    border: 1px solid #EDE8F2;
}

html[data-theme="clean-light"] .theme-dropdown {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
}

html[data-theme="warm-sand"] .theme-dropdown {
    background-color: #FFFFFF;
    border: 1px solid #E8E2D8;
}

html[data-theme="midnight"] .theme-dropdown {
    background-color: #0F172A;
    border: 1px solid #334155;
}

.theme-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

html[data-theme="pastel"] .theme-option:hover,
html:not([data-theme]) .theme-option:hover {
    background-color: #F5F1FA;
}

html[data-theme="clean-light"] .theme-option:hover {
    background-color: #F1F5F9;
}

html[data-theme="warm-sand"] .theme-option:hover {
    background-color: #F8F5EF;
}

html[data-theme="midnight"] .theme-option:hover {
    background-color: #1E293B;
}

/* Scrollbars */
html[data-theme="pastel"] ::-webkit-scrollbar-track,
html:not([data-theme]) ::-webkit-scrollbar-track {
    background-color: #FBF9FD;
}
html[data-theme="pastel"] ::-webkit-scrollbar-thumb,
html:not([data-theme]) ::-webkit-scrollbar-thumb {
    background-color: #DDD4EC;
    border-radius: 4px;
}

html[data-theme="clean-light"] ::-webkit-scrollbar-track {
    background-color: #F8FAFC;
}
html[data-theme="clean-light"] ::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 4px;
}

html[data-theme="warm-sand"] ::-webkit-scrollbar-track {
    background-color: #FAF8F5;
}
html[data-theme="warm-sand"] ::-webkit-scrollbar-thumb {
    background-color: #D6CEC0;
    border-radius: 4px;
}

/* ==========================================================================
   UNIVERSAL TOAST NOTIFICATIONS & POPUP MODALS
   Guarantees high-contrast legibility, crisp text, and bold visibility.
   ========================================================================== */

/* 1. Flash Toast Notifications (.gc-toast-popup) */
.gc-toast-popup {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0.875rem !important;
}

html[data-theme="pastel"] .gc-toast-popup,
html[data-theme="clean-light"] .gc-toast-popup,
html[data-theme="warm-sand"] .gc-toast-popup,
html:not([data-theme]) .gc-toast-popup {
    background-color: #FFFFFF !important;
    border: 1px solid #10B981 !important;
    border-left: 5px solid #059669 !important;
    color: #0F172A !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}
html[data-theme="pastel"] .gc-toast-popup .gc-toast-icon,
html[data-theme="clean-light"] .gc-toast-popup .gc-toast-icon,
html[data-theme="warm-sand"] .gc-toast-popup .gc-toast-icon,
html:not([data-theme]) .gc-toast-popup .gc-toast-icon {
    color: #059669 !important;
}
html[data-theme="pastel"] .gc-toast-popup .gc-toast-text,
html[data-theme="clean-light"] .gc-toast-popup .gc-toast-text,
html[data-theme="warm-sand"] .gc-toast-popup .gc-toast-text,
html:not([data-theme]) .gc-toast-popup .gc-toast-text {
    color: #0F172A !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
}
html[data-theme="pastel"] .gc-toast-popup .gc-toast-close,
html[data-theme="clean-light"] .gc-toast-popup .gc-toast-close,
html[data-theme="warm-sand"] .gc-toast-popup .gc-toast-close,
html:not([data-theme]) .gc-toast-popup .gc-toast-close {
    color: #64748B !important;
}
html[data-theme="pastel"] .gc-toast-popup .gc-toast-close:hover,
html[data-theme="clean-light"] .gc-toast-popup .gc-toast-close:hover,
html[data-theme="warm-sand"] .gc-toast-popup .gc-toast-close:hover,
html:not([data-theme]) .gc-toast-popup .gc-toast-close:hover {
    color: #0F172A !important;
}

html[data-theme="midnight"] .gc-toast-popup {
    background-color: #0F172A !important;
    border: 1px solid #334155 !important;
    border-left: 5px solid #10B981 !important;
    color: #F8FAFC !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.7) !important;
}
html[data-theme="midnight"] .gc-toast-popup .gc-toast-icon {
    color: #34D399 !important;
}
html[data-theme="midnight"] .gc-toast-popup .gc-toast-text {
    color: #F8FAFC !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
}
html[data-theme="midnight"] .gc-toast-popup .gc-toast-close {
    color: #94A3B8 !important;
}
html[data-theme="midnight"] .gc-toast-popup .gc-toast-close:hover {
    color: #FFFFFF !important;
}

/* 2. Universal Modal Popups in Light Themes */
html[data-theme="pastel"] .fixed.inset-0.z-50:not(.gc-screen-help-container),
html[data-theme="clean-light"] .fixed.inset-0.z-50:not(.gc-screen-help-container),
html[data-theme="warm-sand"] .fixed.inset-0.z-50:not(.gc-screen-help-container),
html:not([data-theme]) .fixed.inset-0.z-50:not(.gc-screen-help-container) {
    background-color: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(2px) !important;
}

/* Modal Dialog Cards (Only center modal cards, never full-screen backdrop overlays or drawer wrappers!) */
html[data-theme="pastel"] .fixed.inset-0.z-50:not(.gc-screen-help-container) > div:not(.fixed):not(.gc-drawer-wrapper):not(.gc-drawer-backdrop),
html[data-theme="clean-light"] .fixed.inset-0.z-50:not(.gc-screen-help-container) > div:not(.fixed):not(.gc-drawer-wrapper):not(.gc-drawer-backdrop),
html[data-theme="warm-sand"] .fixed.inset-0.z-50:not(.gc-screen-help-container) > div:not(.fixed):not(.gc-drawer-wrapper):not(.gc-drawer-backdrop),
html:not([data-theme]) .fixed.inset-0.z-50:not(.gc-screen-help-container) > div:not(.fixed):not(.gc-drawer-wrapper):not(.gc-drawer-backdrop) {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    color: #0F172A !important;
}

/* Help Drawer Explicit Rules: Guarantees background page is ALWAYS visible */
.gc-screen-help-container {
    background-color: transparent !important;
    backdrop-filter: none !important;
}
.gc-drawer-backdrop,
.fixed.inset-0.z-50 > div.gc-drawer-backdrop,
.fixed.inset-0.z-50 .gc-drawer-backdrop {
    background-color: rgba(15, 23, 42, 0.25) !important;
    backdrop-filter: blur(1px) !important;
    border: none !important;
    box-shadow: none !important;
}
.gc-drawer-wrapper,
.fixed.inset-0.z-50 > div.gc-drawer-wrapper {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Help Drawer Card Content in Light Themes */
html[data-theme="pastel"] .gc-help-drawer-card,
html[data-theme="clean-light"] .gc-help-drawer-card,
html[data-theme="warm-sand"] .gc-help-drawer-card,
html:not([data-theme]) .gc-help-drawer-card {
    background-color: #FFFFFF !important;
    border-left: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
    box-shadow: -10px 0 35px -5px rgba(0, 0, 0, 0.15) !important;
}

/* Modal form controls */
html[data-theme="pastel"] .fixed.inset-0.z-50 label,
html[data-theme="clean-light"] .fixed.inset-0.z-50 label,
html[data-theme="warm-sand"] .fixed.inset-0.z-50 label,
html:not([data-theme]) .fixed.inset-0.z-50 label {
    color: #1E293B !important;
    font-weight: 600 !important;
}

html[data-theme="pastel"] .fixed.inset-0.z-50 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme="pastel"] .fixed.inset-0.z-50 select,
html[data-theme="pastel"] .fixed.inset-0.z-50 textarea,
html[data-theme="clean-light"] .fixed.inset-0.z-50 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme="clean-light"] .fixed.inset-0.z-50 select,
html[data-theme="clean-light"] .fixed.inset-0.z-50 textarea,
html[data-theme="warm-sand"] .fixed.inset-0.z-50 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme="warm-sand"] .fixed.inset-0.z-50 select,
html[data-theme="warm-sand"] .fixed.inset-0.z-50 textarea,
html:not([data-theme]) .fixed.inset-0.z-50 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html:not([data-theme]) .fixed.inset-0.z-50 select,
html:not([data-theme]) .fixed.inset-0.z-50 textarea {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
}

html[data-theme="pastel"] .fixed.inset-0.z-50 button.bg-slate-800,
html[data-theme="clean-light"] .fixed.inset-0.z-50 button.bg-slate-800,
html[data-theme="warm-sand"] .fixed.inset-0.z-50 button.bg-slate-800,
html:not([data-theme]) .fixed.inset-0.z-50 button.bg-slate-800 {
    background-color: #F1F5F9 !important;
    color: #334155 !important;
    border: 1px solid #CBD5E1 !important;
    font-weight: 600 !important;
}
html[data-theme="pastel"] .fixed.inset-0.z-50 button.bg-slate-800:hover,
html[data-theme="clean-light"] .fixed.inset-0.z-50 button.bg-slate-800:hover,
html[data-theme="warm-sand"] .fixed.inset-0.z-50 button.bg-slate-800:hover,
html:not([data-theme]) .fixed.inset-0.z-50 button.bg-slate-800:hover {
    background-color: #E2E8F0 !important;
    color: #0F172A !important;
}

/* 3. Universal Dropdown Options & Placeholders */
select option {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}
html[data-theme="midnight"] select option {
    background-color: #0F172A !important;
    color: #F8FAFC !important;
}

::placeholder {
    color: #64748B !important;
    opacity: 1 !important;
}
html[data-theme="midnight"] ::placeholder {
    color: #64748B !important;
}

/* ==========================================================================
   4. PIPELINE & DEAL STAGE PROGRESS STEPPERS (.gc-stage-step)
   ========================================================================== */
.gc-stage-step {
    border-radius: 0.625rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    padding: 0.5rem 0.5rem !important;
    transition: all 0.15s ease-in-out !important;
}

/* Light Themes Active & Inactive Variants (Pastel, Clean Light, Warm Sand, Fallback) */
html[data-theme="pastel"] .gc-stage-step.is-active-indigo,
html[data-theme="clean-light"] .gc-stage-step.is-active-indigo,
html[data-theme="warm-sand"] .gc-stage-step.is-active-indigo,
html:not([data-theme]) .gc-stage-step.is-active-indigo {
    background-color: #EEF2FF !important;
    border: 1.5px solid #A5B4FC !important;
    color: #312E81 !important;
    box-shadow: 0 1px 3px rgba(67, 56, 202, 0.1) !important;
}

html[data-theme="pastel"] .gc-stage-step.is-active-emerald,
html[data-theme="clean-light"] .gc-stage-step.is-active-emerald,
html[data-theme="warm-sand"] .gc-stage-step.is-active-emerald,
html:not([data-theme]) .gc-stage-step.is-active-emerald {
    background-color: #ECFDF5 !important;
    border: 1.5px solid #6EE7B7 !important;
    color: #064E3B !important;
    box-shadow: 0 1px 3px rgba(4, 120, 87, 0.1) !important;
}

html[data-theme="pastel"] .gc-stage-step.is-active-cyan,
html[data-theme="clean-light"] .gc-stage-step.is-active-cyan,
html[data-theme="warm-sand"] .gc-stage-step.is-active-cyan,
html:not([data-theme]) .gc-stage-step.is-active-cyan {
    background-color: #F0F9FF !important;
    border: 1.5px solid #7DD3FC !important;
    color: #075985 !important;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.1) !important;
}

html[data-theme="pastel"] .gc-stage-step.is-inactive,
html[data-theme="clean-light"] .gc-stage-step.is-inactive,
html[data-theme="warm-sand"] .gc-stage-step.is-inactive,
html:not([data-theme]) .gc-stage-step.is-inactive {
    background-color: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

/* Midnight Dark Active & Inactive Variants */
html[data-theme="midnight"] .gc-stage-step.is-active-indigo {
    background-color: rgba(49, 46, 129, 0.5) !important;
    border: 1.5px solid #6366F1 !important;
    color: #C7D2FE !important;
}

html[data-theme="midnight"] .gc-stage-step.is-active-emerald {
    background-color: rgba(6, 78, 59, 0.5) !important;
    border: 1.5px solid #10B981 !important;
    color: #A7F3D0 !important;
}

html[data-theme="midnight"] .gc-stage-step.is-active-cyan {
    background-color: rgba(8, 51, 68, 0.5) !important;
    border: 1.5px solid #0EA5E9 !important;
    color: #BAE6FD !important;
}

html[data-theme="midnight"] .gc-stage-step.is-inactive {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid #334155 !important;
    color: #64748B !important;
}

/* ==========================================================================
   5. KANBAN BOARD & PIPELINE CARDS (HIGH-CONTRAST LIGHT & DARK)
   ========================================================================== */
html[data-theme="pastel"] .w-\[280px\],
html[data-theme="pastel"] .sm\:w-\[295px\],
html[data-theme="clean-light"] .w-\[280px\],
html[data-theme="clean-light"] .sm\:w-\[295px\],
html[data-theme="warm-sand"] .w-\[280px\],
html[data-theme="warm-sand"] .sm\:w-\[295px\],
html:not([data-theme]) .w-\[280px\],
html:not([data-theme]) .sm\:w-\[295px\] {
    background-color: #F8F6FA !important;
    border-color: #E2E8F0 !important;
}

html[data-theme="pastel"] .w-full.p-3\.5.rounded-xl,
html[data-theme="clean-light"] .w-full.p-3\.5.rounded-xl,
html[data-theme="warm-sand"] .w-full.p-3\.5.rounded-xl,
html:not([data-theme]) .w-full.p-3\.5.rounded-xl {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="pastel"] .w-full.p-3\.5.rounded-xl:hover,
html[data-theme="clean-light"] .w-full.p-3\.5.rounded-xl:hover,
html[data-theme="warm-sand"] .w-full.p-3\.5.rounded-xl:hover,
html:not([data-theme]) .w-full.p-3\.5.rounded-xl:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="pastel"] .w-full.p-3\.5.rounded-xl select,
html[data-theme="clean-light"] .w-full.p-3\.5.rounded-xl select,
html[data-theme="warm-sand"] .w-full.p-3\.5.rounded-xl select,
html:not([data-theme]) .w-full.p-3\.5.rounded-xl select {
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

html[data-theme="pastel"] .w-full.p-3\.5.rounded-xl button.bg-slate-900,
html[data-theme="clean-light"] .w-full.p-3\.5.rounded-xl button.bg-slate-900,
html[data-theme="warm-sand"] .w-full.p-3\.5.rounded-xl button.bg-slate-900,
html:not([data-theme]) .w-full.p-3\.5.rounded-xl button.bg-slate-900 {
    background-color: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #334155 !important;
}
html[data-theme="pastel"] .w-full.p-3\.5.rounded-xl button.bg-slate-900:hover,
html[data-theme="clean-light"] .w-full.p-3\.5.rounded-xl button.bg-slate-900:hover,
html[data-theme="warm-sand"] .w-full.p-3\.5.rounded-xl button.bg-slate-900:hover,
html:not([data-theme]) .w-full.p-3\.5.rounded-xl button.bg-slate-900:hover {
    background-color: #E2E8F0 !important;
    color: #0F172A !important;
}

/* High-Contrast Lender Action Buttons & Cards Across All Themes */
html[data-theme="pastel"] .gc-lender-action-btn,
html[data-theme="clean-light"] .gc-lender-action-btn,
html[data-theme="warm-sand"] .gc-lender-action-btn,
html:not([data-theme]) .gc-lender-action-btn {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    border: 1px solid #1E293B !important;
}
html[data-theme="pastel"] .gc-lender-action-btn:hover,
html[data-theme="clean-light"] .gc-lender-action-btn:hover,
html[data-theme="warm-sand"] .gc-lender-action-btn:hover,
html:not([data-theme]) .gc-lender-action-btn:hover {
    background-color: #0284C7 !important;
    color: #FFFFFF !important;
    border-color: #0284C7 !important;
}

html[data-theme="pastel"] .gc-servicing-card,
html[data-theme="clean-light"] .gc-servicing-card,
html[data-theme="warm-sand"] .gc-servicing-card,
html:not([data-theme]) .gc-servicing-card {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08) !important;
}

