/* TEMA VERDE - Pagina principal (o "dia" dela) */

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
  background:
    radial-gradient(ellipse at 20% 0%, #1d4d33 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, #2a6b45 0%, transparent 50%),
    linear-gradient(170deg, #14382a 0%, #0d2419 60%, #081710 100%);
  background-attachment: fixed;
  color: #eafaf0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* bokeh suave de folhas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(160, 255, 200, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(160, 255, 200, 0.03) 2px, transparent 2px);
  background-size: 240px 240px, 420px 420px;
  mix-blend-mode: screen;
  z-index: 0;
}

.container { max-width: 1100px; margin: 0 auto; padding: 28px 18px; position: relative; z-index: 2; }

/* NAVBAR */
.navbar {
  background: linear-gradient(90deg, rgba(8, 30, 20, 0.72), rgba(12, 40, 26, 0.86));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 0;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 5;
}
.navbar .navbar-brand { color: #b9f5cf; font-weight: 700; letter-spacing: 0.2px; }
.navbar .nav-link { color: rgba(200, 245, 220, 0.9); }
.navbar .nav-link:hover { color: #fff; }
.navbar .dropdown-item { color: #123; }
.navbar .dropdown-item:hover { background: #cdebd8; }

/* BOTAO TROCAR SENHA */
.navbar .btn-sair {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(200, 240, 218, 0.65);
  font-size: 0.78rem;
  padding: 4px 13px;
  margin-left: 8px;
  transition: all 0.2s;
}
.navbar .btn-sair:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* BOTOES */
.btn-custom {
  background-color: #1f5a3a;
  color: #eafaf0;
  border-radius: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}
.btn-custom:hover { background: #2d7a4f; color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #c9f0da;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 16px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* HERO */
.header-hero { text-align: center; padding: 44px 0 10px; }
.header-hero h1 { color: rgba(226, 250, 235, 0.72); margin: 0 0 8px; font-size: 2.3rem; font-weight: 700; }
.header-hero p { color: rgba(180, 226, 200, 0.85); margin: 0; }

.badge-verde {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(120, 230, 170, 0.12);
  border: 1px solid rgba(120, 230, 170, 0.28);
  color: #a9f0c6;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
}

/* CARROSSEL */
.carousel .carousel-item img {
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(3, 20, 12, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.carousel-control-prev-icon, .carousel-control-next-icon { filter: invert(1) brightness(1.6); }

/* GRID / CARDS */
main.container { flex: 1 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 20px; margin-top: 24px; }
.card {
  background: linear-gradient(180deg, rgba(16, 52, 34, 0.65), rgba(8, 30, 19, 0.55));
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 28px rgba(3, 20, 12, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(3, 20, 12, 0.7); }
.card img { width: 100%; height: 165px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.card h3 { color: #b6f2cf; margin: 0 0 8px; font-size: 1.1rem; }
.card p { color: rgba(226, 250, 235, 0.82); margin: 0 0 12px; font-size: 0.95rem; }

/* PASSEIOS (cards de link) */
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  transition: all 0.2s;
}
.link-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(3px); }
.link-card .emoji { font-size: 1.8rem; width: 46px; height: 46px; display: grid; place-items: center; background: rgba(120, 230, 170, 0.1); border-radius: 12px; }
.link-card .txt strong { display: block; color: #cdf7dd; font-size: 1rem; }
.link-card .txt span { color: rgba(180, 226, 200, 0.7); font-size: 0.85rem; }

/* FOOTER */
footer {
  flex: 0 0 auto;
  margin-top: 28px;
  padding: 14px 12px;
  text-align: center;
  color: rgba(200, 240, 218, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.text-muted-soft { color: rgba(226, 250, 235, 0.7); }
.center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.6rem; }

/* INPUTS (tela de login) */
input[type="password"], input[type="text"] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #eafaf0;
  font-family: inherit;
  font-size: 1rem;
}
input:focus { outline: none; border-color: rgba(120, 230, 170, 0.5); }
::placeholder { color: rgba(200, 240, 218, 0.4); }

@media (max-width: 600px) {
  .header-hero h1 { font-size: 1.7rem; }
  .card img { height: 140px; }
}
