/* AUREA - shared design tokens & base styles */
:root {
  --blue: #01389e;
  --navy: #0b1f4b;
  --blue-600: #0a4bc4;
  --blue-50: #eef3ff;
  --blue-100: #dde7ff;
  --ink: #0f1b3d;
  --muted: #6b7793;
  --line: #e6ebf5;
  --bg: #f5f7fc;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 31, 75, 0.04), 0 10px 30px rgba(11, 31, 75, 0.07);
  --shadow-sm: 0 1px 2px rgba(11, 31, 75, 0.05), 0 4px 12px rgba(11, 31, 75, 0.05);
  --urgent: #e5484d;
  --medium: #f59e0b;
  --normal: #16a34a;
  --s-new: #01389e;
  --s-reviewing: #7c3aed;
  --s-in_progress: #d97706;
  --s-resolved: #16a34a;
  --s-rejected: #6b7793;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans Khmer', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html[data-lang='kh'] body { line-height: 1.75; letter-spacing: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }

/* language switch */
.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px; background: var(--blue-50);
  border-radius: 999px; border: 1px solid var(--blue-100);
}
.lang-switch button {
  border: 0; background: transparent; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--muted); transition: all 0.2s var(--ease);
}
.lang-switch button.active { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }

/* brand mark */
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, var(--blue-600), var(--navy)); color: #fff;
  font-weight: 800; font-size: 18px; letter-spacing: -0.5px; box-shadow: 0 6px 16px rgba(1, 56, 158, 0.3);
}

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--blue-50); color: var(--blue);
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.pr-urgent { color: var(--urgent); background: #fdeced; }
.pr-medium { color: #b45309; background: #fef3c7; }
.pr-normal { color: #15803d; background: #dcfce7; }
.st-new { color: var(--s-new); background: var(--blue-50); }
.st-reviewing { color: var(--s-reviewing); background: #f0e9fe; }
.st-in_progress { color: #b45309; background: #fef3c7; }
.st-resolved { color: #15803d; background: #dcfce7; }
.st-rejected { color: var(--s-rejected); background: #eef0f5; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
