/* ============================================================
   vars.css — переменные темы
   Светлая тема по умолчанию, тёмная — через [data-theme="dark"]
   ============================================================ */

:root {
  /* ---------- Базовые цвета (светлая тема) ---------- */
  --bg:            #f5f6f8;
  --bg-elevated:   #ffffff;
  --bg-sunken:     #eef0f3;
  --bg-hover:      #f0f2f5;

  --text:          #1c1e21;
  --text-muted:    #6b7280;
  --text-faint:    #9aa1ac;

  --border:        #e3e6ea;
  --border-strong: #cdd2d9;

  /* ---------- Бренд / акценты ---------- */
  --accent:        #2f80ed;
  --accent-hover:  #2670d6;
  --accent-soft:   #e8f1fd;

  --success:       #34c759;
  --success-soft:  #e6f8ec;
  --warning:       #f5a623;
  --warning-soft:  #fdf3e0;
  --danger:        #eb5757;
  --danger-soft:   #fdeaea;

  --focus:         #2f80ed;

  /* ---------- Статусы заявок (badge) ---------- */
  --status-new-bg:      #e8f1fd;
  --status-new-fg:      #2f80ed;
  --status-progress-bg: #fdf3e0;
  --status-progress-fg: #b57712;
  --status-done-bg:     #e6f8ec;
  --status-done-fg:     #1f8f3c;
  --status-cancel-bg:   #fdeaea;
  --status-cancel-fg:   #c0392b;

  /* ---------- Геометрия ---------- */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* ---------- Тени ---------- */
  --shadow-sm: 0 1px 2px rgba(20, 24, 30, 0.05);
  --shadow:    0 4px 14px rgba(20, 24, 30, 0.07);
  --shadow-lg: 0 12px 32px rgba(20, 24, 30, 0.14);

  /* ---------- Размеры ---------- */
  --sidebar-w:        240px;
  --sidebar-w-collapsed: 64px;
  --topbar-h:         56px;
  --content-pad:      24px;

  /* ---------- Анимации ---------- */
  --t-fast: 120ms ease;
  --t:      200ms ease;

  /* ---------- Шрифты ---------- */
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ============================================================
   Тёмная тема
   ============================================================ */
[data-theme="dark"] {
  --bg:            #17191c;
  --bg-elevated:   #1f2227;
  --bg-sunken:     #131518;
  --bg-hover:      #262a30;

  --text:          #e7e9ec;
  --text-muted:    #9aa1ac;
  --text-faint:    #6b7280;

  --border:        #2a2e34;
  --border-strong: #3a4048;

  --accent:        #4a90f0;
  --accent-hover:  #5fa0f5;
  --accent-soft:   #1e2a3d;

  --success:       #3dd068;
  --success-soft:  #16301f;
  --warning:       #f2b04a;
  --warning-soft:  #33270f;
  --danger:        #f06767;
  --danger-soft:   #331a1a;

  --focus:         #4a90f0;

  --status-new-bg:      #1e2a3d;
  --status-new-fg:      #6ba6f2;
  --status-progress-bg: #33270f;
  --status-progress-fg: #f2b04a;
  --status-done-bg:     #16301f;
  --status-done-fg:     #4dd679;
  --status-cancel-bg:   #331a1a;
  --status-cancel-fg:   #f06767;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow:    0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
}