/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Corpo ===== */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0097a7;
  color: #333;
  line-height: 1.6;
}

/* ===== Cabeçalho ===== */
header {
  color: #fff;
  padding: 0;
  text-align: center;
}
header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
header p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
/* Botões */
.btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: #28a745;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
}
.btn:hover {
  background: #218838;
}

/* Botão sair (painel) */
.painel-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}
.btn-sair {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: #dc3545;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
  font-weight: bold;
}
.btn-sair:hover {
  background: #c82333;
}
.btn-sair i {
  font-size: 1rem;
}
/* ===== Hero Banner ===== */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 100vh; /* deixa crescer se precisar */
  background: 
    linear-gradient(135deg, rgba(0,172,193,0.6), rgba(38,166,154,0.6)),
    url("../imagens/congressoinimigodopovo.png") no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px; /* mais respiro no topo */
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 0; /* overlay atrás */
}

.hero-text {
  position: relative;
  color: #fff;
  z-index: 1; /* texto acima do overlay */
  max-width: 90%;
  margin-bottom: 2rem;
}

.hero-text h1 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  margin-bottom: 1rem;
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

.hero-text p {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Botões dentro do banner */

.hero-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-banner .btn:hover {
  background: #218838;
}

.hero-buttons .btn {
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
}

.hero-banner .btn {
  margin: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: #28a745;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
  display: inline-block;
}


/* ===== Seções ===== */
section {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

/* Cards */
.blocos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.bloco {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.bloco:hover {
  transform: translateY(-5px);
}
.bloco h3 {
  margin-bottom: 0.8rem;
  color: #007BFF;
}

/* Ajuda financeira */
#ajuda {
  background: #ffeeba;
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}
#ajuda h2 { color: #856404; }
#ajuda p, #ajuda ul { font-size: 1.1rem; }
#ajuda strong { font-size: 1.2rem; color: #d39e00; }

/* Pix Box */
.pix-box {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.pix-box h3 { color: #856404; margin-bottom: 1rem; }
.pix-box textarea {
  width: 100%; height: 100px;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.qrcode img {
  max-width: 200px;
  margin-top: 1rem;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Formulário */
#formulario {
  margin-top: 2rem;
  background: #e0f7fa;
  border: 2px solid #00acc1;
  border-radius: 12px;
  padding: 2rem;
}
#formulario h2 { color: #006064; margin-bottom: 1rem; }
#formulario p { margin-bottom: 1.5rem; font-size: 1rem; color: #004d40; }
form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
form label {
  color: #006064;
  font-weight: bold;
  margin-bottom: 0.3rem;
  display: block;
}
form input, form select, form textarea {
  width: 80%;
  padding: 0.8rem;
  max-width: 400px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s;
}
form input:focus {
  border-color: #007BFF;
  outline: none;
}
form button {
  background: #007BFF;
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 30px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: 0.3s;
}
form button:hover { background: #0056b3; }

/* Tabelas */
table {
  border-collapse: collapse;
  width: 90%;
  margin: 1rem auto;
}
th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
th {
  background: #b2ebf2;
  color: #006064;
}
tr:nth-child(even) { background: #b2ebf2; }

/* Rodapé */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
footer a {
  color: #ffc107;
  margin: 0 0.5rem;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

/* Login */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #007BFF, #0056b3);
}
.login-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  width: 350px;
  text-align: center;
}
.login-card h2 { margin-bottom: 1.5rem; color: #007BFF; }
.login-card input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.login-card button {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 30px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: 0.3s;
}
.login-card button:hover {
  background: #218838;
}
.erro {
  color: red;
  margin-bottom: 1rem;
}

/* ===== Dark Mode ===== */
body.dark {
  background: #121212;
  color: #e0e0e0;
}
body.dark header {
  background: linear-gradient(135deg, #1f1f1f, #333);
  color: #fff;
}
body.dark .btn {
  background: #bb86fc;
}
body.dark .btn:hover {
  background: #9a67ea;
}
body.dark .bloco {
  background: #1e1e1e;
  color: #e0e0e0;
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}
body.dark #ajuda {
  background: #333;
  border: 2px solid #bb86fc;
}
body.dark #ajuda h2 { color: #bb86fc; }
body.dark #ajuda strong { color: #ffb74d; }
body.dark form {
  background: #1e1e1e;
  color: #e0e0e0;
}
body.dark form input, 
body.dark form textarea {
  background: #2c2c2c;
  border: 1px solid #555;
  color: #e0e0e0;
}
body.dark form input:focus { border-color: #bb86fc; }
body.dark form button {
  background: #bb86fc;
}
body.dark form button:hover {
  background: #9a67ea;
}
body.dark table { border-color: #444; }
body.dark th {
  background: #333;
  color: #bb86fc;
}
body.dark tr:nth-child(even) { background: #1e1e1e; }
body.dark footer {
  background: #1f1f1f;
  color: #bbb;
}
body.dark footer a { color: #bb86fc; }



/* ===== Animações ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ===== Responsividade ===== */
@media (max-width: 768px) {
  #ajuda { padding: 1rem; }
  .pix-box { padding: 1rem; }
  .pix-box textarea { height: 80px; font-size: 0.85rem; }
  .qrcode img { max-width: 150px; }
  .hero-banner { height: 40vh; }
  .hero-banner .btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 1rem; }
}
@media (max-width: 480px) {
  .pix-box h3 { font-size: 1.1rem; }
  .pix-box textarea { height: 70px; font-size: 0.8rem; }
  .qrcode img { max-width: 120px; }
  .hero-banner { height: 30vh; }
  .hero-banner .btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
  .hero-text { padding: 10px; }
  .hero-text h1 { font-size: 1.4rem; }
  .hero-text p { font-size: 0.9rem; }
}