/* ==========================================================================
   Sihatuna dark theme — re-points the --care-* tokens and the dark rules
   site.css hard-codes (navy #101a30 family) at the Sihatuna night palette:
   deep blue-green sea tones instead of indigo. Loaded after site.css so
   identical selectors win by order.
   ========================================================================== */

[data-bs-theme="dark"] {
    --care-ink: #eaf4fb;
    --care-muted: #9db5c6;
    --care-surface: #163544;
    --care-accent: #0f3547;
    --care-border: #284754;

    /* Input edge: 4.05:1 against the dark card. */
    --care-control-border: #6f8a9a;
    --care-surface-soft: #0c2530;
    --care-card: #102a38;

    /* Foreground green for links on dark surfaces: 9.7:1 on the page. */
    --care-primary-dark: #7fd4bd;

    --care-focus: var(--sihatuna-blue);
}

/* Counterpart to the html:root vendor remap in tokens.css: in dark mode the
   Doccure tint variables must stay dark chips, not the light-blue accent. */
html:root[data-bs-theme="dark"] {
    --primary-transparent: #0f3547;
    --primary-100: #0f3547;
    --orange: #d9b45e;
}

[data-bs-theme="dark"] body {
    /* background-color, not the shorthand: the shorthand would erase the
       medical pattern tile core.css paints via background-image. */
    background-color: #091820;
}

[data-bs-theme="dark"] .site-header {
    background: #0d2230;
    border-bottom-color: rgba(255, 255, 255, .08);
}

/* The dark card family site.css paints #101a30. */
[data-bs-theme="dark"] .search-box-one,
[data-bs-theme="dark"] .care-step,
[data-bs-theme="dark"] .theme-switch,
[data-bs-theme="dark"] .back-to-top,
[data-bs-theme="dark"] .carousel-nav,
[data-bs-theme="dark"] .account-type-card,
[data-bs-theme="dark"] .login-right {
    background: var(--care-card);
    border-color: var(--care-border);
}

[data-bs-theme="dark"] .site-footer {
    background: linear-gradient(180deg, #0d2230 0%, #091820 100%);
    border-top-color: rgba(255, 255, 255, .06);
}

[data-bs-theme="dark"] .site-footer::before {
    opacity: .07;
}

[data-bs-theme="dark"] .footer-tagline {
    color: #d9b45e;
}

[data-bs-theme="dark"] .footer-link:hover {
    color: #7fd4bd;
}

[data-bs-theme="dark"] .footer-bottom {
    background: #0c2530;
    border-top-color: rgba(255, 255, 255, .06);
}

[data-bs-theme="dark"] .page-heading,
[data-bs-theme="dark"] .dashboard-hero {
    background: #0d2532;
}

[data-bs-theme="dark"] .account-choice-hero,
[data-bs-theme="dark"] .registration-hero,
[data-bs-theme="dark"] .verification-shell {
    background:
        radial-gradient(circle at 10% 0%, rgba(74, 160, 216, .1), transparent 22rem),
        radial-gradient(circle at 90% 10%, rgba(8, 118, 93, .2), transparent 25rem),
        linear-gradient(135deg, #0d2532, #091820);
}

[data-bs-theme="dark"] .hero,
[data-bs-theme="dark"] .hero-doccure {
    background: linear-gradient(135deg, #0d2532 0%, #091820 100%);
}
