/* ===========================================
   DESIGN TOKENS
   Light & airy palette with iPad touch targets
   =========================================== */

:root {
    /* Colors — Monrovia brand palette
       Forest greens from monrovia.com, warm neutrals for a
       professional nursery feel. CEO sees brand colors = trust. */
    --bg-primary: #ffffff;
    --bg-secondary: #fafaf7;
    --bg-tertiary: #f3f4f0;

    --border-light: #e5e7e0;
    --border-medium: #c8cbc2;

    --text-primary: #404142;
    --text-secondary: #6b7270;
    --text-muted: #9ca39f;

    --accent: #455f45;
    --accent-hover: #2e452f;
    --accent-soft: #f0f5e8;

    --danger: #ef4444;
    --danger-soft: #fef2f2;

    --warning: #f59e0b;
    --warning-soft: #fffbeb;

    /* Spacing scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;

    /* Touch target minimum */
    --touch-min: 44px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    /* Shadows - very subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", monospace;

    /* Typography scale — 6 levels, every size means something */
    --text-xs: 11px;     /* labels, table headers */
    --text-sm: 12px;     /* table cells, help text */
    --text-base: 13px;   /* body text, buttons */
    --text-md: 14px;     /* inputs, dropdowns */
    --text-lg: 16px;     /* section headings */
    --text-xl: 20px;     /* modal titles */

    /* Animation — 3 speeds, consistent feel */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;

    /* Glass material — subtle noise texture for frosted glass surfaces.
       2-3% opacity fractal noise adds micro-texture that makes glass
       feel tangible, not digitally smooth. Applied via ::before pseudo. */
    --glass-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");

    /* Toolbar (dark overlay for dot/row tools) */
    --toolbar-bg: rgba(30, 35, 42, 0.92);
    --toolbar-text: #e5e7eb;
    --toolbar-text-muted: #9ca3af;
    --toolbar-accent: #fbbf24;
    --toolbar-border: rgba(255, 255, 255, 0.1);

    /* Sidebar (Sprint 4) */
    --sidebar-width: 380px;
    --sidebar-transition: 300ms ease;
    --overlay-bg: rgba(255, 255, 255, 0.95);
    --overlay-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    --overlay-radius: 8px;

    /* ===========================================
       RESPONSIVE BREAKPOINTS (documentation)
       CSS custom properties CANNOT be used inside
       @media conditions — this is a spec limitation.
       These tokens document the canonical values so
       every component file uses the same numbers.

       Phone:            max-width: 480px
       Tablet portrait:  max-width: 768px
       Tablet landscape: min-width: 1024px
       Landscape phone:  max-height: 500px + orientation: landscape
       =========================================== */

    /* Safe-area insets (iPhone notch / Dynamic Island)
       Used in property values: padding-bottom: var(--safe-bottom) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

