/*
 * LinkShor Design Tokens
 * Central source of truth for all colors, spacing, and design values.
 * All component CSS files should reference these variables.
 */

:root {
  /* Backgrounds */
  --ls-bg: #f8fafc;
  --ls-surface: #ffffff;
  --ls-surface-2: #f1f5f9;
  --ls-ink: #08111f;
  --ls-text: #334155;
  --ls-muted: #64748b;
  --ls-border: #e2e8f0;

  /* Brand */
  --ls-primary: #2563eb;
  --ls-primary-hover: #1d4ed8;
  --ls-accent: #06b6d4;
  --ls-success: #22c55e;
  --ls-warning: #f59e0b;
  --ls-premium: #8b5cf6;
  --ls-danger: #ef4444;

  /* Radius */
  --ls-radius-sm: 6px;
  --ls-radius-md: 8px;
  --ls-radius-lg: 12px;

  /* Layout */
  --ls-sidebar-width: 260px;
  --ls-sidebar-collapsed: 72px;
  --ls-topbar-height: 72px;

  /* Shadows */
  --ls-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --ls-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
  --ls-bg: #08111f;
  --ls-surface: #0f172a;
  --ls-surface-2: #111827;
  --ls-ink: #f8fafc;
  --ls-text: #cbd5e1;
  --ls-muted: #94a3b8;
  --ls-border: #1e293b;

  --ls-primary: #3b82f6;
  --ls-primary-hover: #60a5fa;
  --ls-accent: #22d3ee;
  --ls-success: #4ade80;
  --ls-warning: #fbbf24;
  --ls-premium: #a78bfa;
  --ls-danger: #f87171;

  --ls-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --ls-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Theme Toggle Button */
.ls-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--ls-border);
  background: var(--ls-surface);
  color: var(--ls-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s, border-color .15s;
  padding: 0;
  line-height: 1;
}
.ls-theme-toggle:hover {
  border-color: var(--ls-primary);
  background: var(--ls-surface-2);
}
[data-theme="dark"] .ls-theme-toggle-light { display: none; }
[data-theme="light"] .ls-theme-toggle-dark { display: none; }
.ls-theme-toggle-light,
.ls-theme-toggle-dark { font-size: 1rem; line-height: 1; }
