/* ===========================
   RESET / BASE
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  background: url("backgorund.png") no-repeat center center fixed;
  background-size: cover;
  color: #e5f0ff;
  min-height: 100vh;
  padding: 16px;
}

/* ===========================
   CONTAINER
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto 32px;
}

/* Caixa geral */
.box {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
}

/* ===========================
   EFEITO NEON
=========================== */
@keyframes glowPulseBlue {
  0% { box-shadow: 0 0 0 rgba(59,130,246,0), 0 0 0 rgba(59,130,246,0); }
  50% { box-shadow: 0 0 18px rgba(59,130,246,0.35), 0 0 40px rgba(59,130,246,0.18); }
  100% { box-shadow: 0 0 0 rgba(59,130,246,0), 0 0 0 rgba(59,130,246,0); }
}

@keyframes glowPulseGold {
  0% { box-shadow: 0 0 0 rgba(255,214,107,0); }
  50% { box-shadow: 0 0 16px rgba(255,214,107,0.35), 0 0 30px rgba(255,179,71,0.22); }
  100% { box-shadow: 0 0 0 rgba(255,214,107,0); }
}

.neon-box {
  animation: glowPulseBlue 4.5s ease-in-out infinite;
  border-color: rgba(59,130,246,0.35);
}

.neon-card {
  animation: glowPulseBlue 3.6s ease-in-out infinite;
  border-color: rgba(59,130,246,0.28);
}

.neon-fab {
  animation: glowPulseGold 3s ease-in-out infinite;
}

/* ===========================
   HEADER
=========================== */
header {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg,#ffd66b,#ffb347);
  color: #1a1200;
  font-size: 11px;
  font-weight: 600;
}

h1 {
  font-size: 24px;
  margin-bottom: 4px;
  font-weight: 700;
}

.subtitle {
  font-size: 13px;
  color: #c4cbe3;
}

.subtitle-bg {
  background: rgba(0,0,0,.6);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}

/* ===========================
   FILTROS
=========================== */
.filter-row {
  margin: 10px 0 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg,#ffd66b,#ffb347);
  color: #1a1200;
  transition: .18s ease;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(255,214,107,0.35);
}

.btn-small {
  font-size: 10px;
  padding: 6px 10px;
}

/* ===========================
   CARDS
=========================== */
.grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.card { padding: 12px 14px; }

/* ===========================
   TABELA NÍVEL
=========================== */
.table-box { margin-bottom: 18px; }

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.table-wrapper { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 820px;
}
th,td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #c4cbe3;
  background: rgba(255,255,255,0.06);
}
tbody tr:nth-child(even) { background: rgba(0,0,0,.25); }
tbody tr:hover {
  background: rgba(255,255,255,.1);
  cursor: pointer;
}
tr.selecionado {
  background: rgba(59,130,246,.35) !important;
}

/* ===========================
   GRÁFICOS
=========================== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.chart-wrap {
  width: 100%;
  padding-top: 4px;
  height: 260px;
}

/* ===========================
   INSIGHTS
=========================== */
.insights {
  margin-bottom: 14px;
  font-size: 12px;
}
.insights-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ffd66b;
  margin-bottom: 4px;
}
.bold { font-weight: 700; }

/* ===========================
   FAB MENUS
=========================== */
.fab-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
}

.fab-container-dados {
  bottom: 86px;
}

.fab-main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg,#ffd66b,#ffb347);
  color: #1a1200;
  font-size: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.fab-dados {
  font-size: 22px;
  background: #05070f;
  color: #ffd66b;
  border: 1px solid #ffd66b;
}

.fab-menu {
  position: absolute;
  right: 60px;
  bottom: 0;
  background: rgba(5,7,20,.98);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px;
  min-width: 240px;
  display: none;
}
.fab-menu.open { display: block; }

.fab-menu button {
  width: 100%;
  padding: 7px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.fab-menu button:hover {
  background: rgba(255,255,255,.12);
}

/* ===========================
   RESPONSIVO
=========================== */
@media(max-width:900px){
  .charts-grid{ grid-template-columns:1fr; }
}
@media(max-width:768px){
  body{ padding:10px; }
  header{ flex-direction:column; align-items:flex-start; gap:6px; }
  .grid{ grid-template-columns:1fr; }

  .fab-main{ width:46px;height:46px;font-size:20px; }
  .fab-menu{ min-width:210px;right:54px; }
  .fab-container-dados{ bottom:76px; }
}
