/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Corpo do site */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    background-color: #f4f4f4; 
    color: #333;
    line-height: 1.6;
}

/* Contêiner principal */
main {
    flex: 1; 
    background-color: #fff;
    padding: 20px;
}

/* Cabeçalho */
header {
    background: #000000;
    color: white;
    padding: 20px 0;
    text-align: center; 
}

header .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column; 
    align-items: center; 
}

header h1 {
    margin: 0;
    font-size: 2.5rem; 
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    margin-top: 10px;
    padding: 0;
}

nav ul li {
    margin: 0 15px; 
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem; 
    position: relative;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007BFF;
}

nav ul li a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Botões */
.btn {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #004494;
    transform: translateY(-3px);
}

/* Seção de Cadastro */
.cadastro {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff; 
}

.cadastro h2 {
    margin-bottom: 20px;
    font-size: 2rem; 
}

.cadastro form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
}

.cadastro input, .cadastro textarea {
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.cadastro button {
    background-color: #007BFF;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.cadastro button:hover {
    background-color: #0056b3;
}
.custom-file-upload {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
}
.custom-file-upload:hover {
    background-color: #0056b3;
}
#file-name {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

#preview {
    display: none;
    max-width: 150px;  
    max-height: 150px; 
    border-radius: 10px;
    margin-top: 10px;
}
/* Estilo adicional para novos campos do formulário */
.cadastro textarea {
    height: 100px;
    resize: vertical;
}
/* Estilo para a mensagem de sucesso */
#success-message {
    display: none; /* Inicialmente escondido */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centraliza no meio da tela */
    background-color: #ffffff; /* Cor de fundo verde */
    color: rgb(0, 0, 0); /* Cor do texto */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Garante que a mensagem ficará sobre outros elementos */
    font-size: 18px;
    text-align: center;
    min-width: 200px;
}

/* Estilo para o botão "Ver Lista" */
#verListaBtn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #008CBA; /* Cor azul */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#verListaBtn:hover {
    background-color: #005f73; /* Tom mais escuro de azul quando o botão é passado o mouse */
}
/* Estilo para o modal */
.modal {
    display: none; 
    position: fixed;
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.4); 
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}

.modal button {
    margin-top: 20px;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal button:hover {
    background-color: #007BFF;
}



/* Rodapé */
footer {
    text-align: center;
    background-color: #007BFF; 
    color: white;
    padding: 15px;
    margin-top: auto; 
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #0056b3;
}

/* Exemplo de CSS para garantir que a div é visível por padrão */
#desaparecido-form {
    display: flex; /* ou block, dependendo do seu layout */
    flex-direction: column; 
}
/* E a mensagem de sucesso está oculta por padrão, como você já tem */
#success-message {
    display: none;
}






.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-box {
    background: #fff;
    padding: 30px 50px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    text-align: center;
}

.loading-box i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 10px;
}

.loading-box p {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}






select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    background-color: #fff;
    color: #333;
}

select:focus {
    border-color: #007bff;
    outline: none;
}


/* -------- MENU HAMBURGUER RESPONSIVO -------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle.active i {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #000;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    text-align: center;
    border-bottom: 3px solid #007BFF;
  }

  nav.open {
    max-height: 300px; /* ajustável conforme o número de links */
  }

  nav ul {
    flex-direction: column;
    padding: 10px 0;
    gap: 10px;
  }

  nav ul li {
    margin: 0;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 10px 0;
    color: #fff;
    border-radius: 0;
    font-size: 1.1rem;
    transition: background 0.3s ease;
  }

  nav ul li a:hover {
    background-color: #007BFF;
  }

  .menu-toggle {
    display: block;
  }
}

