/*
 * theme.css — leadctl: dark-first engineering console (GitHub/Linear DNA).
 * Monochrome slate/zinc base, one indigo accent, muted status colours.
 */

:root {
  color-scheme: dark;
  --canvas: #0b0f17;
  --surface: #10151f;
  --surface-2: #161b22;
  --border: #21262d;
  --border-strong: #30363d;
  --ink: #e6edf3;
  --muted: #8b949e;

  --accent: #5e6ad2;
  --accent-hover: #6f7ae0;
  --accent-ink: #ffffff;
  --accent-text: #9aa1f5;
  --accent-strong: #b4bbf5;
  --accent-soft: #1b1f3a;
  --accent-border: #333a66;

  --success: #10b981;
  --success-ink: #06241a;
  --success-soft: #0f2a20;
  --success-strong: #6ee7b7;

  --warning: #d97706;
  --warning-ink: #ffffff;
  --warning-soft: #2a1a06;
  --warning-strong: #fbbf24;

  --danger: #ef4444;
  --danger-ink: #ffffff;
  --danger-soft: #2a1215;
  --danger-strong: #fca5a5;

  --chart-1: #8b949e;
  --chart-2: #5e6ad2;
  --chart-3: #3b82f6;
  --chart-4: #d97706;
  --chart-5: #10b981;
  --chart-6: #ef4444;

  --font-display: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 600;
  --display-tracking: -0.01em;
  --eyebrow-tracking: 0.08em;

  --radius-card: 8px;
  --radius-btn: 6px;
  --radius-input: 6px;
  --card-pad: 16px;

  --x-zinc: #8b949e;
  --x-blue: #3b82f6;
  --x-amber: #d97706;
  --x-emerald: #10b981;
  --x-crimson: #ef4444;
  --x-band: #0d1117;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --border: #d0d7de;
  --border-strong: #afb8c1;
  --ink: #1f2328;
  --muted: #59636e;

  --accent: #4c56c7;
  --accent-hover: #3d46b0;
  --accent-ink: #ffffff;
  --accent-text: #4c56c7;
  --accent-strong: #3d46b0;
  --accent-soft: #eef0fd;
  --accent-border: #c7cbf5;

  --success: #1a7f4b;
  --success-ink: #ffffff;
  --success-soft: #e3f6ec;
  --success-strong: #136b3d;

  --warning: #9a6700;
  --warning-ink: #ffffff;
  --warning-soft: #fff0d1;
  --warning-strong: #7a5200;

  --danger: #cf222e;
  --danger-ink: #ffffff;
  --danger-soft: #ffebe9;
  --danger-strong: #a40e26;

  --chart-1: #59636e;
  --chart-2: #4c56c7;
  --chart-3: #0969da;
  --chart-4: #9a6700;
  --chart-5: #1a7f4b;
  --chart-6: #cf222e;

  --x-zinc: #59636e;
  --x-blue: #0969da;
  --x-amber: #9a6700;
  --x-emerald: #1a7f4b;
  --x-crimson: #cf222e;
  --x-band: #eef1f4;
}

/* app.css — leadctl console: board columns, command palette, commit trail. */

.board-col {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  min-height: 320px;
}

.board-col-head {
  border-bottom: 1px solid var(--border);
}

.board-col-body {
  min-height: 240px;
}

.board-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  cursor: grab;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.board-card:active {
  cursor: grabbing;
}

.board-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

@keyframes pulse-stale {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.dot-stale {
  animation: pulse-stale 1.6s ease-in-out infinite;
}

html.reduced-motion .dot-stale {
  animation: none;
}

.commit-line {
  border-left: 1px solid var(--border);
}

.commit-line::before {
  content: "";
  position: absolute;
  left: -4.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--canvas);
}

.command-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-mono);
}

.kbd {
  font-family: var(--font-mono);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-2);
}

.scrollbar-thin::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

[data-panel] {
  animation: none;
}

.table-row-flash {
  animation: flash-row 0.9s ease-out;
}

@keyframes flash-row {
  0% { background: var(--accent-soft); }
  100% { background: transparent; }
}

html.reduced-motion .table-row-flash {
  animation: none;
}
