/*
 * Design Tokens (SRS §19.22)
 * Single source of truth for the visual language. Components consume these custom properties;
 * they never hardcode raw values. Shared by the Admin Portal and Customer PWA themes (SRS §19.3).
 * Dark mode is out of scope for v1 but tokens are centralized so it can be added later (SRS §19.26).
 */
:root {
    /* Brand / primary */
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-primary-contrast: #ffffff;

    /* Secondary / accent */
    --color-secondary: #0ea5e9;
    --color-secondary-hover: #0284c7;

    /* Semantic */
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-error: #dc2626;
    --color-info: #2563eb;

    /* Neutrals */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-text-inverse: #f8fafc;

    /* Typography */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.375rem;
    --font-size-2xl: 1.75rem;
    --font-size-3xl: 2.25rem;
    --line-height-base: 1.5;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing scale (4px base) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

    /* Z-index layers */
    --z-base: 1;
    --z-sticky: 100;
    --z-sidebar: 200;
    --z-topbar: 300;
    --z-overlay: 1000;
    --z-modal: 1100;
    --z-toast: 1200;

    /* Animation (SRS §19.25: ~150-250ms, functional) */
    --duration-fast: 150ms;
    --duration-base: 200ms;
    --duration-slow: 250ms;
    --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --sidebar-width: 256px;
    --topbar-height: 56px;
    --content-max-width: 1200px;
}
