/* ========================================
   INVEN Portal - Design Tokens & Variables
   ======================================== */

:root {
  /* ===== COLOR PALETTE ===== */
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;
  
  --color-secondary: #8b5cf6;
  --color-secondary-dark: #7c3aed;
  --color-secondary-light: #a78bfa;
  
  --color-accent: #06b6d4;
  --color-accent-dark: #0891b2;
  --color-accent-light: #22d3ee;
  
  /* ===== NEUTRALS - Dark Theme ===== */
  --color-bg-primary: #0f172a;
  --color-bg-secondary: #1e293b;
  --color-bg-tertiary: #334155;
  --color-bg-hover: #475569;
  
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-text-muted: #64748b;
  
  --color-border: rgba(148, 163, 184, 0.2);
  --color-border-light: rgba(148, 163, 184, 0.1);
  --color-border-strong: rgba(148, 163, 184, 0.3);
  
  /* ===== SEMANTIC COLORS ===== */
  --color-success: #10b981;
  --color-success-light: #6ee7b7;
  --color-warning: #f59e0b;
  --color-warning-light: #fcd34d;
  --color-error: #ef4444;
  --color-error-light: #fca5a5;
  --color-info: #06b6d4;
  --color-info-light: #22d3ee;
  
  /* ===== GLASS & BACKDROP ===== */
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-bg-light: rgba(51, 65, 85, 0.5);
  --glass-backdrop: blur(10px);
  --glass-border: rgba(148, 163, 184, 0.2);
  
  /* ===== GRADIENTS ===== */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-primary-dark: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  --gradient-dark: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  
  /* ===== SHADOWS ===== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.45);
  --shadow-inner: inset 0 1px 2px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
  --shadow-glow-accent: 0 0 20px rgba(6, 182, 212, 0.15);
  
  /* ===== TYPOGRAPHY ===== */
  --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-family-mono: 'Fira Code', 'Monaco', 'Courier New', monospace;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  --font-weight-light: 300;
  --font-weight-normal: 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-relaxed: 1.75;
  
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  
  /* ===== SPACING ===== */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* ===== BORDER RADIUS ===== */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
  
  /* ===== Z-INDEX ===== */
  --z-hide: -1;
  --z-auto: auto;
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-notification: 60;
  --z-tooltip: 70;
  
  /* ===== 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);
  --transition-smooth: 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* ===== BREAKPOINTS (Mobile First) ===== */
  --breakpoint-xs: 320px;
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* ===== LAYOUT ===== */
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
  --header-height: 64px;
  --max-content-width: 1440px;
  
  /* ===== OPACITY ===== */
  --opacity-disabled: 0.5;
  --opacity-hover: 0.9;
  --opacity-focus: 0.95;
}

/* Light theme fallback (if needed) */
@media (prefers-color-scheme: light) {
  :root {
    --color-bg-primary: #f8fafc;
    --color-bg-secondary: #f1f5f9;
    --color-bg-tertiary: #e2e8f0;
    --color-bg-hover: #cbd5e1;
    
    --color-text-primary: #0f172a;
    --color-text-secondary: #334155;
    --color-text-tertiary: #64748b;
    --color-text-muted: #94a3b8;
    
    --glass-bg: rgba(241, 245, 249, 0.7);
    --glass-bg-light: rgba(226, 232, 240, 0.5);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-smooth: 0ms;
  }
}
