/* ==========================================================================
   Design Tokens & CSS Variables
   SellerCore B2B Marketplace Suite
   ========================================================================== */

:root {
  /* Color Palette - Light Mode (Default) */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #e2e8f0;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;
  --border-focus: #2563eb;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Brand Colors */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Accent - Warm Confident Red / Coral */
  --accent-50: #fff1f2;
  --accent-100: #ffe4e6;
  --accent-500: #f43f5e;
  --accent-600: #e11d48;
  --accent-700: #be123c;

  /* Functional Status Colors */
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --success-text: #065f46;
  --success-solid: #10b981;

  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #92400e;
  --warning-solid: #f59e0b;

  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --error-text: #991b1b;
  --error-solid: #ef4444;

  --info-bg: #f0f9ff;
  --info-border: #bae6fd;
  --info-text: #075985;
  --info-solid: #0ea5e9;

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

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Spacing */
  --sidebar-width: 260px;
  --header-height: 68px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-app: #0b1120;
  --bg-surface: #111a2e;
  --bg-surface-alt: #17233d;
  --bg-surface-elevated: #1e2d4a;
  --bg-subtle: #233454;

  --border-light: #1f2f4c;
  --border-medium: #2a3e63;
  --border-dark: #405785;
  --border-focus: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --primary-50: #172554;
  --primary-100: #1e3a8a;
  --primary-200: #1d4ed8;
  --primary-500: #38bdf8;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;

  --accent-50: #4c0519;
  --accent-100: #881337;
  --accent-500: #f43f5e;
  --accent-600: #fb7185;
  --accent-700: #fda4af;

  --success-bg: rgba(16, 185, 129, 0.15);
  --success-border: rgba(16, 185, 129, 0.3);
  --success-text: #34d399;
  --success-solid: #10b981;

  --warning-bg: rgba(245, 158, 11, 0.15);
  --warning-border: rgba(245, 158, 11, 0.3);
  --warning-text: #fbbf24;
  --warning-solid: #f59e0b;

  --error-bg: rgba(239, 68, 68, 0.15);
  --error-border: rgba(239, 68, 68, 0.3);
  --error-text: #f87171;
  --error-solid: #ef4444;

  --info-bg: rgba(14, 165, 233, 0.15);
  --info-border: rgba(14, 165, 233, 0.3);
  --info-text: #38bdf8;
  --info-solid: #0ea5e9;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 30px rgba(0, 0, 0, 0.6);
}
