/* ==========================================================
   Fluentia – darkmode.css  (applied when <html data-theme="dark">)
   ========================================================== */
[data-theme="dark"]{
  --bg:#252D32; --surface:#3A4756; --surface-2:#313D49;
  --text:#FFF7EE; --text-soft:#D9CFC2; --border:rgba(255,247,238,.16);
  --accent-text:#E8A27A;
  --pill:rgba(232,162,122,.18);
  --secondary:#E9D7C3;
  --glow:rgba(183,108,67,.42);
  --glow-2:rgba(233,215,195,.12);
  --nav-bg:rgba(37,45,50,.86);
  --footer-bg:#1B2125;
  --shadow:0 10px 30px rgba(0,0,0,.35); --shadow-lg:0 22px 55px rgba(0,0,0,.5);
  color-scheme:dark;
}
[data-theme="dark"] .brand-logo .bar{fill:#D18559}
[data-theme="dark"] .theme-toggle .i-moon{transform:rotate(90deg) scale(0);opacity:0}
[data-theme="dark"] .theme-toggle .i-sun{transform:none;opacity:1}
[data-theme="dark"] .nav-backdrop{background:rgba(0,0,0,.6)}
[data-theme="dark"] .page-hero::before,[data-theme="dark"] .auth::before{background:radial-gradient(55% 75% at 88% 8%,rgba(183,108,67,.3),transparent 62%),radial-gradient(45% 60% at 0% 100%,rgba(58,71,86,.55),transparent 62%)}
[data-theme="dark"] .cta-inner{border:1px solid rgba(255,247,238,.14)}
[data-theme="dark"] .icon-btn,[data-theme="dark"] .hamburger{background:var(--surface-2)}
[data-theme="dark"] .field input[type="email"],[data-theme="dark"] .field input[type="password"],[data-theme="dark"] .field input[type="text"]{background:var(--bg)}
[data-theme="dark"] .field-error{color:#FF9C8F}
[data-theme="dark"] .field.invalid input{border-color:#FF9C8F}
[data-theme="dark"] .auth-msg.ok{color:#9BE3B5}
[data-theme="dark"] .auth-hint{color:#B9B2A7}
[data-theme="dark"] .dropdown{background:var(--surface)}
[data-theme="dark"] .hero .stat,[data-theme="dark"] .hero .ticker{background:color-mix(in srgb,var(--surface) 54%,transparent)}
[data-theme="dark"] .rtl-toggle[aria-pressed="true"]{background:var(--accent-btn);border-color:transparent;color:#fff}

/* Keep supporting copy and language labels readable on the dark system pages. */
[data-theme="dark"] .system-page .system-description,
[data-theme="dark"] .system-page .system-meta,
[data-theme="dark"] .system-page .system-chip small,
[data-theme="dark"] .system-page .cs-node span,
[data-theme="dark"] .system-page .cs-progress-label{color:var(--text-soft)}
[data-theme="dark"] .system-page .system-kicker{color:var(--text)}
[data-theme="dark"] .system-page .cs-node strong{color:var(--accent-text)}

/* Raise supporting-copy and placeholder contrast in the login split panels. */
[data-theme="dark"] .auth-split .auth-visual-copy p,
[data-theme="dark"] .auth-split .auth-image-caption,
[data-theme="dark"] .auth-split .auth-divider,
[data-theme="dark"] .auth-split .auth-foot,
[data-theme="dark"] .auth-split .auth-hint{color:var(--secondary)}
[data-theme="dark"] .auth-split .auth-kicker,
[data-theme="dark"] .auth-split .auth-portal-label,
[data-theme="dark"] .auth-split .google-mark{color:var(--secondary)}
[data-theme="dark"] .auth-split .field input::placeholder{color:var(--text);opacity:.85}
[data-theme="dark"] .signup-card .signup-terms a{color:var(--secondary)}
[data-theme="dark"] .signup-card>p:first-of-type{color:var(--text)}

/* Dashboard supporting labels stay legible against dark surfaces. */
[data-theme="dark"] .dash-page .dash-heading p,
[data-theme="dark"] .dash-page .dash-stat>span,
[data-theme="dark"] .dash-page .dash-stat small,
[data-theme="dark"] .dash-page .dash-sessions time,
[data-theme="dark"] .dash-page .dash-sessions li div span,
[data-theme="dark"] .dash-page .dash-course-top span,
[data-theme="dark"] .dash-page .dash-course p,
[data-theme="dark"] .dash-page .dash-fee small,
[data-theme="dark"] .dash-page .dash-batch p,
[data-theme="dark"] .dash-page .dash-batch>div>span,
[data-theme="dark"] .dash-page .admin-table th,
[data-theme="dark"] .dash-page .dash-feedback{color:var(--secondary)}
[data-theme="dark"] .dash-page .dash-overline,
[data-theme="dark"] .dash-page .dash-panel-head>a{color:var(--secondary)}

/* Keep the admin sidebar, counters and controls high contrast in dark mode. */
[data-theme="dark"] .admin-profile small,
[data-theme="dark"] .admin-sidebar-card>span,
[data-theme="dark"] .admin-kpis article>div>span,
[data-theme="dark"] .admin-kpis small,
[data-theme="dark"] .admin-section-heading p,
[data-theme="dark"] .admin-programs .admin-meter+span,
[data-theme="dark"] .admin-enrollment>div>span,
[data-theme="dark"] .admin-schedule-list article>div>span,
[data-theme="dark"] .admin-table th,
[data-theme="dark"] .admin-trainer-grid article>div>span,
[data-theme="dark"] .admin-live-message,
[data-theme="dark"] .admin-welcome-image figcaption{color:var(--secondary)}
[data-theme="dark"] .admin-brand>b,
[data-theme="dark"] .admin-kpi-icon,
[data-theme="dark"] .admin-section .dash-overline{color:var(--secondary)}
[data-theme="dark"] .admin-side-nav a.is-active,
[data-theme="dark"] .admin-filter-group button.is-selected{color:var(--text)}
[data-theme="dark"] .admin-avatar{color:var(--text)}
[data-theme="dark"] .admin-welcome-card h1 em,
[data-theme="dark"] .admin-section-heading>a,
[data-theme="dark"] .admin-status,
[data-theme="dark"] .admin-outline-btn:hover{color:var(--secondary)}
[data-theme="dark"] .admin-welcome-card>p,
[data-theme="dark"] .admin-welcome-image figcaption{color:var(--secondary)}

/* Student dashboard supporting text and links use light theme tokens in dark mode. */
[data-theme="dark"] .user-dashboard-layout .user-course-card>p,
[data-theme="dark"] .user-dashboard-layout .user-batch-card>p,
[data-theme="dark"] .user-dashboard-layout .user-batch-card>div span,
[data-theme="dark"] .user-dashboard-layout .user-progress-card>span,
[data-theme="dark"] .user-dashboard-layout .user-badge-strip>div>span:last-child,
[data-theme="dark"] .user-dashboard-layout .user-fee-card>p,
[data-theme="dark"] .user-dashboard-layout .user-live-message{color:var(--secondary)}
[data-theme="dark"] .user-dashboard-layout .user-course-card>a,
[data-theme="dark"] .user-dashboard-layout .user-badge-strip>a,
[data-theme="dark"] .user-dashboard-layout .admin-section-heading>a,
[data-theme="dark"] .user-dashboard-layout .dash-overline{color:var(--secondary)}
[data-theme="dark"] .user-dashboard-layout .user-course-attendance{color:var(--text)}

/* Keep Section 6 helper copy, labels and controls legible in dark mode. */
[data-theme="dark"] .eb-photo figcaption,
[data-theme="dark"] .eb-steps p,
[data-theme="dark"] .eb-availability>div:first-child span,
[data-theme="dark"] .eb-note,
[data-theme="dark"] .eb-kicker,
[data-theme="dark"] .eb-step-number,
[data-theme="dark"] .eb-error{color:var(--secondary)}
[data-theme="dark"] .eb-field input::placeholder{color:var(--secondary)}
[data-theme="dark"] .eb-field select option{background:var(--surface);color:var(--text)}
[data-theme="dark"] .user-schedule-list article>div>span{color:var(--secondary)}

/* Keep the Home 1 hero description white over its darkened image panel. */
[data-theme="dark"] .hero-copy .hero-desc{color:var(--text)}
[data-theme="dark"] .hero-copy .hero-learn{color:var(--accent)}
