:root {
  --cor-primaria: #00194A;
  --cor-secundaria: #022873;
  --cor-terciaria: #011640;
  --cor-destaque: #CEF249;
  --cor-popular: #CEF249;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.25);
  --borda-suave: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: white;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;

  background-image: url('image/13_64860.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  z-index: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px black;
}

#filtros {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  background-color: rgba(2, 40, 115, 0.95);
  padding: 2rem;
  border-radius: var(--borda-suave);
  box-shadow: var(--sombra);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 1000px;
}

.filtro-item {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  min-width: 180px;
}

label {
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 1rem;
}

select {
  padding: 0.6rem;
  border-radius: 12px;
  border: none;
  background-color: var(--cor-primaria);
  color: white;
  font-size: 1rem;
  box-shadow: var(--sombra);
  appearance: none;
}

button {
  background-color: var(--cor-destaque);
  color: var(--cor-primaria);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--borda-suave);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin: 1rem 0.5rem;
  box-shadow: var(--sombra);
}

button:hover:not(:disabled) {
  background-color: #f0ff7d;
}

button:disabled {
  background-color: #b3b352;
  cursor: not-allowed;
}

#resultado {
  background-color: rgba(0, 25, 74, 0.9);
  padding: 2rem;
  border-radius: var(--borda-suave);
  box-shadow: var(--sombra);
  min-height: 100px;
  white-space: pre-wrap;
  text-align: left;
  max-width: 1000px;
  width: 100%;
  margin-bottom: 2rem;
}

/* Rodapé estilizado */
.rodape {
  background-color: var(--cor-secundaria);
  color: #e0e0e0;
  text-align: center;
  padding: 1rem 2rem;
  border-radius: var(--borda-suave);
  max-width: 800px;
  width: 100%;
  font-size: 0.9rem;
  box-shadow: var(--sombra);
  margin-top: auto;
}

/* Responsivo */
@media (max-width: 768px) {
  #filtros {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
    margin: 0.5rem 0;
  }

  h2 {
    font-size: 1.5rem;
  }
}
