@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root { color-scheme: dark; }

html, body {
  background-color: #0b1220;
  color: #e5e7eb;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[x-cloak] { display: none !important; }

* {
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
*::-webkit-scrollbar-track { background: transparent; }

/* Logo Rednex glow */
@keyframes logoGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.18)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.10)); }
  50% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.30)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.18)); }
}
@keyframes logoFadeIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
.logo-glow {
  animation: logoFadeIn .5s ease-out both, logoGlowPulse 3.5s ease-in-out infinite .5s;
}
.logo-glow svg { overflow: visible; }
.logo-soft-glow {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
  transition: filter .25s ease;
}
.logo-soft-glow:hover {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.30));
}

/* Card */
.card {
  background: linear-gradient(180deg, #152238 0%, #0f1a2e 100%);
  border: 1px solid #1f2a44;
  border-radius: 14px;
}

/* KPI icon */
.kpi-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Sidebar menu item */
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #94a3b8;
  font-weight: 500;
  transition: background-color .15s, color .15s;
  text-decoration: none;
  cursor: pointer;
}
.menu-item:hover { background: #1b2a44; color: #e5e7eb; }
.menu-item.active {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

/* Input dark */
.input-dark {
  background: #0f1a2e;
  border: 1px solid #1f2a44;
  border-radius: 8px;
  color: #e5e7eb;
  padding: 8px 12px;
  width: 100%;
  font-size: 14px;
}
.input-dark:focus { outline: none; border-color: #3b82f6; }
.input-dark::placeholder { color: #64748b; }

/* Botões */
.btn-primary {
  background: #22c55e;
  color: #0b1220;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color .15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #16a34a; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: #1b2a44;
  color: #e5e7eb;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #1f2a44;
  cursor: pointer;
}
.btn-secondary:hover { background: #1f2a44; }

.btn-danger { background: #ef4444; color: #fff; font-weight: 500; padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; }
.btn-danger:hover { background: #dc2626; }

/* Labels */
.label-form {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

/* Tabela dark */
.table-dark {
  width: 100%;
  font-size: 14px;
  color: #e5e7eb;
}
.table-dark thead {
  background: #0f1a2e;
  color: #94a3b8;
  text-align: left;
}
.table-dark thead th {
  padding: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #1f2a44;
}
.table-dark tbody tr {
  border-bottom: 1px solid #1f2a44;
  transition: background-color .15s;
}
.table-dark tbody tr:hover { background: #131e35; }
.table-dark tbody td { padding: 12px; }

/* Badges */
.badge { display: inline-flex; padding: 2px 10px; border-radius: 9999px; font-size: 11px; font-weight: 600; }
.badge-success { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.badge-info { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.badge-warning { background: rgba(250, 204, 21, 0.12); color: #facc15; }
.badge-error { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.badge-muted { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }
.badge-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
