/* ==========================================================================
   SAE Kiwari, Design Tokens / CSS Variables
   RSUD Bandung Kiwari, sistem edukasi obat & pelaporan ESO/MESO
   Hue diselaraskan dengan ref_pages/*.html (primary hijau tua #1B4B43,
   accent oranye #D97D3B, danger terracotta #B3432E). Struktur skala 50-900
   dan metode anotasi kontras dipertahankan dari revisi sebelumnya, tapi hue
   dasar tiap skala kini mengikuti identitas visual di ref_pages, bukan
   biru/hijau/emas generik. Diverifikasi kontras terhadap standar WCAG 2.1 (AA/AAA).
   ========================================================================== */
:root {

  /* Primary / Green, dari ref_pages primary #1B4B43 */
  --green-50: #F0F8F6;  /* on white: decorative only 1.08:1 */
  --green-100: #DBF0EC;  /* on white: decorative only 1.19:1 */
  --green-200: #B5E3DB;  /* on white: decorative only 1.40:1 */
  --green-300: #85D6C9;  /* on white: decorative only 1.69:1 */
  --green-400: #53CDB9;  /* on white: decorative only 1.94:1 */
  --green-500: #2FBEA6;  /* on white: decorative only 2.32:1 */
  --green-600: #249B87;  /* on white: AA large/UI 3.44:1 */
  --green-700: #1C7D6D;  /* on white: AA text 5.00:1 */
  --green-800: #146356;  /* on white: AA text (AAA) 7.12:1 */
  --green-900: #0D473D;  /* on white: AA text (AAA) 10.58:1 */

  /* Accent / Orange, dari ref_pages accent #D97D3B */
  --orange-50: #F8F3F0;  /* on white: decorative only 1.10:1 */
  --orange-100: #F0E4DB;  /* on white: decorative only 1.25:1 */
  --orange-200: #E3C8B5;  /* on white: decorative only 1.59:1 */
  --orange-300: #D6A785;  /* on white: decorative only 2.16:1 */
  --orange-400: #CD8653;  /* on white: decorative only 2.94:1 */
  --orange-500: #BE6B2F;  /* on white: AA large/UI 3.94:1 */
  --orange-600: #9B5624;  /* on white: AA text 5.60:1 */
  --orange-700: #7D441C;  /* on white: AA text (AAA) 7.73:1 */
  --orange-800: #633514;  /* on white: AA text (AAA) 10.24:1 */
  --orange-900: #47250D;  /* on white: AA text (AAA) 13.65:1 */

  /* Danger / Terracotta, dari ref_pages danger #B3432E */
  --terracotta-50: #F8F1F0;  /* on white: decorative only 1.12:1 */
  --terracotta-100: #F0DFDB;  /* on white: decorative only 1.29:1 */
  --terracotta-200: #E3BCB5;  /* on white: decorative only 1.73:1 */
  --terracotta-300: #D69185;  /* on white: decorative only 2.55:1 */
  --terracotta-400: #CD6653;  /* on white: AA large/UI 3.74:1 */
  --terracotta-500: #BE462F;  /* on white: AA text 5.11:1 */
  --terracotta-600: #9B3724;  /* on white: AA text (AAA) 7.08:1 */
  --terracotta-700: #7D2B1C;  /* on white: AA text (AAA) 9.40:1 */
  --terracotta-800: #632114;  /* on white: AA text (AAA) 11.94:1 */
  --terracotta-900: #47160D;  /* on white: AA text (AAA) 15.12:1 */

  /* Info / Teal, turunan hue primary digeser ke biru, dipakai untuk badge info (Sync SIMRS, dll), tidak ada di ref_pages */
  --teal-50: #F0F5F8;  /* on white: decorative only 1.10:1 */
  --teal-100: #DBE9F0;  /* on white: decorative only 1.24:1 */
  --teal-200: #B5D4E3;  /* on white: decorative only 1.56:1 */
  --teal-300: #85BBD6;  /* on white: decorative only 2.08:1 */
  --teal-400: #53A4CD;  /* on white: decorative only 2.78:1 */
  --teal-500: #2F8EBE;  /* on white: AA large/UI 3.66:1 */
  --teal-600: #24739B;  /* on white: AA text 5.25:1 */
  --teal-700: #1C5D7D;  /* on white: AA text (AAA) 7.21:1 */
  --teal-800: #144963;  /* on white: AA text (AAA) 9.71:1 */
  --teal-900: #0D3447;  /* on white: AA text (AAA) 13.13:1 */

  /* Neutral / Gray, tetap dari revisi sebelumnya, hue netral jadi tak perlu ikut ref_pages */
  --neutral-50: #F4F5F5;  /* on white: decorative only 1.09:1 */
  --neutral-100: #E7E8E9;  /* on white: decorative only 1.23:1 */
  --neutral-200: #D1D3D7;  /* on white: decorative only 1.50:1 */
  --neutral-300: #B5BABF;  /* on white: decorative only 1.96:1 */
  --neutral-400: #9AA0A7;  /* on white: decorative only 2.64:1 */
  --neutral-500: #8593A3;  /* on white: AA large/UI 3.13:1 */
  --neutral-600: #687078;  /* on white: AA text 5.03:1 */
  --neutral-700: #555B62;  /* on white: AA text 6.86:1 */
  --neutral-800: #42474C;  /* on white: AA text 9.39:1 */
  --neutral-900: #303336;  /* on white: AA text 12.71:1 */

  /* Semantic aliases */
  --color-primary: var(--green-300);         /* brand icon tone (decorative) */
  --color-primary-text: var(--green-700);    /* AA-safe on white */
  --color-accent: var(--orange-400);         /* brand icon tone (decorative) */
  --color-accent-text: var(--orange-700);    /* AA-safe on white */
  --color-success: var(--green-700);         /* satu hue dengan primary, konteks kesehatan */
  --color-success-text: var(--green-800);
  --color-warning: var(--orange-500);
  --color-warning-text: var(--orange-700);
  --color-danger: var(--terracotta-600);
  --color-danger-text: var(--terracotta-700);
  --color-info: var(--teal-500);
  --color-info-text: var(--teal-700);

  --text-body: var(--neutral-800);
  --text-muted: var(--neutral-600);
  --border-subtle: var(--neutral-200);
  --surface: #FFFFFF;
  --surface-alt: var(--neutral-50);
  --surface-dark: #0F1720;
  --ink: #1A1A1A;
}
