:root {
  --forest-dark:    #1a3d1f;
  --evergreen:    #2d6a35;
  --spring-leaf:    #4a9955;
  --meadow:   #72c47d;
  --mint-cream:    #e4f6e7;
  --frosted-leaf:      #eef8ef;
  --snow-white: #ffffff;
  --pine-bark:    #0f2412;
  --sage-muted:   #4a7050;
  --bamboo-border:  #b8e0bc;
}
/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

::selection {
  background-color: #2D6A35; /* your green */
  color: white; /* text color while highlighted */
}


body {
  background: linear-gradient(160deg, #f4fbf7 0%, rgb(238, 246, 246) 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  padding-top: 72px;
  color: var(--pine-bark);
}

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  background: linear-gradient(90deg, var(--forest-dark) 0%, var(--evergreen) 100%);
  padding: 0.6rem 1.5rem;
  box-shadow: 0 2px 16px rgba(34, 87, 122, 0.25);
  min-height: 70px;
}

.navbar-brand {
  color: white !important;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  padding: 0.45rem 1rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: white !important;
  background: rgba(255,255,255,0.15);
  transform: none;
}

.navbar-toggler { border: none !important; outline: none !important; }
.navbar-toggler:focus { box-shadow: none !important; }

/* ── Cards ────────────────────────────────────────────── */
.card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(34, 87, 122, 0.08);
  background: var(--snow-white);
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--evergreen) 100%);
  color: white;
  padding: 14px 20px;
  border-bottom: none;
}
.card-header h5 { margin: 0; font-weight: 600; font-size: 1rem; }

.card-body { padding: 1.75rem; }

/* ── Alerts ───────────────────────────────────────────── */
.alert {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 92%;
  z-index: 1050;
  border-radius: 10px;
  border: none;
  padding: 1rem 2.5rem 1rem 1.25rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  animation: fadein 0.3s forwards, fadeout 0.3s 4.7s forwards;
}
.alert .close {
  background: none; border: none;
  font-size: 1.2rem; font-weight: bold;
  color: inherit; cursor: pointer; margin-left: 1rem;
  outline: none !important;
  box-shadow: none !important;
}
.alert .close:focus { outline: none !important; box-shadow: none !important; }
.alert .close:focus { outline: none !important; box-shadow: none !important; }
.alert-success {
  background: #d0f5e0; color: #186036;
  border-left: 4px solid var(--spring-leaf);
}
.alert-danger {
  background: #fde8e8; color: #7a1c1c;
  border-left: 4px solid #e05c5c;
}
.alert-warning {
  background: #fef8e1; color: #7a5c10;
  border-left: 4px solid #f0b429;
}
.alert-info {
  background: #ddf2f7; color: #0c4a5a;
  border-left: 4px solid var(--evergreen);
}

@keyframes fadein  { from { opacity:0; transform:translate(-50%,-10px); } to { opacity:1; transform:translate(-50%,0); } }
@keyframes fadeout { from { opacity:1; transform:translate(-50%,0); }     to { opacity:0; transform:translate(-50%,-10px); } }

/* ── Form controls ────────────────────────────────────── */
.form-control {
  border: 2px solid var(--bamboo-border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--pine-bark);
}
.form-control:focus {
  border-color: var(--evergreen);
  box-shadow: 0 0 0 0.2rem rgba(47, 144, 63, 0.2);
  outline: none;
}
label { color: var(--sage-muted); font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--evergreen) 100%);
  color: white;
  padding: 0.65rem 1.5rem;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1e5137 0%, var(--forest-dark) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 122, 52, 0.35);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, var(--evergreen) 0%, var(--spring-leaf) 100%);
  color: white;
}
.btn-success:hover {
  background: linear-gradient(135deg, #2a8456 0%, var(--spring-leaf) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(87, 204, 153, 0.4);
  color: white;
}

.btn-outline-success {
  color: var(--evergreen); border: 2px solid var(--evergreen);
  background: transparent;
}
.btn-outline-success:hover {
  background: var(--evergreen); color: white;
  border-color: var(--evergreen);
}

.btn-outline-secondary {
  color: var(--sage-muted); border: 2px solid #a4d0a8;
}
.btn-outline-secondary:hover {
  background: var(--frosted-leaf); color: var(--forest-dark);
  border-color: var(--evergreen);
}

.btn-danger {
  background: linear-gradient(135deg, #c02232 0%, #e12134 100%);
  color: white;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #c70c1f 0%, #c0392b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35);
  color: white;
}

/* ── Auth pages ───────────────────────────────────────── */
.auth-wrapper {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card { width: 100%; max-width: 560px; }

.auth-card .card-body { padding: 2.5rem 3rem; }

/* ── Links ────────────────────────────────────────────── */
a { color: var(--evergreen); transition: color 0.2s; }
a:hover { color: var(--forest-dark); text-decoration: none; }

/* ── Badges ───────────────────────────────────────────── */
.badge { font-size: 0.8rem; padding: 5px 10px; border-radius: 20px; }
.badge-success { background: var(--mint-cream); color: #1a5c35; }
.badge-warning { background: #fef3cd; color: #7a5c10; }
.badge-danger  { background: #fde8e8; color: #7a1c1c; }

/* ── Tables ───────────────────────────────────────────── */
.table th {
  border-top: none;
  color: var(--sage-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding-bottom: 10px;
}
.table td { vertical-align: middle; padding: 12px 8px; }
.table tbody tr { border-bottom: 1px solid var(--mint-cream); transition: background 0.15s; }
.table tbody tr:hover { background: #f5fdf8; }
.table tbody tr:last-child { border-bottom: none; }

code {
  background: var(--mint-cream);
  color: var(--forest-dark);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* ── Profile / dashboard headings ─────────────────────── */
.display-6 {
  padding-top: 50px;
  color: var(--forest-dark);
  font-weight: 700;
}
.profile-welcome {
  background: linear-gradient(135deg, var(--evergreen) 0%, var(--spring-leaf) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Checkbox / small text ────────────────────────────── */
.checkbox {
  font-size: 0.9rem;
  color: var(--sage-muted);
  display: flex;
  align-items: center; 
  gap: 8px; 
}
.check1 {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2f7338;
}
.small    { 
  color: var(--sage-muted); 
}

/* ── Divider ──────────────────────────────────────────── */
hr { border-top: 1px solid var(--mint-cream); opacity: 1; }

/* ── Index page ───────────────────────────────────────── */
.index-hero {
  padding: 70px 20px 50px;
  text-align: center;
}
.index-hero .hero-badge {
  display: inline-block;
  background: var(--mint-cream);
  color: var(--forest-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.index-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--forest-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.index-hero h1 span {
  background: linear-gradient(135deg, var(--evergreen) 0%, var(--spring-leaf) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.index-hero .lead {
  font-size: 1.15rem;
  color: var(--sage-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn { padding: 0.75rem 2rem; font-size: 1rem; }

/* Stats strip */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 46px 20px;
  background: white;
  border-top: 1px solid var(--mint-cream);
  border-bottom: 1px solid var(--mint-cream);
}
.stat-item { text-align: center; }
.stat-num  { font-size: 2rem; font-weight: 800; color: var(--evergreen); line-height: 1; }
.stat-lbl  { font-size: 0.8rem; color: var(--sage-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* Features */
.features-section { padding: 60px 20px; }
.features-section h2 {
  text-align: center; font-size: 1.9rem;
  font-weight: 700; color: var(--forest-dark);
  margin-bottom: 10px;
}
.features-section .section-sub {
  text-align: center; color: var(--sage-muted);
  margin-bottom: 44px; font-size: 1rem;
}
.feature-card {
  background: white;
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  box-shadow: 0 2px 16px rgba(34,87,122,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid var(--spring-leaf);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(34,87,122,0.13);
}
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; color: var(--evergreen); }
.feature-card h5 { font-weight: 700; color: var(--forest-dark); margin-bottom: 8px; }
.feature-card p  { color: var(--sage-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* How it works */
.how-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--evergreen) 100%);
  color: white;
}
.how-section h2 { text-align: center; font-weight: 700; margin-bottom: 10px; }
.how-section .section-sub { text-align: center; opacity: 0.75; margin-bottom: 44px; }
.step-card {
  text-align: center;
  padding: 0 20px;
}
.step-num {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  margin: 0 auto 16px;
}
.step-card h5 { font-weight: 700; margin-bottom: 8px; }
.step-card p  { opacity: 0.8; font-size: 0.9rem; line-height: 1.6; }

/* Readings preview */
.readings-section { padding: 60px 20px; }
.readings-section h2 {
  text-align: center; font-size: 1.9rem;
  font-weight: 700; color: var(--forest-dark);
  margin-bottom: 10px;
}
.readings-section .section-sub {
  text-align: center; color: var(--sage-muted); margin-bottom: 44px;
}
.reading-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 16px rgba(34,87,122,0.07);
}
.reading-card .rc-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.reading-card .rc-title { font-weight: 700; color: var(--forest-dark); font-size: 0.95rem; }
.reading-card .rc-badge {
  background: var(--mint-cream); color: var(--forest-dark);
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.rc-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--mint-cream);
  font-size: 0.88rem;
}
.rc-row:last-child { border-bottom: none; }
.rc-label { color: var(--sage-muted); }
.rc-val   { font-weight: 700; color: var(--evergreen); }

/* CTA banner */
.cta-section {
  padding: 70px 20px;
  text-align: center;
  background: white;
  border-top: 1px solid var(--mint-cream);
}
.cta-section h2 { font-size: 2rem; font-weight: 800; color: var(--forest-dark); margin-bottom: 12px; }
.cta-section p  { color: var(--sage-muted); margin-bottom: 32px; font-size: 1rem; }

/* Responsive */
@media (max-width: 991px) {
  .navbar-nav .nav-link { margin: 2px 0; }
  .index-hero h1 { font-size: 2.2rem; }
  .stats-strip   { gap: 24px; }
}
@media (max-width: 575px) {
  .index-hero h1 { font-size: 1.8rem; }
}