.denuncia-page {
  min-height: 100vh;
  background: #f7f7f8;
  font-family: "DM Sans", sans-serif;
}

.page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.denuncia-main {
  padding: 1.5rem 1rem 3rem; /* Espaçamento confortável em telas pequenas */
  box-sizing: border-box;
}

.topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #111111;
  color: #ffffff;
  position: relative;
  box-sizing: border-box;
}

.topbar-brand {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.topbar-brand span {
  color: #e8571a;
}

.topbar-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #111111;
  padding: 1rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 100;
  box-sizing: border-box;
}
.topbar-dropdown.active {
  display: flex;
}

.denuncia-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.denuncia-header h1 {
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.btn-voltar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  color: #111111;
  font-size: 1.1rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-voltar:hover {
  background: #f5f5f5;
  border-color: #c0c0c0;
}

.denuncia-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 1.25rem; /* Ajustado compacto para celular */
  border: 1.5px solid #ebebeb;
}

.denuncia-card label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 0.4rem;
}

.denuncia-card .input,
.denuncia-card textarea,
.denuncia-card select {
  width: 100%;
  background: #fafafa;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  color: #111111;
  outline: none;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.denuncia-card .input::placeholder,
.denuncia-card textarea::placeholder {
  color: #b0b0b0;
}

.denuncia-card .input:hover,
.denuncia-card textarea:hover,
.denuncia-card select:hover {
  border-color: #c0c0c0;
  background: #ffffff;
}

.denuncia-card .input:focus,
.denuncia-card textarea:focus,
.denuncia-card select:focus {
  border-color: #e8571a;
  box-shadow: 0 0 0 3px rgba(232, 87, 26, 0.12);
  background: #ffffff;
}

/* Customização das setas de Select */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  cursor: pointer;
  padding-right: 2.5rem;
}

.select-wrapper::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-60%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b6b6b;
}

/* Layout mobile padrão empilha tudo em uma coluna */
.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.denuncia-card textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.denuncia-msg {
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all 0.2s;
  margin-bottom: 0;
}

.denuncia-msg:not(:empty) {
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
}

.denuncia-msg.success:not(:empty) {
  background: #f0faf4;
  color: #1e7a44;
  border: 1px solid #a8ddb9;
}

.denuncia-msg.error:not(:empty) {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.btn-logout {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  width: 100%; /* Botões mobile ocupam largura total */
}

.btn-secondary {
  background: #222222;
  color: #ffffff;
  border: 1px solid #444444;
}

.btn-registrar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #e8571a;
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
}

.btn-registrar:hover { background: #cf4c17; }
.btn-registrar:active { transform: scale(0.98); }
.btn-registrar:disabled {
  background: #f0b49a;
  cursor: not-allowed;
  transform: none;
}

.btn-cancelar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  color: #6b6b6b;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-cancelar:hover {
  border-color: #c0c0c0;
  color: #111111;
  background: #f9f9f9;
}

@media (min-width: 768px) {
  .denuncia-main {
    padding: 2.5rem 2rem 4rem;
  }

  .denuncia-card {
    padding: 2rem 1.75rem;
    max-width: 720px;
  }

  .input-row {
    grid-template-columns: 1fr 1fr; /* Divide os campos de seleção em 2 colunas */
    gap: 0 1rem;
  }


  .btn-logout {
    width: auto;
  }
}

/* Telas Grandes (Monitores Desktop padrão) */
@media (min-width: 1280px) {
  .denuncia-main {
    padding: 2.5rem 5rem 4rem;
  }

  .denuncia-card {
    max-width: 860px; 
  }
}