/**
 * CSS Variables (Design Tokens)
 * 
 * Centralized design tokens for the Collekton UI System.
 * Art inventory management aesthetic: refined, gallery-inspired, professional.
 */

 :root {
    /* =========================================
     * COLOR PALETTE
     * ========================================= */
  
    /* Primary - Deep charcoal with warmth */
    --color-primary-50: #f7f7f6;
    --color-primary-100: #e8e6e3;
    --color-primary-200: #d3cfc9;
    --color-primary-300: #b5aea4;
    --color-primary-400: #968c7f;
    --color-primary-500: #7a6f62;
    --color-primary-600: #635850;
    --color-primary-700: #514842;
    --color-primary-800: #443d39;
    --color-primary-900: #3b3633;
    --color-primary-950: #1f1c1a;
  
    /* Accent - Antique gold / bronze */
    --color-accent-50: #fdf9ef;
    --color-accent-100: #f9efd4;
    --color-accent-200: #f2dca5;
    --color-accent-300: #e9c36d;
    --color-accent-400: #e2ac42;
    --color-accent-500: #d8932b;
    --color-accent-600: #bf7422;
    --color-accent-700: #9f561f;
    --color-accent-800: #824520;
    --color-accent-900: #6b3a1e;
    --color-accent-950: #3d1c0d;
  
    /* Neutral - Warm grays */
    --color-neutral-0: #ffffff;
    --color-neutral-50: #fafaf9;
    --color-neutral-100: #f5f5f4;
    --color-neutral-200: #e7e5e4;
    --color-neutral-300: #d6d3d1;
    --color-neutral-400: #a8a29e;
    --color-neutral-500: #78716c;
    --color-neutral-600: #57534e;
    --color-neutral-700: #44403c;
    --color-neutral-800: #292524;
    --color-neutral-900: #1c1917;
    --color-neutral-950: #0c0a09;
  
    /* Semantic Colors */
    --color-success-50: #f0fdf4;
    --color-success-100: #dcfce7;
    --color-success-200: #bbf7d0;
    --color-success-500: #22c55e;
    --color-success-600: #16a34a;
    --color-success-700: #15803d;
  
    --color-warning-50: #fffbeb;
    --color-warning-100: #fef3c7;
    --color-warning-200: #fde68a;
    --color-warning-500: #f59e0b;
    --color-warning-600: #d97706;
    --color-warning-700: #b45309;
  
    --color-error-50: #fef2f2;
    --color-error-100: #fee2e2;
    --color-error-200: #fecaca;
    --color-error-500: #ef4444;
    --color-error-600: #dc2626;
    --color-error-700: #b91c1c;
  
    --color-info-50: #eff6ff;
    --color-info-100: #dbeafe;
    --color-info-200: #bfdbfe;
    --color-info-500: #3b82f6;
    --color-info-600: #2563eb;
    --color-info-700: #1d4ed8;
  
    /* Focus color */
    --color-focus: var(--color-accent-500);
  
    /* =========================================
     * TYPOGRAPHY
     * ========================================= */
  
    /* Font Families */
    /* Primary sans-serif for all UI - clean, modern, Helvetica/Replica-inspired */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    
    /* Display font for headings - same as body for consistency */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Optional serif for artist/artwork names if needed (minimal use) */
    --font-serif: 'Crimson Pro', 'Georgia', 'Times New Roman', serif;
    
    /* Monospace for codes, technical data */
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
  
    /* Font Sizes */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 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 */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
  
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
  
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
  
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
  
    /* =========================================
     * SPACING SCALE (compact: ~15% tighter)
     * ========================================= */
  
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.1rem;    /* ~1.6px */
    --space-1: 0.2rem;      /* ~3.2px */
    --space-1-5: 0.3rem;    /* ~4.8px */
    --space-2: 0.425rem;    /* ~6.8px */
    --space-2-5: 0.525rem;  /* ~8.4px */
    --space-3: 0.625rem;    /* ~10px */
    --space-3-5: 0.75rem;   /* ~12px */
    --space-4: 0.85rem;     /* ~13.6px */
    --space-5: 1.05rem;     /* ~16.8px */
    --space-6: 1.275rem;    /* ~20.4px */
    --space-7: 1.5rem;      /* ~24px */
    --space-8: 1.7rem;      /* ~27.2px */
    --space-9: 1.9rem;      /* ~30.4px */
    --space-10: 2.125rem;   /* ~34px */
    --space-11: 2.35rem;    /* ~37.6px */
    --space-12: 2.55rem;    /* ~40.8px */
    --space-14: 3rem;       /* ~48px */
    --space-16: 3.4rem;     /* ~54.4px */
    --space-20: 4.25rem;    /* ~68px */
    --space-24: 5.1rem;     /* ~81.6px */
    --space-28: 5.95rem;    /* ~95.2px */
    --space-32: 6.8rem;     /* ~108.8px */
  
    /* =========================================
     * BORDERS & RADIUS (compact)
     * ========================================= */
  
    --radius-none: 0;
    --radius-sm: 0.1rem;    /* ~1.6px */
    --radius-DEFAULT: 0.2rem; /* ~3.2px */
    --radius-md: 0.3rem;    /* ~4.8px */
    --radius-lg: 0.425rem;  /* ~6.8px */
    --radius-xl: 0.625rem;  /* ~10px */
    --radius-2xl: 0.85rem;  /* ~13.6px */
    --radius-3xl: 1.275rem; /* ~20.4px */
    --radius-full: 9999px;
  
    --border-width-DEFAULT: 1px;
    --border-width-2: 2px;
    --border-width-4: 4px;
  
    /* =========================================
     * SHADOWS
     * ========================================= */
  
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-DEFAULT: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
    --shadow-none: 0 0 #0000;
  
    /* Colored shadows for cards */
    --shadow-card: 0 1px 3px 0 rgb(31 28 26 / 0.08), 0 1px 2px -1px rgb(31 28 26 / 0.08);
    --shadow-card-hover: 0 10px 15px -3px rgb(31 28 26 / 0.1), 0 4px 6px -4px rgb(31 28 26 / 0.1);
  
    /* =========================================
     * TRANSITIONS
     * ========================================= */
  
    --duration-75: 75ms;
    --duration-100: 100ms;
    --duration-150: 150ms;
    --duration-200: 200ms;
    --duration-300: 300ms;
    --duration-500: 500ms;
    --duration-700: 700ms;
    --duration-1000: 1000ms;
  
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
    /* =========================================
     * Z-INDEX SCALE
     * ========================================= */
  
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
  
    /* =========================================
     * BREAKPOINTS (for reference in JS)
     * ========================================= */
  
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
  
    /* =========================================
     * CONTAINER WIDTHS
     * ========================================= */
  
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
  
    /* =========================================
     * COMPONENT-SPECIFIC TOKENS (compact)
     * ========================================= */
  
    /* Sidebar */
    --sidebar-width: 220px;
    --sidebar-width-collapsed: 60px;
  
    /* Header */
    --header-height: 54px;
  
    /* Cards */
    --card-padding: var(--space-5);
    --card-radius: var(--radius-lg);
  
    /* Inputs */
    --input-height: 36px;
    --input-height-sm: 30px;
    --input-height-lg: 44px;
    --input-padding-x: var(--space-3);
    --input-radius: var(--radius-md);
    --input-border-color: var(--color-neutral-300);
    --input-focus-border-color: var(--color-accent-500);
  
    /* Buttons */
    --btn-height: 36px;
    --btn-height-sm: 30px;
    --btn-height-lg: 44px;
    --btn-padding-x: var(--space-4);
    --btn-radius: var(--radius-md);
  }
  
  /* Dark mode support */
  @media (prefers-color-scheme: dark) {
    :root.auto-dark {
      --color-neutral-0: #0c0a09;
      --color-neutral-50: #1c1917;
      --color-neutral-100: #292524;
      --color-neutral-200: #44403c;
      --color-neutral-300: #57534e;
      --color-neutral-400: #78716c;
      --color-neutral-500: #a8a29e;
      --color-neutral-600: #d6d3d1;
      --color-neutral-700: #e7e5e4;
      --color-neutral-800: #f5f5f4;
      --color-neutral-900: #fafaf9;
      --color-neutral-950: #ffffff;
    }
  }
  
  /* Manual dark mode class */
  .dark {
    --color-neutral-0: #0c0a09;
    --color-neutral-50: #1c1917;
    --color-neutral-100: #292524;
    --color-neutral-200: #44403c;
    --color-neutral-300: #57534e;
    --color-neutral-400: #78716c;
    --color-neutral-500: #a8a29e;
    --color-neutral-600: #d6d3d1;
    --color-neutral-700: #e7e5e4;
    --color-neutral-800: #f5f5f4;
    --color-neutral-900: #fafaf9;
    --color-neutral-950: #ffffff;
  
    --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3);
    --shadow-card-hover: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  }