/* ===============================
   MORADORES - NOVA UX
   =============================== */

#moradores {
  width: 100%;
}

/* Card principal */
.moradores-card {
  background: linear-gradient(180deg, #151515, #0f0f0f);
  border: 2px solid var(--verde);
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Select da unidade */
.moradores-select {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.moradores-select label {
  font-weight: 700;
  color: var(--verde);
  font-size: 0.9rem;
}

.moradores-select select {
  height: 44px;
  border-radius: 14px;
  border: none;
  background: #f1f1f1;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
}

/* Formulário */
.moradores-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* Campos */
.campo {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.campo label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #bdbdbd;
}

.campo input {
  height: 40px;
  border-radius: 12px;
  border: none;
  background: #f1f1f1;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 0.75rem;
  color: #222;
}

/* Hover / foco padrão do app */
.campo input:hover,
.moradores-select select:hover {
  background: #ffffff;
  border: 1px solid var(--verde);
  box-shadow: 0 0 8px rgba(0, 200, 83, 0.25);
}

.campo input:focus,
.moradores-select select:focus {
  outline: none;
  border: 2px solid var(--verde);
}

/* Mobile */
@media (max-width: 600px) {
  .moradores-card {
    padding: 1rem;
  }
}
/* ===============================
   RESUMO - TOTAL DE MORADORES
   =============================== */

.moradores-resumo {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: linear-gradient(135deg, #0f0f0f, #1b1b1b);
  border: 2px solid var(--verde);
  border-radius: 16px;

  padding: 0.9rem 1.2rem;
  margin-bottom: 1.2rem;
}

/* Texto explicativo */
.moradores-resumo-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #bdbdbd;
}

/* Número em destaque */
.moradores-resumo-valor {
  font-size: 2rem;
  font-weight: 900;
  color: var(--verde);
  line-height: 1;
}

/* Mobile */
@media (max-width: 600px) {
  .moradores-resumo {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .moradores-resumo-valor {
    font-size: 1.8rem;
  }
}
