/* === ESTILO GERAL === */
body {
  font-family: "Segoe UI", sans-serif;
  background-color: #0b0f1a;
  color: #cdd9e5;
  margin: 0;
  padding: 0;
}

main {
  padding: 5px 10px; /* espaçamento lateral reduzido */
  max-width: 140px;
  margin: 0 auto;
}

h1 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0;
}

/* === CABEÇALHO === */
header {
  background-color: #0d111c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  border-bottom: 1px solid #1e2639;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

/* === MENU CENTRAL === */
#header-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-grow: 1;
  margin: 0 80px;
}

#header-menu button {
  background: none;
  border: none;
  color: #cdd9e5;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}

#header-menu button:hover {
  color: #2e6ff2;
}

#header-menu button.active {
  color: #2e6ff2;
}

#header-menu button.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2e6ff2;
  border-radius: 2px;
}

/* === BOTÃO ENTRAR === */
.join-btn {
  background: linear-gradient(90deg, #2e6ff2, #5584ff);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(46, 111, 242, 0.5);
  transition: all 0.25s ease;
}

.join-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(46, 111, 242, 0.8);
}

/* === TEXTO DO VOLUME === */
#volumeTopText {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #a9c2ff;
  font-size: 16px;
  font-weight: 500;
  margin: 18px 0 25px 0;
}

/* === BOX DE INFORMAÇÕES === */
.info-box {
  background: #0d111c;
  border: 1px solid #1e2639;
  border-radius: 12px;
  padding: 20px 25px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.info-box ul {
  list-style: disc;
  padding-left: 20px;
}

.info-box li {
  margin-bottom: 5px;
}

/* === FILTROS E BOTÕES === */
.filters, .tabs {
  margin-bottom: 12px;
}

.filters button, .tabs button {
  background: #162338;
  color: #ccc;
  border: none;
  padding: 8px 14px;
  margin-right: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.filters button:hover, .tabs button:hover {
  background: #264065;
}

.filters button.active, .tabs button.active {
  background: #2e6ff2;
  color: #fff;
}

/* === TABELA === */
#tbl {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 15px;
}

#tbl thead th {
  background: #101a2e;
  color: #c8d4e0;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #1f2e4a;
  cursor: pointer;
}

#tbl tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.25s;
}

#tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
#tbl tbody tr:hover td { background: rgba(255, 255, 255, 0.05); }

/* === STATUS E DECISÕES === */
tr.green  { background-color: rgba(0, 255, 120, 0.15); }
tr.red    { background-color: rgba(255, 80, 80, 0.15); }
tr.blue   { background-color: rgba(0, 180, 255, 0.15); }
tr.gray   { background-color: rgba(180, 180, 180, 0.15); }

/* === INDICADORES === */
.atr-low  { color: #00ff6a !important; font-weight: 600; }
.atr-mid  { color: #ffdd59 !important; font-weight: 600; }
.atr-high { color: #ff4d4d !important; font-weight: 600; }

.bb-low   { color: #00ff6a !important; font-weight: 500; }
.bb-mid   { color: #ffdd59 !important; font-weight: 500; }
.bb-high  { color: #ff4d4d !important; font-weight: 500; }

/* ======== AJUSTE DE LAYOUT ======== */
main {
  padding: 0 10px; /* remove bordas grandes laterais */
  max-width: none; /* permite largura total */
}

/* ======== RODAPÉ ======== */
footer {
  background: #0d111c;
  text-align: center;
  padding: 45px 0;
  color: #ccc;
  font-size: 14px;
  margin-top: 60px;
  border-top: 1px solid #1a2132;
}

footer .socials {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

footer .socials a {
  text-decoration: none;
  transition: transform 0.2s, filter 0.3s;
}

footer .socials svg,
footer .socials img.social-svg {
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(0.8);
  transition: transform 0.2s, filter 0.3s;
}

footer .socials a:hover svg,
footer .socials a:hover img.social-svg {
  transform: scale(1.15);
  filter: brightness(0) invert(1) drop-shadow(0 0 5px #8b5cf6);
}


/* ======== BOTÕES DO GRÁFICO DE VOLUME ======== */
.volume-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

/* Grupos de botões (modo e período) */
.mode-buttons,
.period-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Estilo geral dos botões */
.mode-buttons button,
.period-buttons button {
  background: #1a1f2d;
  color: #cdd9e5;
  border: 1px solid #2c3348;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover */
.mode-buttons button:hover,
.period-buttons button:hover {
  background: #2a3a57;
  color: #fff;
  border-color: #29354d;
}

/* Botão ativo */
.mode-buttons button.active,
.period-buttons button.active {
  background: #fcfdff;
  color: #020202;
  border-color: #31394b;
  box-shadow: 0 0 10px rgba(59, 71, 95, 0.6);
  transform: scale(1.05);
}

/* Modo responsivo */
@media (max-width: 600px) {
  .mode-buttons button,
  .period-buttons button {
    flex: 1 1 30%;
    font-size: 13px;
    padding: 7px 10px;
  }
}

/* ======== Estilos do temporizador de timeframe ======== */
.tf-cooldown-wrap {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  width: 110px;
  height: 10px;
  border: 1px solid #2c3348;
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
}

.tf-cooldown-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #6b21a8);
  width: 100%;
  transition: width 1s linear;
}

/* ======== Indicadores visuais do volume topo ======== */
#volumeTopText {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
}

#volumeTopText .spot {
  color: #3cf;
}

#volumeTopText .perp {
  color: #9f6cff;
}

#volumeTopText .total {
  color: #0f8;
}

/* ======== Mensagens de status ======== */
.updating {
  color: #fc3;
  font-style: italic;
}

.error {
  color: #f66;
  font-weight: 500;
}

/* ======== Ajustes gerais (caso necessários) ======== */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
