/* Design tokens – dark theme kiểu GitHub dark / Linear. Xem docs/ui-guide.md. */
:root {
  color-scheme: dark;

  /* Nền và bề mặt */
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1c2128;
  --surface-3: #21262d;
  --surface-input: #0d1117;
  --overlay: rgba(1, 4, 9, 0.7);

  /* Viền */
  --border: #30363d;
  --border-muted: #21262d;
  --border-strong: #484f58;

  /* Chữ */
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-on-accent: #ffffff;

  /* Màu nhấn */
  --accent: #2f81f7;
  --accent-text: #58a6ff;
  --accent-bg: #1f6feb;
  --accent-bg-hover: #1a5fd0;
  --accent-soft: rgba(47, 129, 247, 0.15);

  /* Trạng thái (chữ #e6edf3-class đủ tương phản AA trên nền tối) */
  --success: #3fb950;
  --success-soft: rgba(46, 160, 67, 0.15);
  --success-border: rgba(46, 160, 67, 0.45);
  --warning: #e3b341;
  --warning-soft: rgba(187, 128, 9, 0.15);
  --warning-border: rgba(187, 128, 9, 0.5);
  --danger: #ff7b72;
  --danger-bg: #da3633;
  --danger-bg-hover: #b62324;
  --danger-soft: rgba(248, 81, 73, 0.12);
  --danger-border: rgba(248, 81, 73, 0.45);
  --info: #58a6ff;
  --info-soft: rgba(56, 139, 253, 0.15);
  --info-border: rgba(56, 139, 253, 0.45);

  /* Chữ */
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Ubuntu, Inter, Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Ubuntu Mono', monospace;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 24px;

  /* Khoảng cách */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;

  /* Bo góc, bóng */
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 0 rgba(1, 4, 9, 0.4);
  --shadow-md: 0 8px 24px rgba(1, 4, 9, 0.5);

  /* Tương thích CSS cũ của các màn chưa làm lại */
  --color-background: var(--bg);
  --color-background-soft: var(--surface);
  --color-background-mute: var(--surface-3);
  --color-text: var(--text);
  --color-border: var(--border);
  --ev-c-text-1: var(--text);
  --ev-c-text-2: var(--text-muted);
}
