/* MoveRef Design Tokens & CSS Variables */

:root {
  /* Brand colors — overridden per org on login
     Primary = org background tint / atmosphere
     Secondary = sidebar accent, buttons, UI interactive elements
     MoveRef platform palette: white bg, black/blue/green accents */
  --accent-primary: #0F172A;
  --accent-secondary: #10B981;

  /* Secondary color as RGB (set dynamically by JS) */
  --accent-secondary-r: 16;
  --accent-secondary-g: 185;
  --accent-secondary-b: 129;
  --accent-secondary-hover: #059669;

  /* Tint overlay RGB (derived from primary color, set by JS) */
  --tint-r: 255;
  --tint-g: 255;
  --tint-b: 255;

  /* Derived accent shades — use secondary for UI */
  --accent-light: color-mix(in srgb, var(--accent-secondary) 15%, white);
  --accent-hover: color-mix(in srgb, var(--accent-secondary) 85%, black);
  --accent-subtle: color-mix(in srgb, var(--accent-secondary) 8%, white);

  /* Neutral palette */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Semantic colors */
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --error: #EF4444;
  --error-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #DBEAFE;

  /* Pipeline stage colors */
  --stage-submitted: #94A3B8;
  --stage-in-progress: #3B82F6;
  --stage-booked: #F59E0B;
  --stage-completed: #10B981;
  --stage-paid: #10B981;

  /* Typography — Oswald for bold sporty headings, DM Sans for clean body */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

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

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

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed: 64px;
  --header-height: 64px;
  --max-content-width: 1000px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-index layers */
  --z-sidebar: 40;
  --z-header: 30;
  --z-dropdown: 50;
  --z-modal: 60;
  --z-toast: 70;
}
