/* ==========================================================================
   DESIGN TOKENS
   Single source of truth. Every other CSS file should reference these
   variables instead of hard-coding colors/spacing/etc.
   ========================================================================== */

:root {
  /* ---- Brand ---- */
  --color-primary: #ff6600;
  --color-primary-dark: #e05500;
  --color-primary-light: #fff1e6;
  --color-primary-50: #fff4ec;

  /* ---- Neutrals ---- */
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-border: #e4e7ec;
  --color-border-strong: #d0d5dd;

  --color-text: #1a1d29;
  --color-text-secondary: #5c6270;
  --color-text-muted: #8b90a0;
  --color-text-on-primary: #ffffff;

  /* ---- Semantic ---- */
  --color-success: #12b76a;
  --color-success-bg: #ecfdf3;
  --color-warning: #f79009;
  --color-warning-bg: #fffaeb;
  --color-danger: #f04438;
  --color-danger-bg: #fef3f2;
  --color-info: #2e90fa;
  --color-info-bg: #eff8ff;

  /* ---- Role badge colors ---- */
  --color-owner: #7f56d9;
  --color-admin: #2e90fa;
  --color-manager: #12b76a;
  --color-cashier: #f79009;
  --color-storekeeper: #0e9384;
  --color-accountant: #6941c6;

  /* ---- Typography ---- */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.8125rem;  /* 13px */
  --text-base: 0.9375rem;/* 15px */
  --text-md: 1rem;       /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.375rem;   /* 22px */
  --text-2xl: 1.75rem;   /* 28px */
  --text-3xl: 2.25rem;   /* 36px */

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

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

  /* ---- Radius ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --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.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 24px rgba(16, 24, 40, 0.12);

  /* ---- Layout ---- */
  --sidebar-width: 248px;
  --sidebar-width-collapsed: 76px;
  --topbar-height: 64px;
  --bottom-nav-height: 60px;
  --max-content-width: 1400px;

  /* ---- Transitions ---- */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;

  /* ---- Z-index scale ---- */
  --z-topbar: 100;
  --z-sidebar: 200;
  --z-dropdown: 300;
  --z-modal-backdrop: 400;
  --z-modal: 410;
  --z-toast: 500;
}

/* Dark mode is not implemented app-wide yet; token is reserved for future use. */
