/* ============================================================
   VERTEX — Tech layer
   Estética: Vercel · Linear · Cursor IDE · Resend
   Aplica em cima de vertex.css
   ============================================================ */

/* Geist — a fonte da Vercel, mais técnica que Inter */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --font:  'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'Geist Mono', ui-monospace, SF Mono, monospace;

  --grid-color: rgba(255,255,255,0.025);
  --spot-color: rgba(201,169,97,0.10);
}
:root[data-theme="light"] {
  --grid-color: rgba(0,0,0,0.04);
  --spot-color: rgba(182,139,58,0.08);
}

body {
  font-family: var(--font);
  letter-spacing: -0.011em;
  font-feature-settings: "ss01", "ss03", "cv11";
}

/* ============================================================
   1) DOT GRID — background técnico sutil
   ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--grid-color) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
}
.app, .login-page > * { position: relative; z-index: 1; }

/* ============================================================
   2) CURSOR SPOTLIGHT nos cards
   Luz radial que segue o mouse, estilo Tailwind/Aceternity
   ============================================================ */
.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    250px circle at var(--mx, 50%) var(--my, 50%),
    var(--spot-color),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 200ms;
  z-index: 1;
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 2; }

/* Border gradient sutil no hover */
.card {
  background-clip: padding-box;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--accent) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 200ms;
  z-index: 1;
  pointer-events: none;
}
.card:hover::before { opacity: .6; }

/* ============================================================
   3) MÉTRICAS — tipografia maior, mono tabulares
   ============================================================ */
.metric-value {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.038em;
  font-feature-settings: "tnum", "ss01";
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 500;
}
.metric-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Card maior espaçamento */
.card { padding: 22px 20px; }

/* ============================================================
   4) SIDEBAR — brand block estilo Vercel
   ============================================================ */
.sidebar-brand {
  position: relative;
  padding: 14px 12px 22px;
}
.sidebar-brand .brand-text {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.sidebar-brand .brand-text small {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* "Live" dot ao lado do brand */
.sidebar-brand::after {
  content: "";
  position: absolute;
  top: 18px; right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: vx-tech-pulse 2s ease-in-out infinite;
}
@keyframes vx-tech-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

.nav-item {
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: -0.005em;
}

/* ============================================================
   5) TOPBAR — status pills tipo dev tool
   ============================================================ */
.topbar h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.028em;
}
.topbar .subtitle {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.005em;
}

/* Pill genérica usada por vx-clock e status */
.vx-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}
.vx-pill .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}
.vx-pill .dot.live {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: vx-tech-pulse 2s ease-in-out infinite;
}

/* Override do vx-clock pra usar visual pill */
.vx-clock {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-family: var(--mono) !important;
  font-size: 11px !important;
}

/* ============================================================
   6) TABELAS — visual de dev tool
   ============================================================ */
th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
td { font-size: 13px; }
td.mono { font-family: var(--mono); font-size: 12px; }

/* ============================================================
   7) BOTÕES — refinados
   ============================================================ */
.btn {
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: -0.005em;
}

/* ============================================================
   8) BADGES — visual command-bar
   ============================================================ */
.badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
}

/* ============================================================
   9) THEME TOGGLE — refinar visual
   ============================================================ */
.theme-toggle {
  height: 28px;
  width: 56px;
}

/* ============================================================
   10) LOGIN — visual SaaS premium
   ============================================================ */
.login-brand h1 {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
}
.login-brand .tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.login-card h2 {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}
.login-card .form-group label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   11) KBD — atalhos
   ============================================================ */
kbd, .kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-muted);
}

/* ============================================================
   12) SECTION HEAD — tipografia mono
   ============================================================ */
.section-head h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.section-head .hint {
  font-family: var(--mono);
  font-size: 11px;
}

/* ============================================================
   13) SCROLL — invisible até hover
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }

/* ============================================================
   14) Form inputs com vibe terminal
   ============================================================ */
.form-group input, .form-group select {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.005em;
}

/* ============================================================
   15) FILE-LIST — visual file browser
   ============================================================ */
.file-name { font-family: var(--font); }
.file-meta { font-family: var(--mono); }
.file-date { font-family: var(--mono); font-size: 11px; }

/* ============================================================
   16) MAIN content — espaço maior
   ============================================================ */
.main { padding: 36px 44px 52px; }
