/* =====================
   BASE
===================== */
body {
  font-family: "Poppins", sans-serif;
  background: #f4f7f6;
  color: #333;
  margin: 0;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header{
  padding: 0;
  margin: 0;
  width: 100%;
  
}

.main-content {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;   /* CENTRALIZA VERTICAL */
  align-items: center;       /* CENTRALIZA HORIZONTAL */

  width: 100%;
}


/* =====================
   LOGO CENTRAL ECOAR
===================== */
/* =====================
   LOGO ECOAR
===================== */
.logo {
  font-family: 'Times New Roman', Times, serif;

  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 30px;

  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
}

/* ECO */
.logo-eco {
  background: #2a7a5e;
  color: #ffffff;

  padding: 0.15em 0.25em;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12% 0 0 12%;
}

/* AR */
.logo-ar {
  background: #ffffff;
  color: #2a7a5e;
  border-radius: 0 12% 12% 0;
  padding: 0.15em 0.25em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}



.container 
{
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;


  max-width: 1000px;
  width: 95%;

  margin-bottom: 40px;
}



/* =====================
   TÍTULOS
===================== */
h1 {
  display: none !important;
}


h2, h3 {
  color: #25694f;
}

/* =====================
   MENU DE NÍVEIS
===================== */
.menu {
  margin: 0 auto;
  justify-content: center;
  display: flex;
  flex-direction:row;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.menu-btn {
  background: #2a7a5e;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 1.05em;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.menu-btn:hover {
  background: #25694f;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.menu-btn.active {
  background: #1f5e46;
  box-shadow: inset 0 0 0 2px #b5e1d2;
}

/* =====================
   CONTEÚDO
===================== */
.conteudo {
  display: flex;
  justify-content: center;   /* centraliza o conjunto */
  align-items: flex-start;   /* alinha pelo topo */
  gap: 25px;
  width: 100%;
}


/* =====================
   PAINEL DE AÇÕES
===================== */
.painel {
  flex: 1;                  /* ocupa espaço igual */
  min-width: 300px;

  background: #eaf5f1;
  border-radius: 12px;
  padding: 24px;
}


.painel h2 {
  text-align: center;
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
}


.painel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.painel li {
  background: #ffffff;
  border: 1px solid #b5e1d2;
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.15s;
}

.painel li:hover {
  background: #d8f3e1;
  transform: translateX(4px);
}

/* =====================
   FORMULÁRIO
===================== */
.formulario {
  flex: 1;                  /* lado a lado com o painel */
  min-width: 300px;

  background: #e7f7ee;
  border-radius: 12px;
  padding: 20px;
}


#form-cadastro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#form-cadastro label {
  font-weight: 500;
}

#form-cadastro input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #aaa;
  font-size: 0.95em;
}

/* =====================
   BOTÕES
===================== */
#form-cadastro button {
  background: #2a7a5e;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s, transform 0.15s;
}

#form-cadastro button:hover {
  background: #25694f;
  transform: scale(1.02);
}

#btnBuscar {
  background: #3b7ddd;
}

#btnBuscar:hover {
  background: #2f67b5;
}

/* =====================
   LISTA DE RESULTADOS
===================== */
#lista-cadastrados {
  margin-top: 15px;
  font-size: 0.95em;
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  min-height: 60px;
}

/* Cards de resultado */
#lista-cadastrados > div {
  margin-bottom: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

#lista-cadastrados > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =====================
   ANIMAÇÕES
===================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =====================
   BOTÕES (PADRONIZAÇÃO)
===================== */

/* Botão Salvar */
#form-cadastro button[type="submit"] {
  background: #2a7a5e;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

#form-cadastro button[type="submit"]:hover {
  background: #25694f;
  transform: scale(1.05);
}

/* Botão Buscar */
#btnBuscar {
  background: #3b7ddd;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

#btnBuscar:hover {
  background: #2f67b5;
  transform: scale(1.05);
}

/* Botões criados dinamicamente (Modificar / Continuar) */
#lista-cadastrados button {
  margin-top: 8px;
  margin-right: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

/* Modificar */
#lista-cadastrados button:first-of-type {
  background: #eaf5f1;
  border: 1px solid #b5e1d2;
  color: #25694f;
}

#lista-cadastrados button:first-of-type:hover {
  background: #d8f3e1;
}

/* Continuar */
#lista-cadastrados button:last-of-type {
  background: #2a7a5e;
  color: white;
}

#lista-cadastrados button:last-of-type:hover {
  background: #25694f;
  transform: scale(1.05);
}

/* =====================
   FOOTER
===================== */
.footer {
  background: #1f5e46;
  color: white;
  padding: 20px;
  width: 100%;
}


.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-logo {
  width: 10%;
}

.footer-info p {
  margin: 4px 0;
  font-size: 0.9em;
}


@media (max-width: 600px) {
  .logo {
    margin-bottom: 20px;
  }

  .container {
    padding: 25px;
  }

  .menu {
    gap: 10px;
  }

  .menu-btn {
    width: 100%;
    max-width: 260px;
  }
}

@media (max-width: 800px) {
  .conteudo {
    flex-direction: column;
    gap: 20px;
  }

  .painel,
  .formulario {
    width: 100%;
    min-width: unset;
  }

  .formulario {
    order: 2; /* Garante que fique abaixo das ações */
  }

  .painel {
    order: 1;
  }
}
