/* ─── Design Tokens — Digital Nagarik Emerald Theme ─── */
/* Per plan §10: Brand colors LOCKED. Primary UI follows emerald-green palette. */

/* ── Font Face: Hind Siliguri (Bengali + Latin) ── */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/hind-siliguri-regular-bengali-subset.woff2') format('woff2');
  unicode-range: U+0980-09FF, U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ── Brand Colors (LOCKED — Part E Compliance) ── */
  --brand-ddi-blue: #003366;
  --brand-al-orange: #FF6600;
  --brand-civicus-teal: #008080;

  /* ── Primary UI (Emerald Green) ── */
  --color-primary-50: #ECFDF5;
  --color-primary-100: #D1FAE5;
  --color-primary-200: #A7F3D0;
  --color-primary-300: #6EE7B7;
  --color-primary-400: #34D399;
  --color-primary-500: #059669;
  --color-primary-600: #047857;
  --color-primary-700: #065F46;
  --color-primary-800: #064E3B;
  --color-primary-900: #022C22;

  /* ── Semantic Status Colors ── */
  --status-pending-bg: #FEF3C7;
  --status-pending-text: #92400E;
  --status-pending-border: #FCD34D;
  --status-acknowledged-bg: #DBEAFE;
  --status-acknowledged-text: #1E40AF;
  --status-acknowledged-border: #93C5FD;
  --status-resolved-bg: #D1FAE5;
  --status-resolved-text: #065F46;
  --status-resolved-border: #6EE7B7;
  --status-escalated-bg: #FEE2E2;
  --status-escalated-text: #991B1B;
  --status-escalated-border: #FCA5A5;

  /* ── UI Surfaces (Slate palette) ── */
  --surface-primary: #FFFFFF;
  --surface-secondary: #F8FAFC;
  --surface-elevated: #FFFFFF;
  --surface-alt: #F1F5F9;
  --surface-overlay: rgba(15, 23, 42, 0.6);

  /* ── Text (Slate scale) ── */
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  --text-link: #059669;
  --text-disabled: #94A3B8;

  /* ── Borders ── */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-focus: #059669;

  /* ── Typography ── */
  --font-sans: 'Hind Siliguri', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

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

  /* ── Touch targets (WCAG 2.5.5: min 44px) ── */
  --touch-min: 44px;
  --touch-comfortable: 48px;

  /* ── Border Radius ── */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

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

  /* ── Z-Index Scale ── */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-sidebar: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* ── Layout ── */
  --header-height: 48px;
  --bottom-nav-height: 56px;
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
}

/* ─── Dark Mode (optional, future) ─── */
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --surface-primary: #0F172A;
    --surface-secondary: #1E293B;
    --surface-elevated: #1E293B;
    --surface-alt: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --border-light: #334155;
    --border-medium: #475569;
  }
}