
/* =========================================
   NOOR EYE CLINIC
   THEME SYSTEM
========================================= */

/* =========================================
   LIGHT THEME
   Default theme from root.css
========================================= */

/* =========================================
   LIGHT THEME
========================================= */


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

    --body-bg: #F5FAFE;
    --surface: #FFFFFF;
    --surface-secondary: #EAF6FC;

    --text-primary: #102D50;
    --text-secondary: #526B83;
    --text-muted: #8296A9;

    --border-color: #DCEAF4;

    --header-bg: rgba(255, 255, 255, 0.96);

    --footer-bg: #071C38;
    --footer-text: #DCEBFA;

    --primary: #087FC4;
    --primary-hover: #0565A3;
    --secondary: #00C8E8;
    --accent: #00BCEB;
    --primary-light: #E1F4FF;

    --shadow-sm: 0 4px 14px rgba(7, 62, 105, 0.06);
    --shadow-md: 0 12px 32px rgba(7, 62, 105, 0.10);
    --shadow-lg: 0 20px 50px rgba(7, 62, 105, 0.15);
}


/* =========================================
   DARK THEME
========================================= */

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

    /* Page backgrounds */
    --body-bg: #071321;
    --surface: #0D2033;
    --surface-secondary: #122B42;

    /* Text colors */
    --text-primary: #F0F8FF;
    --text-secondary: #B7D0E2;
    --text-muted: #829EB5;

    /* Borders */
    --border-color: #23415A;

    /* Header and footer */
    --header-bg: rgba(7, 19, 33, 0.96);

    --footer-bg: #040D18;
    --footer-text: #DCEBFA;

    /* Brand colors and surfaces */
    --primary: #18A9EB;
    --primary-hover: #39BDF5;
    --secondary: #00C8E8;
    --accent: #00D5F5;
    --primary-light: #123B58;

    /* Buttons */
    --btn-primary-bg: #18A9EB;
    --btn-primary-hover: #39BDF5;
    --btn-primary-color: #FFFFFF;

    --btn-secondary-bg: #17364F;
    --btn-secondary-color: #EAF7FF;

    /* Shadows */
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.20);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.40);
}
 


/* =========================================
   SHARED THEME TRANSITIONS
========================================= */

html,
body,
.site-header,
.site-footer,
.card,
.btn,
input,
textarea,
select {
    transition:
        background-color var(--transition-normal),
        color var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}


/* =========================================
   DARK MODE FORM CONTROLS
========================================= */

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: var(--surface);
    color: var(--text-primary);
    border-color: var(--border-color);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted);
}


/* =========================================
   ACCESSIBILITY
========================================= */

:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html,
    body,
    .site-header,
    .site-footer,
    .card,
    .btn,
    input,
    textarea,
    select {
        transition: none;
    }
}
