/* annonERP design tokens — source: docs/design/ux.md §3. Use only these names in components. */
:root {
  /* Colour (§3.1) — one hue (deep teal) plus neutrals tinted toward it */
  --brand-900: #182B3A;
  --brand-700: #294B59;
  --accent-700: #365F6B;
  --accent-600: #41707E;
  --accent-500: #4B8190;
  --accent-100: #E7F0F1;
  --accent-50: #F2F7F8;
  --text-primary: #1D2A30;
  --text-secondary: #5B6A70;
  --text-muted: #677379;
  --surface: #FFFFFF;
  --canvas: #F4F6F6;
  --border: #E3E8E9;
  --border-strong: #799498;
  --hairline: rgb(29 42 48 / 0.08);
  --fill: rgb(91 106 112 / 0.10);        /* tinted control fill (secondary buttons, segmented tracks) */
  --fill-hover: rgb(91 106 112 / 0.16);
  --fill-press: rgb(91 106 112 / 0.22);
  --accent-tint: rgb(65 112 126 / 0.12);  /* selected nav, pressed chips */
  --material: rgb(255 255 255 / 0.72);    /* translucent bars and menus */
  --focus-ring: #4B8190;
  --success: #207B5F;
  --success-bg: #E8F5EF;
  --warning: #98651A;
  --warning-bg: #FFF5E5;
  --danger: #C13A3A;
  --danger-bg: #FCECEC;
  --info: #367392;
  --info-bg: #EAF3F8;

  /* Data visualisation (§3.2) */
  --chart-1: #182B3A;
  --chart-2: #41707E;
  --chart-3: #5B8E9B;
  --chart-4: #7E8C91;

  /* Typography (§3.3) — native system face first; Inter is the fallback off Apple devices */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Noto Sans Bengali", "Hind Siliguri", system-ui, "Segoe UI", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Noto Sans Bengali", system-ui, sans-serif;
  --fs-page-title: 28px;
  --fs-section: 17px;
  --fs-body: 14px;
  --fs-label: 13px;
  --fs-meta: 12px;
  --fs-kpi: 30px;
  --fs-pos-total: 40px;
  --lh-body: 1.5;
  --tracking-tight: -0.022em;

  /* Spacing (§3.4) */
  --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;

  /* Shape and elevation (§3.5) */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  --shadow-card: 0 0 0 1px rgb(24 43 58 / 0.05), 0 1px 2px rgb(24 43 58 / 0.04), 0 4px 16px -4px rgb(24 43 58 / 0.06);
  --shadow-sm: 0 1px 2px rgb(24 43 58 / 0.06), 0 0 0 1px rgb(24 43 58 / 0.04);
  --shadow-md: 0 0 0 1px rgb(24 43 58 / 0.05), 0 8px 24px -6px rgb(24 43 58 / 0.14);
  --shadow-lg: 0 0 0 1px rgb(24 43 58 / 0.06), 0 24px 64px -12px rgb(24 43 58 / 0.28);
  --shadow-primary: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 1px 2px rgb(24 43 58 / 0.20), 0 6px 16px -6px rgb(54 95 107 / 0.60);
  --blur-material: saturate(180%) blur(20px);

  /* Layers and motion (§3.6) */
  --z-sticky: 10;
  --z-sidebar: 20;
  --z-dropdown: 30;
  --z-drawer: 40;
  --z-dialog: 50;
  --z-toast: 60;
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --press-scale: 0.97;

  /* Interaction sizing (§3.7) */
  --control-h: 40px;
  --control-h-compact: 34px;
  --touch: 44px;
  --touch-pos: 48px;
}

html[lang="bn"] {
  --lh-body: 1.6;
  --fs-meta: 13px;
  --tracking-tight: 0;
}

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