/* ============================================
   FaceRec Design System — Design Tokens
   ============================================ */

:root {
    /* ── Primary Palette ── */
    --color-navy-900: #060E1A;
    --color-navy-800: #0A1628;
    --color-navy-700: #0F1D32;
    --color-navy-600: #162240;
    --color-navy-500: #1E2D4D;
    --color-navy-400: #2A3B5E;
    --color-navy-300: #3D507A;
    --color-navy-200: #5A6F9A;
    --color-navy-100: #8494B7;

    --color-cyan-500: #00D4FF;
    --color-cyan-400: #33DDFF;
    --color-cyan-300: #66E5FF;
    --color-cyan-200: #99EEFF;
    --color-cyan-glow: rgba(0, 212, 255, 0.25);
    --color-cyan-glow-strong: rgba(0, 212, 255, 0.45);

    --color-violet-500: #7B61FF;
    --color-violet-400: #9580FF;
    --color-violet-300: #B0A0FF;
    --color-violet-glow: rgba(123, 97, 255, 0.25);

    /* ── Semantic Colors ── */
    --color-success: #22C55E;
    --color-success-bg: rgba(34, 197, 94, 0.12);
    --color-warning: #FBBF24;
    --color-warning-bg: rgba(251, 191, 36, 0.12);
    --color-danger: #EF4444;
    --color-danger-bg: rgba(239, 68, 68, 0.12);
    --color-info: #3B82F6;
    --color-info-bg: rgba(59, 130, 246, 0.12);

    /* ── Surface Colors ── */
    --surface-body: var(--color-navy-900);
    --surface-sidebar: var(--color-navy-800);
    --surface-card: var(--color-navy-700);
    --surface-card-hover: var(--color-navy-600);
    --surface-elevated: var(--color-navy-500);
    --surface-input: var(--color-navy-600);
    --surface-input-focus: var(--color-navy-500);

    /* ── Text Colors ── */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --text-accent: var(--color-cyan-500);
    --text-inverse: var(--color-navy-900);

    /* ── Border Colors ── */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --border-accent: var(--color-cyan-500);

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

    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.8125rem;
    /* 13px */
    --text-base: 0.875rem;
    /* 14px */
    --text-md: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */

    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* ── 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 */
    --space-16: 4rem;
    /* 64px */

    /* ── Border Radius ── */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow-cyan: 0 0 20px var(--color-cyan-glow), 0 0 60px rgba(0, 212, 255, 0.1);
    --shadow-glow-violet: 0 0 20px var(--color-violet-glow), 0 0 60px rgba(123, 97, 255, 0.1);

    /* ── Transitions ── */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ── Z-Index ── */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-toast: 600;

    /* ── Layout ── */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-height: 64px;

    /* ── Mobile Layout ── */
    --bottomnav-height: 64px;
    --mobile-topbar-height: 56px;
    --touch-target: 44px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-top: env(safe-area-inset-top, 0px);
    --radius-mobile-card: 16px;

    /* ── Glassmorphism ── */
    --glass-bg: rgba(10, 22, 40, 0.72);
    --glass-bg-strong: rgba(10, 22, 40, 0.88);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
    --glass-blur-strong: blur(32px);

    /* ── Mobile Glow Effects ── */
    --glow-active-tab: 0 -4px 16px rgba(0, 212, 255, 0.35);
    --glow-fab: 0 8px 32px rgba(0, 212, 255, 0.4), 0 0 60px rgba(0, 212, 255, 0.15);
    --glow-scan-pulse: 0 0 24px rgba(0, 212, 255, 0.5);
}