/* ========== RESET E ESTILOS BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #181818;
  color: #e0e0e0;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== LAYOUT PRINCIPAL ========== */
.dashboard-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex-wrap: wrap;
}

/* ========== BARRAS DE ROLAGEM - MELHORADAS ========== */
::-webkit-scrollbar {
  width: 10px; /* Barra mais grossa */
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #00cc55; /* Cor verde para melhor visualização */
  border-radius: 5px;
  border: 2px solid #222; /* Borda para destacar */
}

::-webkit-scrollbar-track {
  background-color: #333; /* Fundo mais escuro para contraste */
  border-radius: 5px;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #00cc55 #333;
}

/* ========== SIDEBARS ========== */
.sidebar-custom,
.filter-sidebar-custom {
  background-color: #1f1f1f;
  width: 300px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 12px;
  border-right: 1px solid #333;
  height: 450px;
  max-height: 85vh;
  position: relative;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  background-color: #1f1f1f;
  z-index: 10;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 18px;
  color: #00ff00;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-header h2 i {
  font-size: 18px;
}

.sidebar-content {
  height: calc(100% - 50px);
  overflow-y: auto;
  padding-right: 5px;
}

/* ========== ÁREA PRINCIPAL ========== */
.main-content-custom {
  flex: 1;
  padding: 15px;
  background-color: #121212;
  overflow-y: auto;
  min-width: 0;
  height: auto;
  max-height: 100vh;
}

/* ========== ITENS DE JOGO ========== */
.game-item,
.filter-item {
  background-color: #2a2a2a;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.game-item:hover,
.filter-item:hover {
  background-color: #182625;
  border: 1px solid #00cc55;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(10, 247, 109, 0.3);
}

.game-item.active,
.filtered-game-item.active {
  background-color: #28403D;
  border: 1px solid #00ff00;
  box-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
  position: relative;
}

.game-item.active::after,
.filtered-game-item.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  border: 1px solid rgba(0, 255, 0, 0.5);
  pointer-events: none;
}

/* ========== CABEÇALHO DO JOGO ========== */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2a2a2a;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.game-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #00ff00, #0af76d, #00ff00);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.game-header .team {
  display: flex;
  align-items: center;
  font-size: 16px;
  margin: 5px;
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

.game-header .team-logo {
  width: 36px;
  height: 36px;
  margin: 0 8px;
  object-fit: contain;
  border-radius: 50%;
  background-color: #fff;
  padding: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.game-header .score {
  font-size: 22px;
  margin: 0 8px;
  color: #faef0d;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(250, 239, 13, 0.5);
}

.liga-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 5px;
  flex: 1;
  min-width: 120px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 8px;
  border-radius: 8px;
}

.liga {
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #fff;
}

#game-time {
  font-size: 16px;
  color: #38fa28;
  background-color: rgba(56, 250, 40, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}

/* ========== CONTAINER DE GRÁFICOS ========== */
.chart-container {
  background-color: #1f1f1f;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-height: 400px;
}

#chart-wrapper {
  width: 100%;
  height: 280px;
  position: relative;
  transition: all 0.3s ease;
}

.chart-tooltip {
  background-color: rgba(0, 0, 0, 0.8) !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  color: white !important;
  font-weight: bold !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-size: 12px !important;
  max-width: 200px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.chart-tooltip-team {
  color: #0af76d !important;
  font-weight: bold !important;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ========== BOTÕES DE GRÁFICOS ========== */
.chart-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.chart-buttons button {
  background-color: #2a2a2a;
  border: none;
  padding: 8px 12px;
  color: #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chart-buttons button:hover {
  background-color: #3a3a3a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.chart-buttons button.active {
  background-color: #ff4500 !important;
  border: 1px solid #ff2200;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(255, 69, 0, 0.5);
}

/* ========== BARRA DE TEMPO ========== */
.barra_tempo-container {
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.barra_tempo {
  width: 100%;
  height: 10px;
  background-color: #555;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.barra_tempo span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #00cc00, #00ff00);
  border-radius: 5px;
  transition: width 1s linear;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.barra_tempo-eventos.casa {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  top: 0px;
}

.barra_tempo-eventos.visitante {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  top: -30px;
}

.barra_tempo-evento {
  font-size: 14px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 5px;
  border-radius: 5px;
  color: white;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
}

/* ========== ESTATÍSTICAS ========== */
.progress-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
  min-height: 200px;
}

.progress-bar-momentum,
.side-div {
  flex: 1;
  min-width: 280px;
  height: 240px;
  background: #1e1e1e;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

#momentumChart {
  width: 100% !important;
  height: 210px !important;
}

/* ========== GRÁFICOS DONUT ========== */
.donut-charts {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.donut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 75px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 8px;
  border-radius: 8px;
}

.donut-item p {
  color: #fff;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: bold;
  text-align: center;
}

.donut-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.donut-chart {
  width: 55px !important;
  height: 55px !important;
  aspect-ratio: 1 / 1;
}

.donut-value {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  width: 24px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 4px;
}

.left {
  text-align: right;
}

.right {
  text-align: left;
}

/* ========== GRÁFICOS DE BARRAS ========== */
.bar-charts-container {
  text-align: center;
  color: #fff;
  font-size: 13px;
  margin-top: 5px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.bar-charts-container p {
  font-weight: bold;
  margin-bottom: 6px;
}

.bar-chart-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.label-finalizacoes {
  font-size: 13px;
  font-weight: bold;
  width: 28px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 4px;
}

.label-finalizacoes.left {
  text-align: right;
}

.label-finalizacoes.right {
  text-align: left;
}

.bar-chart-canvas {
  flex-grow: 1;
  max-width: 100px;
  height: 10px !important;
}

/* ========== CARTÕES E ESCANTEIOS ========== */
.bar-chart-cartoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 8px;
}

.label-cartoes {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-cartoes.left {
  justify-content: flex-end;
}

.label-cartoes.right {
  justify-content: flex-start;
}

.cartao-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 4px 6px;
  border-radius: 4px;
}

.spacer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  margin: 8px auto;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

/* ========== TABELA DE JOGOS ========== */
#live-games {
  width: 100%;
  height: auto;
  max-height: 850px;
  overflow-y: auto;
}

.linha-superior {
  font-size: 13px;
  color: #bbb;
  background: #333;
  padding: 6px 8px;
  text-align: left;
  width: 100%;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.linha-inferior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: #222;
  width: 100%;
  flex-wrap: nowrap;
  border-radius: 0 0 8px 8px;
}

.tempo-jogo {
  font-size: 13px;
  color: yellow;
  flex: none;
  text-align: center;
  min-width: 28px;
  width: 36px;
  background-color: rgba(255, 255, 0, 0.1);
  padding: 2px;
  border-radius: 4px;
}

.equipes {
  flex: 3;
  text-align: left;
  min-width: 140px;
  padding: 0 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.equipe-casa,
.equipe-visitante {
  font-size: 13px;
  color: #00ff99;
  font-weight: normal;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.placar {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: #00ff00;
  min-width: 45px;
  display: flex;
  flex-direction: column;
}

.botao-eventos {
  flex: 0 0 auto;
  text-align: right;
  min-width: 45px;
  margin-left: 4px;
}

/* Ocultar botões Ver */
.botao-eventos button,
.filtered-botao-eventos button {
  display: none;
}

.hide-view-buttons .botao-eventos button,
.hide-view-buttons .filtered-botao-eventos button {
  display: none;
}

/* ========== SIDEBAR DE FILTRO ========== */
.filter-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100%;
  background: #1e1e1e;
  color: white;
  padding: 15px;
  transition: right 0.3s ease-in-out;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
  border-left: 1px solid #333;
}

.filter-sidebar.active {
  right: 0;
}

.filter-sidebar h3 {
  margin-bottom: 15px;
  font-size: 16px;
  color: #00ff00;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.filter-sidebar label {
  display: block;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 8px;
  border-radius: 4px;
}

.filter-sidebar label:hover {
  color: #0af76d;
  background-color: rgba(10, 247, 109, 0.1);
}

.filter-sidebar .close-btn {
  background: #ff3333;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  float: right;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-sidebar .close-btn:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.filter-sidebar button {
  width: 100%;
  background: #ff4500;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  margin-top: 15px;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-sidebar button:hover {
  background: #cc3700;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.filter-sidebar-custom button {
  width: 100%;
  background: #007bff;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px;
}

.filter-sidebar-custom button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ========== JOGOS FILTRADOS ========== */
.filtered-games-container {
  margin-top: 15px;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  height: auto;
  max-height: 950px;
  overflow-y: auto;
}

.filtered-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  background-color: #2a2a2a;
  z-index: 10;
}

.filtered-header h4 {
  margin: 0;
  color: #0af76d;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filtered-header .actions {
  display: flex;
  gap: 6px;
}

.filtered-header button {
  background-color: rgba(255, 0, 0, 0.2);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filtered-header button:hover {
  background-color: rgba(255, 0, 0, 0.5);
  transform: rotate(90deg);
}

.filtered-header button.clear-btn {
  background-color: rgba(0, 123, 255, 0.2);
}

.filtered-header button.clear-btn:hover {
  background-color: rgba(0, 123, 255, 0.5);
  transform: scale(1.1);
}

#filtered-games-list {
  width: 100%;
  display: block;
  height: 300px;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #00cc55 #333;
}

.filtered-game-item {
  background-color: #111;
  border: 1px solid #333;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
}

.filtered-game-item:hover {
  background-color: #182625;
  border: 1px solid #00cc55;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.filtered-linha-superior {
  font-size: 13px;
  font-weight: bold;
  padding-bottom: 6px;
  color: #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filtered-linha-inferior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #444;
  padding: 8px;
  border-radius: 4px;
  background: #1a1a1a;
}

.filtered-tempo-jogo {
  color: yellow;
  font-weight: bold;
  font-size: 13px;
  width: 36px;
  text-align: center;
  background-color: rgba(255, 255, 0, 0.1);
  padding: 2px;
  border-radius: 4px;
}

.filtered-equipes-placar {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 8px;
}

.filtered-equipe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0;
}

.filtered-equipe-nome {
  color: #00ff00;
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.filtered-placar {
  color: #00ff00;
  font-weight: bold;
  font-size: 13px;
  min-width: 10px;
  text-align: right;
  padding: 0px 8px;
}

.filtered-botao-eventos {
  text-align: right;
  min-width: 45px;
}

/* ========== MENSAGENS E NOTIFICAÇÕES ========== */
.no-games {
  text-align: center;
  padding: 15px;
  color: #888;
  font-style: italic;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  margin: 8px 0;
}

.error-message {
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff3333;
  color: #ff5555;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  margin: 15px 0;
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #e0e0e0;
}

.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top: 3px solid #0af76d;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.notification {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 9999;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========== BOTÕES E CONTROLES ========== */
.btn-refresh {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s ease;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-refresh:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.pulse {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* ========== FILTROS E RECOMENDAÇÕES ========== */
.filter-type-display {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #ccc;
}

.filter-type-display strong {
  color: #38fa28;
  font-weight: bold;
}

.filtro-atual {
  font-size: 13px;
  color: #aaa;
  margin-top: 4px;
  margin-bottom: 8px;
  padding-left: 8px;
}

.filter-section {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.filter-section h4 {
  font-size: 13px;
  color: #38fa28;
  margin-bottom: 6px;
}

.recomendacao {
  padding: 6px;
  border-radius: 4px;
  font-weight: bold;
  margin-top: 4px;
}

.recomendacao-over {
  background-color: rgba(24, 144, 255, 0.2);
  border-left: 3px solid #1890ff;
}

.recomendacao-alta {
  background-color: rgba(82, 196, 26, 0.2);
  border-left: 3px solid #52c41a;
}

.recomendacao-media {
  background-color: rgba(250, 173, 20, 0.2);
  border-left: 3px solid #faad14;
}

.recomendacao-baixa {
  background-color: rgba(250, 140, 22, 0.2);
  border-left: 3px solid #fa8c16;
}

.equipe-pressionando {
  margin-bottom: 4px;
  font-size: 0.9em;
  color: #e0e0e0;
}

.equipe-pressionando i {
  color: #52c41a;
}

.aposta-recomendada {
  font-size: 1.1em;
  color: #ffffff;
}

/* ========== LEGENDA ========== */
#legenda-filtro {
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.2);
}

.legenda-titulo {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #38fa28;
}

.legenda-conteudo {
  padding: 12px;
  color: #e0e0e0;
}

.legenda-conteudo ul {
  padding-left: 18px;
  margin-bottom: 8px;
}

.legenda-conteudo p:last-child {
  margin-bottom: 0;
}

.filtered-game-item .info-overlay {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
}

.filtered-game-item .recomendacao-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: rgba(82, 196, 26, 0.8);
  color: white;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
}

/* ========== MEDIA QUERIES ========== */
/* Telas grandes */
@media (min-width: 1201px) {
  .dashboard-container {
    height: 88vh;
    overflow: hidden;
  }
  
  .sidebar-custom, 
  .filter-sidebar-custom {
    height: 88vh;
    overflow-y: auto;
  }
  
  .main-content-custom {
    height: 88vh;
    overflow-y: auto;
  }
}

/* Telas médias */
@media (max-width: 1200px) {
  .sidebar-custom,
  .filter-sidebar-custom {
    width: 250px;
  }
  
  .game-header .team,
  .liga-container {
    min-width: 100px;
  }
  
  .progress-bar-momentum,
  .side-div {
    min-width: 250px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .dashboard-container {
    flex-direction: column;
    height: auto;
  }
  
  .sidebar-custom,
  .filter-sidebar-custom {
    width: 100%;
    height: auto;
    max-height: 280px;
    position: relative;
  }
  
  .sidebar-content {
    height: auto;
    max-height: 230px;
  }
  
  .main-content-custom {
    height: auto;
    max-height: none;
  }
  
  .progress-wrapper {
    flex-direction: column;
  }
  
  .progress-bar-momentum,
  .side-div {
    width: 100%;
    min-width: 100%;
    height: 200px !important;
  }
  
  #momentumChart {
    height: 170px !important;
  }
  
  .chart-container {
    padding: 12px;
  }
  
  #chart-wrapper {
    height: 220px;
  }
}

/* Celulares - MELHORADO PARA DISPOSITIVOS MÓVEIS */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .dashboard-container {
    display: flex;
    flex-direction: column;
    padding: 4px;
  }
  
  .main-content-custom {
    order: 1; /* Mostra o conteúdo principal primeiro */
    padding: 8px;
  }
  
  .sidebar-custom {
    order: 2; /* Mostra a sidebar de jogos depois */
    max-height: 220px;
    padding: 8px;
  }
  
  .filter-sidebar-custom {
    order: 3; /* Mostra a sidebar de filtros por último */
    max-height: 220px;
    padding: 8px;
  }
  
  .sidebar-content {
    max-height: 180px;
  }
  
  /* Melhora a rolagem em dispositivos móveis */
  .sidebar-content,
  #live-games,
  #filtered-games-list,
  .main-content-custom {
    -webkit-overflow-scrolling: touch; /* Rolagem suave em iOS */
    scroll-behavior: smooth; /* Rolagem suave em geral */
  }
  
  .game-header {
    flex-direction: column;
    padding: 8px;
    margin-bottom: 12px;
  }
  
  .game-header .team {
    width: 100%;
    margin: 4px 0;
    min-width: 0;
  }
  
  .game-header .team-logo {
    width: 28px;
    height: 28px;
    margin: 0 4px;
  }
  
  .game-header .score {
    font-size: 18px;
  }
  
  .liga-container {
    width: 100%;
    min-width: 0;
    padding: 6px;
  }
  
  .chart-buttons {
    gap: 4px;
    margin-bottom: 8px;
  }
  
  .chart-buttons button {
    font-size: 12px;
    padding: 5px 7px;
    margin: 1px;
  }
  
  .donut-charts {
    justify-content: center;
    gap: 4px;
  }
  
  .donut-item {
    min-width: 65px;
    padding: 4px;
  }
  
  .donut-chart {
    width: 45px !important;
    height: 45px !important;
  }
  
  .progress-wrapper {
    min-height: 100px;
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .progress-bar-momentum,
  .side-div {
    height: 160px !important;
    padding: 4px;
  }
  
  #momentumChart {
    height: 140px !important;
  }
  
  .chart-container {
    padding: 8px;
    margin-bottom: 8px;
  }
  
  #chart-wrapper {
    height: 160px;
  }
  
  .barra_tempo-container {
    padding: 8px;
    margin-bottom: 8px;
  }
  
  .game-item, 
  .filtered-game-item {
    padding: 6px;
    margin-bottom: 6px;
  }
  
  #live-games, 
  #filtered-games-list {
    max-height: 300px; /* Aumentado para melhor visualização em celulares */
  }
  
  .filtered-games-container {
    max-height: 300px; /* Aumentado para melhor visualização em celulares */
    padding: 8px;
  }
  
  .bar-chart-cartoes {
    flex-direction: column;
    gap: 6px;
    padding: 6px;
  }
  
  .label-cartoes.left,
  .label-cartoes.right {
    justify-content: center;
    width: 100%;
  }
}

/* Celulares pequenos */
@media (max-width: 576px) {
  body {
    font-size: 13px;
  }
  
  .dashboard-container {
    padding: 2px;
  }
  
  .sidebar-custom,
  .filter-sidebar-custom,
  .main-content-custom {
    padding: 4px;
  }
  
  .sidebar-custom,
  .filter-sidebar-custom {
    max-height: 180px;
  }
  
  .sidebar-content {
    max-height: 140px;
  }
  
  .game-header .team-logo {
    width: 24px;
    height: 24px;
  }
  
  .game-header .score {
    font-size: 16px;
  }
  
  .chart-buttons button {
    font-size: 11px;
    padding: 3px 5px;
  }
  
  .donut-chart {
    width: 38px !important;
    height: 38px !important;
  }
  
  .donut-value {
    font-size: 11px;
    width: 18px;
  }
  
  .progress-bar-momentum,
  .side-div {
    height: 140px !important;
  }
  
  #momentumChart {
    height: 120px !important;
  }
  
  #live-games, 
  #filtered-games-list {
    max-height: 250px;
  }
  
  .filtered-games-container {
    max-height: 250px;
  }
  
  .filtered-linha-inferior {
    flex-direction: column;
    padding: 4px;
  }
  
  .filtered-tempo-jogo,
  .filtered-equipes-placar,
  .filtered-botao-eventos {
    width: 100%;
    text-align: center;
    margin: 2px 0;
  }
}

/* Dispositivos muito pequenos */
@media (max-width: 375px) {
  body {
    font-size: 12px;
  }
  
  .sidebar-custom,
  .filter-sidebar-custom {
    max-height: 160px;
  }
  
  .sidebar-content {
    max-height: 120px;
  }
  
  .progress-bar-momentum,
  .side-div {
    height: 120px !important;
  }
  
  #momentumChart {
    height: 100px !important;
  }
  
  #live-games, 
  #filtered-games-list {
    max-height: 200px;
  }
  
  .filtered-games-container {
    max-height: 200px;
  }
}

/* Ajustes para zoom de 40% */
@media (max-width: 768px) and (zoom: 40%), 
       (max-width: 768px) and (-webkit-transform-scale: 0.4) {
  body {
    font-size: 16px;
  }
  
  .dashboard-container {
    min-height: 300vh;
  }
  
  .sidebar-custom,
  .filter-sidebar-custom {
    max-height: 350px;
  }
  
  .game-item, 
  .filtered-game-item {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .game-header .team-logo {
    width: 45px;
    height: 45px;
  }
  
  .game-header .score {
    font-size: 26px;
  }
  
  .chart-buttons button {
    font-size: 14px;
    padding: 10px 16px;
  }
  
  #live-games, 
  #filtered-games-list {
    max-height: 300px;
  }
  
  .filtered-games-container {
    max-height: 300px;
  }
  
  .progress-bar-momentum,
  .side-div {
    height: 200px !important;
  }
  
  #momentumChart {
    height: 180px !important;
  }
}