/* Sdach Translate PRO — Admin Dashboard design tokens
   Apply with <html data-theme="dark"> or <html data-theme="light">. */

@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@300;400;500;600;700&family=Moul&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Typography */
  --font-sans: 'Kantumruy Pro', system-ui, sans-serif;   /* Khmer + Latin UI text */
  --font-display: 'Moul', 'Kantumruy Pro', serif;        /* brand title only */
  --font-mono: 'JetBrains Mono', monospace;              /* keys, HWID, versions, hashes */
  --text-xs: 11.5px; --text-sm: 12.5px; --text-base: 14px; --text-md: 15px; --text-lg: 16px;
  --text-xl: 22px; --text-2xl: 28px; --text-kpi: 34px;
  --leading: 1.55;            /* Khmer needs generous line height */

  /* Radius */
  --radius-sm: 8px; --radius-md: 11px; --radius-lg: 14px; --radius-card: 18px; --radius-pill: 999px;

  /* Spacing (8-pt based) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-7: 28px;

  /* Sizes */
  --sidebar-w: 256px; --content-max: 1240px; --control-h: 46px; --button-h: 48px; --touch-min: 44px;

  /* Fixed colours */
  --badge-red: #D63A31;       /* unread badge, destructive confirm button (white text) */
}

:root, [data-theme="dark"] {
  --bg: #0C0B09; --side: #11100D; --panel: #16140F; --panel-2: #1C1A14; --input: #0F0E0B;
  --line: #2A261E; --line-2: #3A3428;
  --text: #F4EFE4; --muted: #A29B8C; --faint: #8A8476;
  --gold: #E6B954; --gold-btn: #E0B24A; --on-gold: #1A1405; --gold-soft: rgba(230,185,84,0.12); --gold-line: rgba(230,185,84,0.32);
  --green: #43CF8C; --green-soft: rgba(67,207,140,0.12);
  --red: #F4726A; --red-soft: rgba(244,114,106,0.10); --red-line: rgba(244,114,106,0.32);
  --blue: #7DB0FF; --blue-soft: rgba(125,176,255,0.12);
  --shadow: 0 24px 60px rgba(0,0,0,0.45);
}

[data-theme="light"] {
  --bg: #F4F1EA; --side: #FFFFFF; --panel: #FFFFFF; --panel-2: #FAF7F0; --input: #FFFFFF;
  --line: #E7E1D5; --line-2: #D8CFBE;
  --text: #1C1913; --muted: #5F594F; --faint: #746D5E;
  --gold: #8A6100; --gold-btn: #D9A93C; --on-gold: #1A1405; --gold-soft: rgba(201,150,40,0.13); --gold-line: rgba(170,120,10,0.32);
  --green: #13804A; --green-soft: rgba(19,128,74,0.10);
  --red: #C2362E; --red-soft: rgba(194,54,46,0.07); --red-line: rgba(194,54,46,0.30);
  --blue: #2B62C9; --blue-soft: rgba(43,98,201,0.09);
  --shadow: 0 24px 60px rgba(70,50,10,0.10);
}
