/* ═══════════════════════════════════════════════════════════════════
   CLIENT MANAGER — DESIGN TOKENS
   Fonte única de tokens, acessibilidade e utilitários.
   Compartilhado por index.html (painel) e login.html.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg-deep: #060a13;
  --bg: #0a0f1a;
  --bg-gradient: linear-gradient(135deg, #060a13 0%, #0d1525 40%, #0a1628 70%, #080e1f 100%);

  /* Glassmorphism Surfaces */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.14);

  /* Neon Accents */
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.15);
  --accent-glow: rgba(0, 229, 255, 0.3);
  --accent-strong: #00f0ff;
  --purple: #a855f7;
  --purple-dim: rgba(168, 85, 247, 0.15);
  --purple-glow: rgba(168, 85, 247, 0.3);

  /* Semantic Colors */
  --warn: #fbbf24;
  --warn-dim: rgba(251, 191, 36, 0.12);
  --warn-glow: rgba(251, 191, 36, 0.25);
  --danger: #ff4d6a;
  --danger-dim: rgba(255, 77, 106, 0.12);
  --danger-glow: rgba(255, 77, 106, 0.25);
  --danger-strong: #ff2d55;
  --success: #34d399;
  --success-dim: rgba(52, 211, 153, 0.12);
  --success-glow: rgba(52, 211, 153, 0.3);

  /* Neutral / muted */
  --muted-dim: rgba(148, 163, 184, 0.15);
  --muted-glow: rgba(148, 163, 184, 0.3);

  /* Text (contraste ajustado p/ WCAG) */
  --text: #e8ecf4;
  --text-secondary: rgba(232, 236, 244, 0.75);
  --text-muted: rgba(220, 226, 238, 0.62);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Radius */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.25s;
  --duration-slow: 0.4s;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Spacing */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
}

/* ── ACESSIBILIDADE GLOBAL ──────────────────────────────────────── */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-dim);
  color: var(--accent-strong);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── UTILITÁRIOS DE ESPAÇAMENTO ─────────────────────────────────── */
.mt-sm { margin-top: var(--s2); }
.mt-md { margin-top: 14px; }
.mt-lg { margin-top: var(--s5); }
.mt-xl { margin-top: var(--s6); }
.mb-sm { margin-bottom: var(--s2); }
.mb-md { margin-bottom: var(--s4); }
.mb-lg { margin-bottom: var(--s5); }

.gap-sm { gap: var(--s2); }
.gap-md { gap: var(--s4); }
.gap-lg { gap: var(--s5); }

/* ── UTILITÁRIOS DE LAYOUT ──────────────────────────────────────── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}