/* Tasky shared design system — tokens + primitives. Used by /show and /admin. */
:root {
  /* brand */
  --brand: #7c5cff;
  --brand-2: #2dd4bf;
  --accent: #fb7185;
  --ok: #34d399;
  --warn: #fbbf24;
  --crit: #f87171;

  /* surfaces (default = neutral dark, overridden by smart-ui themes on /show) */
  --bg: #0d0f1a;
  --bg-2: #151829;
  --surface: #1b1f33;
  --surface-2: #232845;
  --line: #2c3252;
  --text: #f3f4fb;
  --muted: #a2a8c8;
  --muted-2: #6f76a0;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0,0,0,.40);
  --shadow-sm: 0 6px 18px rgba(0,0,0,.25);
  --ease: cubic-bezier(.22,.61,.36,1);

  /* priority colors */
  --p1: #64748b; --p2: #38bdf8; --p3: #f59e0b; --p4: #f43f5e;

  /* category colors */
  --cat-Fokus: #7c5cff; --cat-Haushalt: #2dd4bf; --cat-Orga: #f59e0b;
  --cat-Familie: #fb7185; --cat-Gesundheit: #34d399;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* primitives */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--muted);
}
.chip-cat { color: #0b0d16; font-weight: 700; }
.badge-prio {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
  background: var(--surface-2); color: var(--text); transition: transform .12s var(--ease), filter .12s var(--ease);
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--brand), #9d7bff); color: #fff; }
.btn-accent { background: linear-gradient(135deg, var(--accent), #ff94a6); color: #2a0a12; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }

/* live connection dot */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.5)} 70%{box-shadow:0 0 0 9px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }

.fade-in { animation: fadeIn .35s var(--ease); }
@keyframes fadeIn { from{opacity:0; transform: translateY(8px)} to{opacity:1; transform:none} }
