/* ==========================================================================
   Design tokens — Doha Movers POS
   Single source of truth for colour, type, spacing, radius and shadow.
   Dark mode overrides live in [data-theme="dark"].
   ========================================================================== */

:root {
  /* Brand */
  --color-primary: #009FE3;
  --color-primary-600: #008BCB;
  --color-primary-700: #0076AD;
  --color-primary-50: #E6F6FD;
  --color-primary-100: #CCEDFB;
  --color-navy: #12304A;
  --color-navy-800: #0D2438;
  --color-navy-900: #091A29;
  --color-accent: #FF8A3D;
  --color-accent-50: #FFF2E9;
  --chart-sales: #12304A;

  /* Status */
  --color-success: #16A34A;
  --color-success-50: #E8F6EE;
  --color-danger: #DC2626;
  --color-danger-50: #FDECEC;
  --color-warning: #D97706;
  --color-warning-50: #FEF5E7;
  --color-info: #6366F1;
  --color-info-50: #EEF0FE;

  /* Surfaces & text */
  --color-bg: #F5F7FB;
  --color-surface: #FFFFFF;
  --color-surface-2: #F9FAFC;
  --color-surface-hover: #F2F5F9;
  --color-text: #1F2937;
  --color-text-muted: #6B7280;
  --color-text-subtle: #9CA3AF;
  --color-border: #E5E7EB;
  --color-border-strong: #D1D5DB;
  --color-backdrop: rgba(9, 26, 41, 0.55);

  /* Sidebar */
  --sidebar-bg: #FFFFFF;
  --sidebar-text: #374151;
  --sidebar-icon-bg: #F3F6FA;
  --sidebar-active-bg: var(--color-primary-50);
  --sidebar-active-text: var(--color-primary-700);

  /* Typography */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-xs: 0.75rem;     /* 12 */
  --text-sm: 0.8125rem;   /* 13 */
  --text-base: 0.875rem;  /* 14 */
  --text-md: 1rem;        /* 16 */
  --text-lg: 1.125rem;    /* 18 */
  --text-xl: 1.375rem;    /* 22 */
  --text-2xl: 1.75rem;    /* 28 */

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

  /* Spacing (4px scale) */
  --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;

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

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 6px 16px -4px rgba(16, 24, 40, 0.08), 0 2px 6px -2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 18px 40px -12px rgba(16, 24, 40, 0.18);
  --ring: 0 0 0 3px rgba(0, 159, 227, 0.25);

  /* Layout */
  --sidebar-width: 272px;
  --sidebar-collapsed-width: 76px;
  --header-height: 64px;
  --content-max: 1480px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration: 200ms;
  --duration-slow: 280ms;

  color-scheme: light;
}

[data-theme="dark"] {
  --chart-sales: #4CC3F2;
  --color-primary-50: rgba(0, 159, 227, 0.14);
  --color-primary-100: rgba(0, 159, 227, 0.22);
  --color-accent-50: rgba(255, 138, 61, 0.14);
  --color-success-50: rgba(22, 163, 74, 0.16);
  --color-danger-50: rgba(220, 38, 38, 0.16);
  --color-warning-50: rgba(217, 119, 6, 0.16);
  --color-info-50: rgba(99, 102, 241, 0.18);
  --color-primary-700: #4CC3F2;

  --color-bg: #0B1622;
  --color-surface: #111F2E;
  --color-surface-2: #142536;
  --color-surface-hover: #182C40;
  --color-text: #E5EAF0;
  --color-text-muted: #9AA8B8;
  --color-text-subtle: #6D7D8F;
  --color-border: #1F3347;
  --color-border-strong: #2A425A;
  --color-backdrop: rgba(0, 0, 0, 0.6);

  --sidebar-bg: #0E1B29;
  --sidebar-text: #C9D3DE;
  --sidebar-icon-bg: #16283A;
  --sidebar-active-bg: rgba(0, 159, 227, 0.14);
  --sidebar-active-text: #4CC3F2;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}
