:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-2: #111827;
  --border: #1f2937;
  --accent: #22d3ee;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #475569 #0b1220;
}

body {
  background: radial-gradient(circle at top, #0f172a 0%, var(--bg) 38%);
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(2, 6, 23, 0.98));
}

.sidebar .nav-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
}

.sidebar .nav-item:hover,
.sidebar .nav-item.active {
  border-color: #334155;
  background: #0b1220;
}

.panel {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 14px;
}

.kpi-card {
  border: 1px solid #1e293b;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5));
}

.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-ativo { background: rgba(34,197,94,0.15); color: #86efac; }
.badge-analise { background: rgba(56,189,248,0.16); color: #7dd3fc; }
.badge-inativo { background: rgba(234,179,8,0.16); color: #fde68a; }
.badge-substituido { background: rgba(168,85,247,0.16); color: #d8b4fe; }
.badge-removido { background: rgba(239,68,68,0.16); color: #fda4af; }

.table-wrap { overflow: auto; max-height: 65vh; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th,
.data-table td {
  border-bottom: 1px solid #1e293b;
  padding: 0.65rem 0.5rem;
  text-align: left;
  font-size: 0.82rem;
}

.data-table th {
  position: sticky;
  top: 0;
  background: #0f172a;
  z-index: 1;
}

input, select, textarea, button {
  border-radius: 10px;
}

input, select, textarea {
  background: #0b1220;
  border: 1px solid #334155;
  color: #e2e8f0;
}

.btn-primary {
  background: linear-gradient(120deg, #0891b2, #2563eb);
  border: 1px solid #0284c7;
}

.btn-danger {
  background: #7f1d1d;
  border: 1px solid #b91c1c;
}

.hidden { display: none !important; }

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
}
