/* Design tokens — ported from the Telegram Archive Platform Figma design */
:root {
  --bg: #07090f;
  --fg: #dde2ed;
  --card: #0d1220;
  --card-fg: #dde2ed;
  --popover: #111827;
  --primary: #2aabee;
  --primary-fg: #ffffff;
  --secondary: #121b2e;
  --secondary-fg: #8b9bb4;
  --muted: #0f1624;
  --muted-fg: #5a6b84;
  --accent: #00c5ff;
  --destructive: #e53e5d;
  --destructive-fg: #ffffff;
  --border: rgba(255, 255, 255, 0.06);
  --border-soft: rgba(255, 255, 255, 0.04);
  --input-bg: rgba(255, 255, 255, 0.04);
  --dim: #3a4b5e;
  --success: #22c55e;
  --warning: #f59e0b;
  --purple: #a855f7;
  --sidebar: #0a0f1a;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", monospace;

  --sidebar-w: 56px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  /* Stops rubber-band overscroll from bubbling past the page and being read by
     the Telegram client as a swipe-to-close gesture (see disableVerticalSwipes()
     in app.js — this is the CSS half of that same fix). */
  overscroll-behavior-y: none;
}

a { color: inherit; }

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

.mono { font-family: var(--font-mono); }
.dim { color: var(--dim); }
.muted { color: var(--muted-fg); }

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.demo-tag {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  padding: 2px 8px;
  text-transform: uppercase;
}
