.panoptico-body {
  min-height: 100dvh;
  background: #020617;
  color: #e2e8f0;
  font-family: Inter, system-ui, sans-serif;
}

.panoptico-login {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.panoptico-login-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: linear-gradient(160deg, #0f172a, #020617);
  box-shadow: 0 0 48px rgba(6, 182, 212, 0.12);
}

.panoptico-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #22d3ee;
}

.panoptico-login-card h1,
.panoptico-topbar h1 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.panoptico-sub {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.panoptico-login-card input {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  color: #fff;
}

.panoptico-login-card button,
.panoptico-btn-primary {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #0891b2, #7c3aed);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.panoptico-foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
}

.panoptico-foot a {
  color: #22d3ee;
}

.hidden {
  display: none !important;
}

.panoptico-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
}

.panoptico-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.panoptico-toolbar select,
.panoptico-toolbar button {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.panoptico-toolbar .panoptico-btn-primary {
  width: auto;
  margin: 0;
}

.panoptico-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panoptico-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.panoptico-kpi {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.06);
}

.panoptico-kpi span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #67e8f9;
}

.panoptico-kpi strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
}

.panoptico-kpi--alert {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.08);
}

.panoptico-informe {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.5), rgba(2, 6, 23, 0.8));
}

.panoptico-informe h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c4b5fd;
}

.panoptico-informe-text {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.panoptico-informe-meta {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #64748b;
}

.panoptico-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.panoptico-chart-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
}

.panoptico-chart-card--wide {
  grid-column: 1 / -1;
}

.panoptico-chart-card h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.panoptico-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.panoptico-heat-cell {
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

.panoptico-heat-cell strong {
  display: block;
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.panoptico-alertas article {
  margin-top: 0.65rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(69, 10, 10, 0.25);
}

.panoptico-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: #059669;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 200;
}
