/* ==========================
   CONFIGURAÇÃO GLOBAL
========================== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f4f8;
  box-sizing: border-box;
}

.centralizado-vertical {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 100px 20px; /* Espaço inferior para o rodapé */
  box-sizing: border-box;
  overflow-y: auto;
}

/* ==========================
   LOGO
========================== */
.logo {
  max-width: 220px;
  width: 100%;
  margin: 10px 0;
}

/* ==========================
   MENU PRINCIPAL
========================== */
.menu-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 15px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 20px auto;
  padding: 20px;
  box-sizing: border-box;
  /* Limita para não ultrapassar o logo + rodapé */
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.menu-item {
  background: #fff;
  border-radius: 12px;
  color: #17203D;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease;
}
.menu-item:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
  transform: translateY(-3px);
}
.menu-item.pix {
  animation: pulsar 2s infinite;
}

.menu-icon {
  font-size: 36px;
  margin-bottom: 8px;
  transition: font-size .3s ease;
}

.menu-text {
  font-size: 10px;
  color: #334155;
  text-align: center;
  font-weight: 600;
}

/* Links dentro do menu */
.menu-container a,
.menu-container a:visited,
.menu-container a:hover,
.menu-container a:active,
.menu-container a:focus {
  text-decoration: none !important;
  color: inherit !important;
}

/* ============================= */
/* Navegação inferior fixa       */
/* ============================= */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: #17203D;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
}
.bottom-nav a {
  color: white;
  text-align: center;
  font-size: 1.6rem;
  text-decoration: none;
  flex: 1;
  padding: 8px 0;
  transition: color 0.3s ease;
}
.bottom-nav a.active,
.bottom-nav a:hover {
  color: #ffd54f;
}

/* ============================= */
/* Containers principais         */
/* ============================= */
.container-full {
  padding-bottom: 56px; /* espaço da bottom-nav */
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 10px;
  background: #f8f9fa;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

/* ==========================
   MODAL / FORMULÁRIO LOGIN
========================== */
.modal-content {
  padding: 1.5rem 2rem;
}
.login-box label {
  font-weight: 600;
}
.login-box form input.form-control {
  width: 100% !important;
  max-width: 100% !important;
  font-size: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}
.login-box form button.btn {
  font-size: 1.25rem;
  padding: 0.75rem;
}

/* ==========================
   BOTÃO PERSONALIZADO
========================== */
.btn-custom {
  background-color: #17203D;
  color: white;
  border: none;
}
.btn-custom:hover {
  background-color: #0f172b;
  color: white;
}

/* ==========================
   RODAPÉ / PRÓXIMO JOGO FIXO
========================== */
.proximo-jogo {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  background: #fff;
  padding: 14px 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .1);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  z-index: 1000;
}

/* ============================= */
/* Cartões de atletas            */
/* ============================= */
.atleta-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  margin-bottom: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 15px;
  cursor: pointer;
  box-sizing: border-box;
}
.atleta-nome {
  font-size: 20px;
  font-weight: bold;
  flex: 1;
  text-transform: uppercase;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}
.atleta-nome i {
  font-size: 18px;
  color: #444;
}
.acoes-atleta {
  background: #f1f1f1;
  padding: 12px;
  border-radius: 8px;
}
.btn-group {
  display: flex;
  gap: 5px;
}

/* ============================= */
/* Tabelas responsivas e estilizadas */
/* ============================= */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-atletas {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  table-layout: auto;
  box-sizing: border-box;
}
.table-atletas thead {
  background-color: #17203D;
  color: white;
}
.tabela-pequena td, .tabela-pequena th {
  font-size: 14px;
  padding: 6px 6px;
}
.table-atletas th,
.table-atletas td {
  padding: 12px 10px;
  border: 1px solid #dee2e6;
  vertical-align: middle;
  word-wrap: break-word;
  box-sizing: border-box;
}
.table-atletas tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}
.table-atletas tbody tr:nth-child(even) {
  background-color: #ffffff;
}
.table-atletas .nome-coluna {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  width: auto;
  white-space: normal;
}
.table-atletas .acoes-coluna {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-wrap: wrap;
}
.table-atletas .acoes-coluna .btn {
  padding: 6px 12px;
  font-size: 14px;
  height: 34px;
  min-width: auto;
}

/* ============================= */
/* Cronômetro                     */
/* ============================= */
#cronometro {
  display: block;
  margin-top: 6px;
  line-height: 1.6;
  font-size: 12px;
  color: #334155;
}

/* ============================= */
/* Regras                         */
/* ============================= */
.regras-container {
  width: 90%;
  max-width: 600px;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.regra {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.regra i {
  color: #17203D;
  font-size: 20px;
  margin-top: 3px;
}
.regra-texto {
  text-align: left;
  color: #334155;
  font-size: 15px;
}

/* ==========================
   ANIMAÇÃO
========================== */
@keyframes pulsar {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(23, 32, 61, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(23, 32, 61, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(23, 32, 61, 0);
  }
}

/* ==========================
   RESPONSIVIDADE
========================== */
@media (max-width: 480px) {
  .menu-container {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 12px;
    padding: 15px;
    max-height: calc(100vh - 180px);
  }
  .menu-icon {
    font-size: 32px;
  }
  .menu-text {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .menu-container {
    grid-gap: 10px;
    padding: 10px;
    max-height: calc(100vh - 160px);
  }
  .menu-icon {
    font-size: 28px;
  }
  .menu-text {
    font-size: 8px;
  }
}