:root {
  --line: #243244;
  --panel: #111827;
  --bg: #0b0f19;
  --text: #e2e8f0;
  --muted: #94a3b8;
}

body {
  background: radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.12), transparent 40%), var(--bg);
  color: var(--text);
}

/* Scrollbar global no tema do painel */
* {
  scrollbar-width: thin;
  scrollbar-color: #22d3ee #0b1320;
  scrollbar-gutter: stable;
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #0a1220, #0b1320);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22d3ee, #0ea5e9);
  border: 2px solid #0b1320;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(8, 47, 73, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #67e8f9, #38bdf8);
}

*::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
}

*::-webkit-scrollbar-corner {
  background: #0b1320;
}

.card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
}

.input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  min-height: 2.75rem;
  line-height: 1.25;
  font-size: 0.9rem;
  color: var(--text);
}

.input:focus {
  outline: 2px solid #06b6d4;
  outline-offset: 1px;
}

.label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  text-decoration: none;
}

.btn-primary {
  background: #22d3ee;
  color: #082f49;
  font-weight: 600;
}

.btn-primary:hover { background: #67e8f9; }

.btn-secondary {
  background: #334155;
  color: #e2e8f0;
}

.btn-secondary:hover { background: #475569; }

.btn-danger {
  background: #f43f5e;
  color: #fff;
}

.btn-danger:hover { background: #e11d48; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid;
  font-size: 0.75rem;
}

.badge-green { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.badge-amber { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.35); color: #fcd34d; }
.badge-red { background: rgba(244, 63, 94, 0.08); border-color: rgba(244, 63, 94, 0.35); color: #fda4af; }
.badge-gray { background: rgba(148, 163, 184, 0.08); border-color: rgba(148, 163, 184, 0.25); color: #cbd5e1; }

.table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: 0.75rem;
  background: rgba(30, 41, 59, 0.4);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(36, 50, 68, 0.7);
}

.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: #e2e8f0;
  text-decoration: none;
}

.nav-link:hover { background: #334155; }
.value { font-size: 1.9rem; font-weight: 700; margin-top: 0.25rem; }

.dashboard-card-limited {
  max-height: min(75vh, 34rem);
}

.dashboard-card-scroll {
  overflow: auto;
}

.dashboard-card-shell {
  display: flex;
  flex-direction: column;
}

.dashboard-card-shell .dashboard-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

@media (max-width: 1023px) {
  body.drawer-open { overflow: hidden; }
}

@media (max-width: 639px) {
  .table th,
  .table td {
    padding: .5rem .75rem;
  }
}
