/* Estilo geral */
body{
  background-color: #706c6c;
}

header {
  position: fixed;          /* Fixa no topo da tela */
  top: 0;                   /* Alinha ao topo */
  left: 0;
  width: 100%;              /* Ocupa toda a largura */
  background-color: #1e1e1e;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;            /* Fica acima dos outros elementos */
}

header h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  color: white;
  font-size: 38px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 5px 0;
}

header h3{
  font-size: 15px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: 1px;
  margin-bottom: 1px;
  color: bisque;
  padding: 5px 0;
}
/* Animação suave */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-size: 18px;
}

.opcoes {
  background-color: #333;
  padding: 1em 0;
  margin-top: 120px;
  color: #bbb;
}

.opcoes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.opcoes ul li {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
  background: none;   /* Remove fundo */
  font-size: 20px;
}

.opcoes ul li:hover {
  background-color: #575151;
  
}

.opcoes ul li a,
.opcoes ul li span {
  color: rgb(231, 225, 225);
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 10px 15px;
  background: none;
  border: none;
  outline: none;
}

/* Submenu oculto até o hover */
nav.opcoes .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 0;
  list-style: none;
  /*background: transparent;*/
  background-color: #1e1e1e;
 }

/* Exibe o submenu ao passar o mouse */
nav.opcoes li:hover .submenu {
  display: block;
}

/* Garante que os itens do submenu fiquem empilhados verticalmente */
nav.opcoes .submenu li {
  display: block; /* força um abaixo do outro */
  margin: 0;
  padding: 0;
}

/* Links do submenu */
nav.opcoes .submenu a {
  display: block; /* força cada link a ocupar uma linha inteira */
  padding: 6px 12px;
  color: #f1eaea;
  text-decoration: none;
  background: transparent; /* sem fundo branco */
  white-space: nowrap; /* 👈 evita quebra de linha */
  transition: background 0.3s, color 0.3s;
}

/* Hover no link: só destaca o texto, não o bloco inteiro */
nav.opcoes .submenu a:hover {
  /*background-color: #ccc;*/
  /*color: rgb(241, 135, 6);*/
  color: #db9806;
  background-color: #333333;
}

/* Scrollbar personalizada */
.submenu::-webkit-scrollbar {
  width: 8px;
}

.submenu::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.submenu::-webkit-scrollbar-thumb {
  background-color: #4FC3F7;
  border-radius: 10px;
  border: 2px solid #2a2a2a;
}

  .form-empresa label {
    color: white;
  }


/* Container com sombra e cantos arredondados */

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 280px;
  border-top: 30px;
  padding-top: 30px;
  padding: 40px;
  animation: slideIn 0.5s ease-out;
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  max-width: 400px;
}

.container-altura-form-empresa {
  height: 400px;
}

.container-data {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 430px;
  border-top: 30px;
  padding-top: 30px;
  padding: 40px;
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  max-width: 400px;
}

.container-data h3{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  margin-bottom: 25px;
  color: #f3ecec;
  font-size: 35px;
}

.container h3 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  margin-bottom: 28px;
  color: #f3ecec;
  font-size: 30px;
}

.titulo-data {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  margin-bottom: 10px;
  color: #f3ecec;
  font-size: 25px;
}

/* Grupo de input com ícone */
.input-group {
  display: flex;
  align-items: center;
  background-color: #2a2a2a;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.input-group:hover {
  background-color: #333;
}

.input-group i {
  color: #bbb;
  margin-right: 10px;
}

.input-group input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  flex: 1;
  font-size: 16px;
}

/* Botão com animação */
button {
  background-color: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #0056b3;
  transform: scale(1.02);
}

/* Formulãrios */
.container-form {
  background-color: rgb(110, 107, 102);
  color: bisque;
}

/* Dados da tabela */
.table-dados {
  border-collapse: collapse;
  width: 100%;
  background-color: rgb(110, 107, 102); /* Fundo da tabela */
  color: rgb(245, 231, 216); 
  text-align: center;
}

.table-dados th, .table-dados td {
  padding: 4px; /* espaço entre linhas*/
  border: 1px solid #444;
  font-weight: bold;
}

.table-dados thead {
  background-color: #2c2c2c;
}
/*
.table th {
  font-weight: bold;
}
*/

.form-caixa {
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  margin: auto;
  box-sizing: border-box;
  margin-top: 20px;
}

.form-titulo {
  text-align: center;
  margin-bottom: 40px;
}

.form-grupo {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.form-campo {
  width: 100%;
  padding: 10px;
  background-color: #2c2c2c;
  border: 1px solid #444;
  color: white;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-botao {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}

.form-botao:hover {
  background-color: #0056b3;
}

@media (max-width: 400px) {
  .form-label, .form-campo, .form-botao {
    font-size: 0.95rem;
  }

  .form-botao {
    padding: 10px;
  }
}


.mensagem-sucesso {
  background-color: #2d4f2d;
  color: #d4ffd4;
  border: 1px solid #4caf50;
  padding: 20px;
  margin: 40px auto;
  max-width: 500px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.btn-voltar {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.btn-voltar:hover {
  background-color: #0056b3;
}

/* Animação de entrada */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}