/* Transpora Design System — Tokens
   Modern, minimalist, card-based. Calm neutrals + one confident brand hue.
   Semantic tokens only — components must not use raw hex values. */

:root {
  /* ---- Brand (indigo-blue, distinct from stock bootstrap/tailwind blues) ---- */
  --brand-50:  #EFF1FE;
  --brand-100: #DEE2FD;
  --brand-200: #BEC5FB;
  --brand-300: #98A3F7;
  --brand-400: #717FF0;
  --brand-500: #4E5EE6;
  --brand-600: #3B49CC;
  --brand-700: #2F3AA6;
  --brand-800: #262F82;
  --brand-900: #1E2566;

  /* ---- Neutrals (slightly cool gray, calm/trustworthy) ---- */
  --gray-0:   #FFFFFF;
  --gray-25:  #FBFBFC;
  --gray-50:  #F5F6F8;
  --gray-100: #EEEFF2;
  --gray-200: #E3E5EA;
  --gray-300: #CBCED6;
  --gray-400: #9DA1AE;
  --gray-500: #6B7080;
  --gray-600: #4E5361;
  --gray-700: #383C48;
  --gray-800: #24262F;
  --gray-900: #16171F;

  /* ---- Semantic status colors ---- */
  --success-bg: #E7F7EE; --success-fg: #0F7A3D; --success-border: #BCEDCC;
  --warning-bg: #FFF6E5; --warning-fg: #93620A; --warning-border: #FBE3AC;
  --danger-bg:  #FDEAEA; --danger-fg:  #B32424; --danger-border: #F6C6C6;
  --info-bg:    #EAF1FF; --info-fg:    #28508F; --info-border:  #C7DAFB;
  --progress-bg:#F1EBFE; --progress-fg:#6A3FC2; --progress-border:#DCCEFA;

  /* ---- Surfaces & text (light theme) ---- */
  --surface-canvas: var(--gray-50);
  --surface-card:   var(--gray-0);
  --surface-muted:  var(--gray-100);
  --surface-inverse: var(--gray-900);

  --border-subtle:  var(--gray-200);
  --border-default: var(--gray-300);
  --border-strong:  var(--gray-400);

  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary:  var(--gray-500);
  --text-on-brand:  #FFFFFF;
  --text-link:      var(--brand-600);

  --focus-ring: var(--brand-400);

  /* ---- Typography ---- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-tabular: "tnum" 1;

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 32px;
  --fs-4xl: 40px;

  --lh-tight: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

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

  /* ---- Spacing (4px rhythm) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ---- Radius ---- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* ---- Shadow (subtle — minimalist, not decorative) ---- */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 260ms;

  /* ---- Layout ---- */
  --sidebar-width: 248px;
  --topbar-height: 60px;
  --container-max: 1280px;

  /* ---- Z-index scale ---- */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 40;
  --z-modal: 100;
  --z-toast: 1000;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}
