/* =============================================================
   Design Tokens (CSS Custom Properties)
   Import this file first in app.css
   ============================================================= */

:root {
    /* ── Color Palette ──────────────────────────────────────── */
    --color-sidebar: #1b4332; /* Dark Green  – Sidebar bg  */
    --color-primary: #2e7d32; /* Mid Green   – Primary action */
    --color-accent: #52b788; /* Light Green – Accent / hover */
    --color-bg: #f5f7f5; /* Off-white   – Page background */
    --color-card: #ffffffb7; /* White       – Card surfaces */
    --color-text: #263238; /* Dark Slate  – Body text */
    --color-alert: #ff5722; /* Alert color */
    --color-alert-bg: #ffccbc63; /* Alert background color */

    /* Semantic aliases */
    --color-primary-dark: #1b5e20;
    --color-primary-light: #81c784;
    --color-primary-50: #e8f5e9;
    --color-primary-100: #c8e6c9;

    /* Status colors */
    --color-success: #2e7d32;
    --color-success-bg: #e8f5e9;
    --color-warning: #e65100;
    --color-warning-bg: #fff3e0;
    --color-danger: #c62828;
    --color-danger-bg: #ffebee;
    --color-inactive: #546e7a;
    --color-inactive-bg: #eceff1;
    /* alert color */
    --color-alert: #ff5722;
    --color-alert-bg: #ffccbc63;

    /* Neutrals */
    --color-border: #dee2e6;
    --color-border-light: #f0f4f0;
    --color-muted: #607d8b;
    --color-placeholder: #556066;

    /* ── Typography ─────────────────────────────────────────── */
    --font-family-base: "Inter", system-ui, -apple-system, sans-serif;
    --font-family-mono: "JetBrains Mono", "Fira Code", monospace;

    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-base: 1rem; /* 16px */
    --font-size-lg: 1.125rem; /* 18px */
    --font-size-xl: 1.25rem; /* 20px */
    --font-size-2xl: 1.5rem; /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-loose: 1.75;

    --letter-spacing-tight: -0.02em;
    --letter-spacing-wide: 0.05em;
    --letter-spacing-wider: 0.1em;

    /* ── Spacing ─────────────────────────────────────────────── */
    --space-1: 0.25rem; /*  4px */
    --space-2: 0.5rem; /*  8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem; /* 16px */
    --space-5: 1.25rem; /* 20px */
    --space-6: 1.5rem; /* 24px */
    --space-8: 2rem; /* 32px */
    --space-10: 2.5rem; /* 40px */
    --space-12: 3rem; /* 48px */

    /* ── Border Radius ───────────────────────────────────────── */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* ── Shadows ─────────────────────────────────────────────── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 4px rgba(38, 50, 56, 0.08);

    /* ── Transitions ─────────────────────────────────────────── */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* ── Sidebar ─────────────────────────────────────────────── */
    --sidebar-width: 260px;
    --sidebar-collapsed: 68px;

    /* ── Z-index ladder ──────────────────────────────────────── */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-tooltip: 500;
}
