/* ============================================
   ADMIN PANEL - CSS VARIABLES & DESIGN TOKENS
   Mobile-first, responsive design system
   ============================================ */

:root {
  color-scheme: light;
  
  /* === COLOR PALETTE === */
  /* Primary Colors */
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #8b5cf6;
  --color-primary-rgb: 99, 102, 241;
  
  /* Neutral Colors */
  --color-secondary: #475569;
  --color-surface: #ffffff;
  --color-surface-muted: #f8fafc;
  --color-bg: #f8fafc;
  --color-bg-gradient-start: #f8fafc;
  --color-bg-gradient-end: #f1f5f9;
  
  /* Border Colors */
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-border-dark: #cbd5e1;
  
  /* Text Colors */
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-tertiary: #94a3b8;
  --color-text-inverse: #ffffff;
  
  /* State Colors */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-error: #ef4444;
  --color-error-light: #fee2e2;
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;
  
  /* === TYPOGRAPHY === */
  /* Font Families */
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Consolas', 'Monaco', monospace;
  
  /* Fluid Typography - Mobile-first */
  --font-size-xs: clamp(0.75rem, 2vw, 0.8125rem);
  --font-size-sm: clamp(0.875rem, 2.2vw, 0.9375rem);
  --font-size-base: clamp(0.9375rem, 2.5vw, 1rem);
  --font-size-md: clamp(1rem, 2.8vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 3.2vw, 1.25rem);
  --font-size-xl: clamp(1.5rem, 4vw, 2.2rem);
  --font-size-2xl: clamp(2rem, 5vw, 3rem);
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* === SPACING SCALE === */
  /* Mobile-first fluid spacing */
  --space-xs: clamp(0.25rem, 1vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1.5vw, 0.75rem);
  --space-md: clamp(0.75rem, 2vw, 1rem);
  --space-lg: clamp(1rem, 2.5vw, 1.5rem);
  --space-xl: clamp(1.5rem, 3vw, 2rem);
  --space-2xl: clamp(2rem, 4vw, 3rem);
  --space-3xl: clamp(3rem, 6vw, 4rem);
  
  /* === BORDER RADIUS === */
  /* Mobile-first responsive radius */
  --radius-sm: clamp(6px, 1.5vw, 10px);
  --radius-md: clamp(10px, 2vw, 14px);
  --radius-lg: clamp(14px, 3vw, 20px);
  --radius-xl: clamp(18px, 4vw, 24px);
  --radius-full: 9999px;
  
  /* === SHADOWS === */
  /* Responsive shadow system */
  --shadow-xs: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(99, 102, 241, 0.12);
  --shadow-lg: 0 20px 48px rgba(99, 102, 241, 0.16);
  --shadow-xl: 0 28px 60px rgba(15, 23, 42, 0.20);
  
  /* Focus Shadow */
  --shadow-focus: 0 0 0 3px rgba(99, 102, 241, 0.25);
  
  /* === TRANSITIONS & ANIMATIONS === */
  /* Easing Functions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-sharp: cubic-bezier(0.4, 0, 0.6, 1);
  
  /* Duration */
  --transition-instant: 50ms;
  --transition-fast: 150ms;
  --transition-base: 200ms;
  --transition-slow: 300ms;
  --transition-slower: 400ms;
  
  /* Shorthand Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* === Z-INDEX LAYERS === */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-nav: 500;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-toast: 1100;
  --z-tooltip: 1200;
  
  /* === LAYOUT === */
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  
  /* Sidebar */
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 70px;
  
  /* Touch Targets */
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;
  
  /* === BREAKPOINTS === */
  /* Used in media queries */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* Dark Mode Support (Future)
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #818cf8;
    --color-surface: #1e293b;
    --color-bg: #0f172a;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-border: #334155;
  }
}
*/
