/**
 * Design tokens for the admin panel.
 * Clean, minimal light theme (light mode only, no toggle).
 * Token names are unchanged so existing components keep working.
 */
:root {
    color-scheme: light;
    /* Backgrounds */
    --color-bg: #f6f6f7;
    --color-surface: #ffffff;
    --color-surface-2: #f3f4f6;
    --color-surface-3: #e9eaec;
    --color-surface-4: #d9dbde;

    /* Borders */
    --color-border: #e2e4e8;
    --color-border-light: #ececef;
    --color-border-dark: #cfd2d7;

    /* Typography (all pass WCAG AA on white for body-size text) */
    --color-ink: #111113;
    --color-ink-muted: #55595f;
    --color-ink-faint: #6b7078;
    --color-ink-subtle: #737780;

    /* Accent - sindoor red. NOTE: accent-light is used as *text* on
       accent-tinted backgrounds, so in light mode it is a darker red. */
    --color-accent: #c4383e;
    --color-accent-hover: #a82d33;
    --color-accent-light: #a82d33;
    --color-accent-subtle: rgba(196, 56, 62, 0.1);

    /* Success */
    --color-success: #1a7f4b;
    --color-success-hover: #15683c;
    --color-success-light: rgba(26, 127, 75, 0.12);
    --color-success-subtle: rgba(26, 127, 75, 0.08);

    /* Warning */
    --color-warning: #a15c07;
    --color-warning-hover: #874c05;
    --color-warning-light: rgba(217, 119, 6, 0.14);
    --color-warning-subtle: rgba(217, 119, 6, 0.09);

    /* Danger */
    --color-danger: #c62828;
    --color-danger-hover: #a81f1f;
    --color-danger-light: rgba(198, 40, 40, 0.1);
    --color-danger-subtle: rgba(198, 40, 40, 0.07);
    --color-danger-solid: #d92d2d;
    --color-danger-solid-hover: #b71c1c;

    /* Info */
    --color-info: #1d6fd6;
    --color-info-subtle: rgba(29, 111, 214, 0.1);

    /* Shadows - soft, light-appropriate */
    --shadow-sm:
        0 1px 2px 0 rgb(16 24 40 / 0.06), 0 1px 3px 0 rgb(16 24 40 / 0.08);
    --shadow-md:
        0 4px 6px -1px rgb(16 24 40 / 0.08), 0 2px 4px -2px rgb(16 24 40 / 0.06);
    --shadow-lg:
        0 10px 15px -3px rgb(16 24 40 / 0.1),
        0 4px 6px -4px rgb(16 24 40 / 0.06);
    --shadow-xl:
        0 20px 25px -5px rgb(16 24 40 / 0.12),
        0 8px 10px -6px rgb(16 24 40 / 0.08);

    /* Typography */
    --font-display:
        'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        'Segoe UI', sans-serif;
    --font-body:
        'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    background: var(--color-bg);
}

body {
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

/* Select dropdown options */
select option {
    color: var(--color-ink) !important;
    background: var(--color-surface) !important;
}

/* Native checkboxes/radios pick up the brand color */
input[type='checkbox'],
input[type='radio'] {
    accent-color: var(--color-accent);
}

/* Date picker icon: the dark theme inverted it; on light it must not be. */
input[type='date']::-webkit-calendar-picker-indicator,
input[type='datetime-local']::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
