/* Estilos gerais */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000; /* Fundo preto */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-width: 100%;
  overflow-y: auto; /* Habilita o scroll */
  position: relative;
}

/* Estilo da logo */
.logo-container {
  margin-top: 20px;
  text-align: center;
}

.logo-image {
  height: 60px; /* Ajuste conforme necessário */
  width: auto;
}

.background-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.line {
  position: absolute;
  width: 4px;
  height: 100px;
  background-color: rgba(253, 176, 1, 0.8);
  top: -10px;
  opacity: 0;
  animation: fall 3s linear infinite;
}

@keyframes fall {
  0% {
    top: -10%;
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

form {
  display: grid;
  /* flex-direction: column; */
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 80%;
  margin-inline: auto;
  background-color: #444;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  z-index: 1;
}

.labelInput {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

#registerButtonContainer {
  grid-column: span 3;
  text-align: center;
}

label {
  font-weight: 600;
  font-size: 14px;
  color: #ccc;
}

input, select {
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #555;
  background-color: #555;
  color: white;
}

input:focus, select:focus {
  border-color: rgb(253, 176, 1);
  outline: none;
  box-shadow: 0 0 0 2px rgba(253, 176, 1, 0.3);
}

select {
  cursor: pointer;
}

select option {
  background-color: #444;
  color: white;
}

button {
  background-color: rgb(253, 176, 1);
  font-size: 16px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

button:hover {
  background-color: rgb(225, 155, 0);
  transform: translateY(-2px);
}

.botoes-container {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Tabela de usuários - REDUZIDA */
table {
  width: 70%; /* Reduzido de 80% para 70% */
  border-collapse: collapse;
  border-spacing: 0;
  margin-top: 20px; /* Reduzido de 30px para 20px */
  display: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 13px; /* Reduzido o tamanho da fonte */
}

th {
  padding: 10px 8px; /* Reduzido de 15px para 10px 8px */
  text-align: center;
  font-size: 13px; /* Reduzido de 14px para 13px */
  background-color: rgb(253, 176, 1);
  color: white;
  font-weight: bold;
}

td {
  padding: 8px 6px; /* Reduzido de 12px para 8px 6px */
  text-align: center;
  font-size: 13px; /* Reduzido de 14px para 13px */
  background-color: #333;
  border-bottom: 1px solid #444;
  color: white;
}

/* Definir larguras para cada coluna */
table th:nth-child(1), table td:nth-child(1) { width: 16%; } /* Nome Empresário */
table th:nth-child(2), table td:nth-child(2) { width: 16%; } /* Nome Empresa */
table th:nth-child(3), table td:nth-child(3) { width: 12%; } /* Cargo */
table th:nth-child(4), table td:nth-child(4) { width: 12%; } /* Valor */
table th:nth-child(5), table td:nth-child(5) { width: 14%; } /* CNPJ */
table th:nth-child(6), table td:nth-child(6) { width: 12%; } /* Data */
table th:nth-child(7), table td:nth-child(7) { width: 18%; } /* Ações */

tr:hover td {
  background-color: #3a3a3a;
}

#tituloUsuarios {
  display: none;
  font-size: 18px;
  color: white;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px; /* Adicionado para reduzir espaço */
}

#tabelaUsuarios {
  margin-top: 0;
}

.editando {
  background-color: #3a3a3a !important;
}

.campo-editavel {
  background-color: #444;
  border: 1px solid rgb(253, 176, 1);
  color: white;
  width: 90%;
  padding: 5px;
  border-radius: 4px;
}

.logo-image {
  height: 80px;
  width: auto;
  mix-blend-mode: screen;
}

/* Botões na tabela */
td button {
  padding: 6px 10px; /* Botões menores */
  font-size: 12px; /* Fonte menor */
  margin: 2px;
}

/* Estilo para o select na tabela */
.select-cargo {
  background-color: #444;
  color: white;
  border: 1px solid rgb(253, 176, 1);
  border-radius: 4px;
  padding: 4px;
  width: 95%;
}

/* Mensagem de erro */
.error-message {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 5px;
  font-style: italic;
}

/* Estilo para o popup */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #333;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: white;
}

@media (max-width: 768px) {
  body {
    overflow-x: auto;
  }
  form {
    display: flex;
    flex-direction: column;
    margin-inline: auto;
  }
  table {
    width: 95%; /* Tabela mais larga em mobile */
    font-size: 12px;
  }
  td button {
    padding: 4px 8px;
    font-size: 11px;
  }
}