* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0d1b2a, #1b263b);
  color: #ffffff;
  min-height: 100vh;
  padding: 0;
  padding-top: 140px; /* espaço para header fixo */
}

/* Header com logo */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  background-color: #0d1b2a;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: #060d18; /* fundo mais escuro */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.logo {
  width: 250px;
  max-width: 100%;
  height: auto;
}

/* Container principal */
.container {
  max-width: 800px;
  margin: 140px auto 60px auto;
  background-color: #1e2a3a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: fadeInUp 0.8s ease-out both;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Labels e inputs alinhados à esquerda */
label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e0e0e0;
}

input[type="text"] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background-color: #334759;
  color: #fff;
  transition: background-color 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  background-color: #3b546b;
}

/* Botões animados */
.link-button {
  display: block;
  padding: 15px 30px;
  margin: 15px auto;
  background-color: #00aaff;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 300px;
  position: relative;
  overflow: hidden;
}

.link-button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.4s;
  z-index: 0;
}

.link-button:hover {
  background-color: #0077cc;
  transform: translateY(-2px);
}

.link-button:hover::after {
  left: 0;
}

.link-button:active {
  transform: scale(0.98);
}

/* Estilo dos botões da página equipes */
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.actions button {
  flex: 1 1 auto;
  max-width: 150px;
  padding: 12px 20px;
  background-color: #00aaff;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.actions button:hover {
  background-color: #0077cc;
}

/* Botão Voltar ao Menu Principal */
.back-button {
  display: inline-block;
  margin: 30px auto 0 auto;
  padding: 12px 28px;
  background-color: #00aaff;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 170, 255, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  user-select: none;
  max-width: 300px;
  text-align: center;
}

.back-button:hover {
  background-color: #0077cc;
  box-shadow: 0 6px 14px rgba(0, 119, 204, 0.6);
  transform: translateY(-2px);
}

.back-button:active {
  transform: scale(0.98);
}

/* Botão Remover lista de Equipes */
.remove-equipe-btn {
  margin-top: 10px;
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.remove-equipe-btn:hover {
  background-color: #b02a37;
}




/* ===== Aumentando espaçamentos nos resultados ===== */

/* Passagem - tabela */
table#tabelaRegistros {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px; /* espaço vertical entre linhas da tabela */
  margin-top: 40px; /* mais espaço acima da tabela */
}

table#tabelaRegistros thead tr {
  background-color: #223348;
  color: #aad4ff;
}

table#tabelaRegistros tbody tr {
  background-color: #2e435e;
  transition: background-color 0.3s ease;
}

table#tabelaRegistros tbody tr:hover {
  background-color: #3b5470;
}

table#tabelaRegistros th,
table#tabelaRegistros td {
  padding: 14px 18px;
  text-align: left;
  border-radius: 6px;
  vertical-align: middle;
}

/* Equipes - espaçamento entre listas e divs */
#listaMembros {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 25px;
  margin-bottom: 40px;
  text-align: left;
  color: #d0e4ff;
  font-size: 1.1rem;
}

#equipesFormadas {
  margin-top: 40px;
  margin-bottom: 40px;
  padding-left: 20px;
  text-align: left;
  color: #d0e4ff;
  font-size: 1.1rem;
}

#equipesFormadas > div {
  margin-bottom: 40px; /* espaço maior entre cada equipe */
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* opcional, para visual separar */
}

/* Responsivo */
@media (max-width: 600px) {
  .container {
    margin: 30px 20px;
    padding: 20px;
  }

  .link-button {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .actions button {
    max-width: 100%;
  }

  .back-button {
    max-width: 100%;
    padding: 12px 20px;
    margin: 20px auto 0 auto;
  }

  table#tabelaRegistros th,
  table#tabelaRegistros td {
    padding: 10px 12px;
  }

  #listaMembros,
  #equipesFormadas {
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 30px;
    padding-left: 16px;
  }
}

/* ===== Animações ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  animation: fadeInUp 0.8s ease-out both;
}

.container h1 {
  animation: fadeInUp 1s ease-out both;
  animation-delay: 0.2s;
}

.link-button {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.link-button:nth-of-type(1) {
  animation-delay: 0.5s;
}

.link-button:nth-of-type(2) {
  animation-delay: 0.7s;
}
  

.footer {
  background-color: #0d1b2a;
  color: #ccc;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  margin: 0;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  header {
    padding: 10px 20px;
    justify-content: center;
  }

  .logo {
    width: 180px;
  }

  .container {
    margin: 20px 16px;
    padding: 20px;
  }

  input[type="text"] {
    font-size: 1rem;
    padding: 10px;
  }

  .link-button,
  .back-button {
    font-size: 1rem;
    padding: 12px 20px;
    max-width: 100%;
  }

  .actions button {
    max-width: 100%;
  }

  /* Tabela responsiva */
  table#tabelaRegistros,
  table#tabelaRegistros thead,
  table#tabelaRegistros tbody,
  table#tabelaRegistros th,
  table#tabelaRegistros td,
  table#tabelaRegistros tr {
    display: block;
    width: 100%;
  }

  table#tabelaRegistros thead {
    display: none;
  }

  table#tabelaRegistros tr {
    margin-bottom: 15px;
    background-color: #2e435e;
    padding: 10px;
    border-radius: 8px;
  }

  table#tabelaRegistros td {
    text-align: left;
    padding: 10px 12px;
    position: relative;
  }

  table#tabelaRegistros td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #aad4ff;
    display: block;
    margin-bottom: 4px;
  }
}
