/* Seu CSS atualizado */
body {
  font-family: Arial, sans-serif;
  background: #0d0d0d;
  color: #ffffff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: #141414;
  padding: 30px;
  border-bottom: 2px solid #00ff7f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

header .logo {
  color: #fff;
  font-size: 30px;
  font-weight: bold;
}

header nav a {
  margin-left: 20px;
  color: #00ff7f;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  padding-bottom: 5px; /* Adicionado para a linha do active */
}

/* NOVO: Destaque para a página atual na navegação */
header nav a.active {
  color: #fff;
  border-bottom: 2px solid #fff;
}

/* Home */
.home {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  text-align: start;
  flex: 1;
}

.home h1 {
  color: #00ff7f;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 700; /* Mais destaque */
}

.home p {
  color: #d3d3d3;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 18px;
}

.home section {
  margin-top: 90px;
}

/* Cards */
.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  width: 380px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transição mais suave */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); /* NOVO: Sombra sutil no estado normal */
}

.card:hover {
  border: 1px solid #00ff7f;
  transform: translateY(-8px); /* Efeito mais pronunciado */
  box-shadow: 0 8px 20px rgba(0, 255, 127, 0.3); /* Sombra mais suave */
}

.card h2 {
  color: #fff;
  margin-bottom: 10px;
  font-weight: 500; /* Levemente menos negrito que o H1 */
}

.card p {
  color: #d3d3d3;
  margin-bottom: 15px;
  font-size: 16px;
}

.card a {
  display: inline-block;
  padding: 10px 15px;
  background: #00ff7f;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 255, 127, 0.2); /* NOVO: Sombra no botão */
}

.card a:hover {
  background: #00e673; /* Cor mais vibrante no hover */
  box-shadow: 0 4px 12px rgba(0, 255, 127, 0.4); /* Sombra mais intensa no hover */
}

.card-large {
  width: calc(390px * 2 + 20px);
  margin-bottom: 40px;
}

.card-large ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.card-large ul li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 10px;
  color: #c7c7c7;
}

.card-large ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #00ff7f;
  font-size: 1.2em;
  line-height: 1.2;
}

/* Footer */
footer {
  background: #141414;
  text-align: center;
  padding: 20px;
  margin-top: auto;
  color: #888;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
  position: relative;
}

.footer-logo {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 130px;
  filter: brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(0%)
    hue-rotate(173deg) brightness(95%) contrast(86%);
}

footer strong {
  color: #9c9c9c;
}

footer nav {
  margin-top: 10px;
}

/* Container principal */
.container {
  width: 900px;
  margin: 60px auto;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  flex: 1; /* Adicionado para preencher o espaço restante */
}

/* Títulos */
h1 {
  text-align: center;
  color: #00ff7f;
  font-weight: 700; /* Mais destaque */
}

h2 {
  margin-top: 20px;
  color: #ffffff;
  border-bottom: 1px solid #333333;
  padding-bottom: 5px;
  margin-bottom: 25px; /* Mais espaço */
}

/* Inputs e selects */
input,
select {
  padding: 10px;
  margin: 5px;
  border-radius: 8px;
  border: 1px solid #333333;
  background: #0d0d0d;
  color: #ffffff;
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #00ff7f;
  box-shadow: 0 0 6px rgba(0, 255, 127, 0.4);
}

input::placeholder {
  color: #666666;
}

/* Controles dos inputs number */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Botões */
button {
  padding: 10px 20px;
  background: #00ff7f;
  border: none;
  color: #0d0d0d;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 255, 127, 0.2); /* Sombra no botão */
  position: relative;
}

button:hover {
  box-shadow: 0 0 8px rgba(0, 255, 127, 0.4), 0 0 16px rgba(0, 255, 127, 0.3); /* Sombra mais intensa */
  transform: translateY(-2px);
  background: #00e673;
}

/* Tabelas */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: #0d0d0d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* Sombra para destacar a tabela */
  transition: box-shadow 0.3s ease;
}

tr:hover {
  background: #262626;
  transition: background-color 0.2s ease;
}

th,
td {
  padding: 12px 10px; /* Mais espaço interno */
  border-bottom: 1px solid #333333;
  text-align: center;
  color: #cccccc;
}

th {
  background: #1a1a1a;
  color: #00ff7f;
  font-weight: 500;
}

/* Mensagens */
.mensagem {
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
}

.sucesso {
  background: #00aa44;
  color: #ffffff;
  border: 1px solid #00ff7f;
}

.erro {
  background: #cc0000;
  color: #ffffff;
  border: 1px solid #ff4444;
}

/* Formulário de adicionar */
.adicionar-form {
  margin: 20px 0;
  padding: 0 10px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.form-row input,
.form-row select {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #111;
  color: #ccc;
  font-size: 14px;
  margin: 0;
}

.form-row input:focus,
.form-row select:focus {
  border-color: #00ff7f;
  box-shadow: 0 0 6px rgba(0, 255, 127, 0.4);
}

.form-row button {
  flex: 0 0 auto;
  min-width: 120px;
}

/* Formulário de relatórios */
.relatorio-form {
  margin: 20px 0;
  padding: 0 10px;
}

.relatorio-form select {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #111;
  color: #ccc;
  font-size: 14px;
  margin: 0;
}

.relatorio-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  flex: 1;
}

.relatorio-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00ff7f;
}

/* Grid para inputs do relatório */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.form-grid button {
  justify-self: end;
}

/* Modal de edição */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
}

.modal-content h3 {
  color: #00ff7f;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.modal-content input,
.modal-content select {
  width: 100%;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.modal-content button {
  margin-right: 10px;
  margin-top: 10px;
}
