/* Estilos específicos da página de estatísticas */
.panel,
.card {
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bottom) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 14px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.select {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0c0f14;
  border: 1px solid #1f2430;
  border-radius: 14px;
  padding: 10px 12px;
}
.select:focus-within {
  box-shadow: 0 0 0 3px var(--ring);
}
select {
  appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 14px;
}
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #2a3242;
  background: #121722;
  color: var(--text);
  font-size: 12px;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 0.8fr;
}
@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.chart-wrap {
  position: relative;
  height: 380px;
}
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent-600);
  animation: spin 1s linear infinite;
  margin: 24px auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--muted);
  font-weight: 600;
}
tbody tr:hover {
  background: #0e1218;
}
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #0f1720;
  border: 1px solid #2a3242;
  font-weight: 800;
}
.ball.accent {
  background: rgba(8, 145, 178, 0.15);
  border-color: #186a7f;
}
.alert {
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: #3c1111;
  border: 1px solid #5c1a1a;
  color: #ffb4b4;
  font-size: 13px;
}
