:root {
  /* Paleta extraída da logo oficial (arvoredo frigorífico) */
  --vinho: #a9263a;
  --vinho-escuro: #7a1b2a;
  --preto: #201a17;
  --creme: #f6efe4;
  --creme-escuro: #ece1cc;
  --dourado: #e8863a;
  --texto: #2b2320;
  --sucesso: #3a6b35;
  --erro: #a12222;
  --sombra: 0 6px 20px rgba(32, 26, 23, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Georgia', 'Segoe UI', Tahoma, sans-serif;
  background: var(--creme);
  color: var(--texto);
  line-height: 1.55;
}

header.topo {
  background: #fffdfa;
  color: var(--texto);
  padding: 18px 20px;
  box-shadow: var(--sombra);
  border-bottom: 3px solid var(--dourado);
}

.topo-conteudo {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.marca {
  display: flex;
  align-items: center;
  gap: 16px;
}

.marca .logo {
  height: 58px;
  width: auto;
  flex-shrink: 0;
}

.marca h1 {
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: 0.3px;
  color: var(--vinho-escuro);
}

.marca p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #7a6f63;
  font-style: italic;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.aviso {
  background: #fff;
  border-left: 5px solid var(--dourado);
  padding: 18px 20px;
  border-radius: 6px;
  box-shadow: var(--sombra);
  margin-bottom: 28px;
}

.aviso h2 {
  margin-top: 0;
  color: var(--vinho-escuro);
  font-size: 1.15rem;
}

.aviso ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--sombra);
  padding: 28px 26px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 22px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--vinho-escuro);
}

.opcional {
  font-weight: normal;
  color: #8a7f74;
  font-size: 0.82rem;
}

input[type="text"],
input[type="date"],
input[type="file"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d7cbb8;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: #fffdfa;
  color: var(--texto);
}

textarea {
  min-height: 170px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--dourado);
  box-shadow: 0 0 0 3px rgba(185, 138, 61, 0.25);
}

.linha-dupla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .linha-dupla { grid-template-columns: 1fr; }
}

.honeypot { position: absolute; left: -9999px; top: -9999px; }

button.enviar {
  background: var(--vinho);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.3px;
  transition: background 0.15s ease;
}

button.enviar:hover { background: var(--vinho-escuro); }

button.enviar:disabled {
  background: #b9a89d;
  cursor: not-allowed;
  opacity: 0.85;
}

.erro-msg {
  background: #fdeceb;
  border-left: 5px solid var(--erro);
  color: var(--erro);
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.sucesso-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--sombra);
  padding: 40px 30px;
  text-align: center;
}

.sucesso-box .icone {
  font-size: 3rem;
  color: var(--sucesso);
}

.protocolo {
  display: inline-block;
  background: var(--creme-escuro);
  border: 1px dashed var(--dourado);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 16px 0;
  color: var(--vinho-escuro);
}

.voltar {
  display: inline-block;
  margin-top: 18px;
  color: var(--vinho);
  text-decoration: none;
  font-weight: bold;
}
.voltar:hover { text-decoration: underline; }

footer.rodape {
  background: var(--preto);
  color: var(--creme-escuro);
  text-align: center;
  padding: 18px 20px;
  font-size: 0.82rem;
}

/* --- Admin --- */
.admin-body { background: var(--creme); }

.login-box {
  max-width: 380px;
  margin: 80px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--sombra);
  padding: 34px 30px;
}

.login-box h1 {
  margin-top: 0;
  color: var(--vinho-escuro);
  font-size: 1.3rem;
}

table.denuncias {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--sombra);
  border-radius: 8px;
  overflow: hidden;
}

table.denuncias th, table.denuncias td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eee0cc;
  font-size: 0.92rem;
}

table.denuncias th {
  background: var(--vinho-escuro);
  color: #fff;
}

table.denuncias tr:hover { background: #fbf6ec; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
}
.badge.novo { background: var(--erro); }
.badge.em_analise { background: var(--dourado); color: #2b2320; }
.badge.resolvido { background: var(--sucesso); }

.barra-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.barra-admin a {
  color: var(--vinho);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  border: 1px solid var(--vinho);
  padding: 6px 14px;
  border-radius: 20px;
}
.barra-admin a:hover { background: var(--vinho); color: #fff; }

.painel {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.detalhe-campo { margin-bottom: 16px; }
.detalhe-campo strong { display: block; color: var(--vinho-escuro); margin-bottom: 4px; }

.select-status {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d7cbb8;
}
