/* ============================ 
   Tema Renovado - Baba Sem Domínio
   Inspirado no novo escudo
============================ */

/* Variáveis de cores */
:root {
  --primary-color: linear-gradient(to right, #000000, #D62828); /* Azul → Vermelho */
  --secondary-color: rgba(20, 20, 20, 0.85); /* Fundo escuro da tabela */
  --accent-color: #ffffff; /* Branco para contraste */
  --text-color: #ffffff; /* Branco no fundo escuro */
  --hover-color: #D62828; /* Vermelho forte no hover */
  --background-gradient: linear-gradient(135deg, #0041A8, #000000, #D62828); /* Fundo do app */
  --font-family: "Oswald", sans-serif;
}

/* Estilo global */
body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background: var(--background-gradient);
  color: var(--text-color);
  min-height: 100vh;
}

/* Botões de menu */
button, .menu-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover, .menu-btn:hover {
  background: var(--hover-color);
  transform: scale(1.05);
}

/* Tabelas */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--secondary-color); /* Fundo escuro */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Cabeçalhos da Tabela */
th {
  background: var(--primary-color);
  color: #fff;
  font-weight: bold;
  padding: 4px 6px; /* Linhas mais estreitas */
  text-align: center;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Linhas e Células */
td {
  padding: 2px 4px; /* Compacto para linha estreita */
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid #ffffff33;
  color: var(--accent-color); /* Branco para contraste */
  line-height: 1.2;
}

/* Botões dentro da tabela */
td button {
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
  line-height: 1;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
}

td button:hover {
  background: var(--hover-color);
  transform: scale(1.05);
}

/* Alternância de Cores */
tr:nth-child(even) {
  background-color: rgba(255,255,255,0.05);
}

tr:nth-child(odd) {
  background-color: rgba(255,255,255,0.1);
}

/* Efeito Hover */
tr:hover {
  background-color: var(--hover-color);
  color: #fff;
  transition: background 0.2s ease-in-out;
}

/* Bordas arredondadas */
table tr:first-child th:first-child {
  border-top-left-radius: 12px;
}

table tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Responsividade */
@media (max-width: 768px) {
  th,
  td {
    padding: 2px 3px;
    font-size: 0.85rem;
  }
  table {
    border-radius: 8px;
  }
  button, .menu-btn {
    padding: 12px 18px;
    font-size: 1rem;
  }
  td button {
    padding: 1px 4px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  th,
  td {
    padding: 1px 2px;
    font-size: 0.75rem;
  }
  table {
    border-radius: 6px;
  }
  button, .menu-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  td button {
    padding: 1px 3px;
    font-size: 0.65rem;
  }
}
