/* ===== RESET BÁSICO ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #e3f2fd);
  min-height: 100vh;
  padding-top: 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ===== HEADER FIXO ===== */
header {
  background-color: #070707;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px;
  object-fit: contain;
  display: block;
}

/* ===== NAV ===== */
nav {
  display: flex;
  gap: 20px;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
nav a.active {
  border-bottom: 2px solid #e0f7fa;
}
button:active {
  transform: translateY(1px);
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  width: 100%;
  margin-top: 20px;
  transition: all 0.3s ease;
}

/* ===== TÍTULO ===== */
h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 25px;
  font-weight: 700;
}

/* ===== SEÇÃO DE BUSCA ===== */
.search-section {
  margin-bottom: 20px;
  text-align: center;
}
.search-section input {
  padding: 10px 14px;
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  font-size: 15px;
  transition: 0.3s;
}
.search-section input:focus {
  border-color: #3498db;
  box-shadow: 0 0 6px rgba(52, 152, 219, 0.3);
}

/* ===== SEÇÃO DE INPUTS ===== */
.input-section {
  margin-bottom: 25px;
  text-align: center;
}

/* ===== CAMPOS ESTILIZADOS ===== */
label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
  text-align: left;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  max-width: 350px;
  padding: 10px 14px;
  margin-bottom: 15px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
  outline: none;
  background-color: #fafafa;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: #3498db;
  box-shadow: 0 0 6px rgba(52, 152, 219, 0.3);
  background-color: #fff;
}

/* ===== CAMPOS EM LINHA ===== */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.form-group {
  flex: 1;
  min-width: 200px;
}

/* ===== INPUTS ESPECÍFICOS ===== */
#nomeInput,
#documentoInput {
  text-transform: uppercase;
}

/* ===== BOTÃO ADICIONAR ===== */
.input-section button {
  padding: 12px 18px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  background-color: #3498db;
  color: white;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}
.input-section button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* ===== LISTA DE CONVIDADOS ===== */
#listaConvidados {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
#listaConvidados li {
  background-color: #f8f9fa;
  margin-bottom: 12px;
  padding: 15px 18px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  transition: 0.3s;
}
#listaConvidados li:hover {
  background-color: #eef3f7;
}
#listaConvidados li span {
  flex: 1 1 65%;
  font-size: 15px;
  color: #2c3e50;
}
#listaConvidados li div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 35%;
}

/* ===== STATUS PRESENTE ===== */
.presente {
  background-color: #d4fcd4;
  font-weight: bold;
}

/* ===== BOTÕES DA LISTA ===== */
#listaConvidados li button {
  padding: 8px 14px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  color: white;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

#listaConvidados li button:hover {
  transform: translateY(-2px);
}

/* Confirmar */
#listaConvidados li button.confirmar {
  background-color: #3498db;
}
#listaConvidados li button.confirmar:hover {
  background-color: #2980b9;
}

/* Desmarcar */
#listaConvidados li button.desmarcar {
  background-color: #0b6623;
}
#listaConvidados li button.desmarcar:hover {
  background-color: #08521a;
}

/* Excluir */
#listaConvidados li button.excluir {
  background-color: #e74c3c;
}
#listaConvidados li button.excluir:hover {
  background-color: #c0392b;
}

/* ===== MENU MOBILE ===== */
.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: block;
}

.menu {
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: #070707;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.menu.hidden {
  display: none;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
}

.menu a:last-child {
  border-bottom: none;
}

.menu a:hover,
.menu a.active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
  }

  input[type="text"],
  select {
    max-width: 100%;
  }
}

/* ===== Sugestões para tipoInput ===== */
.tipo-suggestions {
  position: relative;
  max-width: 350px;
  margin: 6px auto 10px;
  width: 100%;
  display: none; /* inicialmente escondido */
  z-index: 1200;
}

.tipo-suggestions .list {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  max-height: 180px;
  overflow-y: auto;
}

.tipo-suggestions .item {
  padding: 10px 12px;
  cursor: pointer;
  color: #2c3e50;
  font-weight: 500;
}
.tipo-suggestions .item:hover,
.tipo-suggestions .item.active {
  background-color: #eef6ff;
}
.tipo-suggestions .empty {
  padding: 10px 12px;
  color: #777;
}

/* mobile-friendly */
@media (max-width: 420px) {
  .tipo-suggestions { max-width: 100%; margin-left: 0; margin-right: 0; }
}

