/**
 * @file        styles/tokens.css
 * @description Design tokens — biến CSS toàn cục.
 * @module      styles/tokens
 * @version     4.0.0
 * @created     2026-05-28
 * @author      Conten Tool V4
 */

/* Font Inter (giong V1) — tai tu Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Color - Brand ── */
  --color-primary:     #2563eb;
  --color-primary-hover:#3b82f6;
  --color-success:     #10b981;
  --color-warning:     #f59e0b;
  --color-danger:      #ef4444;

  /* ── Color - Surface (dark mode) ── */
  --color-bg:          #0f172a;
  --color-surface:     #1e293b;
  --color-elevated:    #334155;
  --color-border:      #475569;
  --color-border-light:#334155;

  /* ── Color - Text ── */
  --color-text:        #f1f5f9;
  --color-text-dim:    #94a3b8;
  --color-text-muted:  #64748b;

  /* ── Spacing (4px scale) ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ── Radius ── */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* ── Typography ── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace;

  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 14px;
  --text-lg:   16px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  30px;

  --leading-tight:  1.25;
  --leading-normal: 1.5;

  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ── Shadow ── */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg:  0 12px 32px rgba(0, 0, 0, 0.4);

  /* ── Motion ── */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* ── Layout ── */
  --sidebar-width: 220px;
  --topbar-height: 52px;
}