/* ===== MEGASENA VISUAL ===== */

#resultado-container-megasena {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.megasena-banner-item {
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #0056b3;
  padding: 5px;
}

.megasena-banner-item:hover {
  background-color: #ffcc80;
}

.megasena-coluna {
  flex: 1 1 20%;
  min-width: 400px;
  min-height: 420px;
  font-size: 0.95em;
  padding: 10px;
  border-radius: 8px;
}

.megasena-coluna h4 {
  font-size: 1.2em;
  margin-bottom: 16px;
  border-bottom: 2px solid #2e7d32;
  padding-bottom: 6px;
  color: #2e7d32;
}

.megasena-dados {
  margin: 0;
  padding: 0;
  list-style: none;
}

.megasena-par {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.megasena-label {
  flex: 1 1 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2e7d32;
}

.megasena-valor {
  flex: 0 0 28%;
  text-align: right;
  font-weight: bold;
  color: #222;
}

/* ===== MATRIZ MEGASENA ===== */
#matriz-container-megasena {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#nav-buttons-megasena {
  text-align: center;
  margin-top: 20px;
}

#nav-buttons-megasena button {
  width: 60px;
  padding: 5px 5px;
  margin: 0 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #2e7d32;
  color: #2e7d32;
  border-radius: 3px;
  transition: background-color 0.2s;
}

#nav-buttons-megasena button:hover {
  background-color: #2e7d32;
  color: white;
}

.megasena-matriz {
  display: grid;
  grid-template-columns: repeat(10, 40px); /* 60 dezenas → 10x6 */
  grid-template-rows: repeat(6, 40px);
  gap: 6px;
  justify-content: center;
}

.megasena-matriz div {
  background: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  border-radius: 5px;
  cursor: default;
  user-select: none;
  transition: background-color 0.3s;
}

.megasena-matriz div.highlighted {
  background: #ffcc80;
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 6px #fbc02d;
}

.indicadores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 12px;
}

#indicadores .megasena-par {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

#indicadores .megasena-par.full-width {
  grid-column: span 2; /* se quiser controlar via classe no futuro */
}

#indicadores .dz-faltante {
  display: flex;
  flex-direction: column; /* empilha label e valor */
  margin-top: 5px;
}

#indicadores .dz-faltante .megasena-label {

  margin-bottom: 2px;
}

#indicadores .dz-faltante .megasena-valor {
  white-space: normal; /* permite quebra de linha se necessário */
}

/* ===== RESPONSIVO: MEGASENA ===== */
@media (max-width: 768px) {
  #resultado-container-megasena {
    flex-direction: column;
    align-items: center;
  }

  .megasena-coluna {
    max-width: 100%;
    width: 90%;
    margin-bottom: 20px;
  }

  .megasena-matriz {
    grid-template-columns: repeat(6, 45px); /* reorganiza para telas menores */
    grid-template-rows: repeat(10, 45px);
  }
}
