/* ============================================================
   NIEE Portal – Shared Design Tokens & Utilities
   Nigerian Institution of Environmental Engineers
   ============================================================ */

:root {
  --niee-green:       #1a7a4a;
  --niee-green-dark:  #145f39;
  --niee-green-light: #e8f5ee;
  --niee-gold:        #c9962c;
  --niee-gold-light:  #fdf5e4;
  --niee-text:        #1c2b20;
  --niee-muted:       #6c8272;
  --niee-border:      #d0e4d7;
  --niee-bg:          #f5faf7;
  --niee-white:       #ffffff;
  --shadow-sm:        0 1px 4px rgba(26,122,74,.08);
  --shadow-md:        0 4px 16px rgba(26,122,74,.12);
  --radius:           10px;
}

/* ── Typography ────────────────────────────────────────────── */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--niee-bg);
  color: var(--niee-text);
}

/* ── NIEE Navbar ────────────────────────────────────────────── */
.niee-navbar {
  background: var(--niee-green);
  padding: .75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.niee-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.niee-navbar .navbar-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.niee-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: .9rem;
}
.niee-navbar .nav-link:hover,
.niee-navbar .nav-link.active {
  color: #fff !important;
}
.niee-navbar .btn-logout {
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  background: transparent;
  font-size: .85rem;
  padding: .3rem .85rem;
  border-radius: 6px;
  transition: background .2s;
}
.niee-navbar .btn-logout:hover {
  background: rgba(255,255,255,.15);
}
.niee-brand-badge {
  background: var(--niee-gold);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: .04em;
}

/* ── Crest / Logo placeholder ──────────────────────────────── */
.niee-crest {
  width: 80px;
  height: 80px;
  background: var(--niee-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(26,122,74,.3);
}
.niee-crest svg {
  width: 48px;
  height: 48px;
  fill: #fff;
}

/* ── Auth Cards (login / register) ─────────────────────────── */
.niee-auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(145deg, #e8f5ee 0%, #f5faf7 60%, #fdf5e4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.niee-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--niee-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.niee-auth-header {
  background: var(--niee-green);
  color: #fff;
  padding: 1.6rem 1.5rem 1.4rem;
  text-align: center;
}
.niee-auth-header h4 {
  font-weight: 700;
  margin: 0;
  font-size: 1.1rem;
}
.niee-auth-header p {
  margin: .35rem 0 0;
  font-size: .85rem;
  opacity: .85;
}
.niee-auth-body {
  padding: 1.75rem 1.75rem 1.5rem;
}

/* ── Green Buttons ──────────────────────────────────────────── */
.btn-niee {
  background: var(--niee-green);
  border-color: var(--niee-green);
  color: #fff;
  font-weight: 600;
  border-radius: 7px;
  padding: .5rem 1.2rem;
  transition: background .2s, border-color .2s;
}
.btn-niee:hover, .btn-niee:focus {
  background: var(--niee-green-dark);
  border-color: var(--niee-green-dark);
  color: #fff;
}
.btn-niee-outline {
  border: 1.5px solid var(--niee-green);
  color: var(--niee-green);
  background: transparent;
  font-weight: 600;
  border-radius: 7px;
  padding: .5rem 1.2rem;
  transition: background .2s, color .2s;
}
.btn-niee-outline:hover {
  background: var(--niee-green-light);
  color: var(--niee-green-dark);
}

/* ── Status Badge ───────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  padding: .28rem .75rem;
  border-radius: 20px;
  letter-spacing: .02em;
}
.status-pending   { background: #fff3cd; color: #856404; }
.status-awaiting  { background: #cfe2ff; color: #084298; }
.status-approved  { background: #d1e7dd; color: #0a3622; }
.status-rejected  { background: #f8d7da; color: #58151c; }
.status-registered{ background: #e2d9f3; color: #432874; }

/* ── Status Steps ───────────────────────────────────────────── */
.niee-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 1rem 0 .5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.niee-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 80px;
}
.niee-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: var(--niee-border);
  z-index: 0;
}
.niee-step.done:not(:last-child)::after {
  background: var(--niee-green);
}
.niee-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--niee-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
  position: relative;
  transition: background .3s;
}
.niee-step.done .niee-step-icon   { background: var(--niee-green); }
.niee-step.active .niee-step-icon { background: var(--niee-gold); box-shadow: 0 0 0 3px var(--niee-gold-light); }
.niee-step-label {
  font-size: .7rem;
  color: var(--niee-muted);
  text-align: center;
  margin-top: .3rem;
  max-width: 80px;
  line-height: 1.2;
}
.niee-step.done .niee-step-label,
.niee-step.active .niee-step-label { color: var(--niee-green-dark); font-weight: 600; }

/* ── Dashboard Layout ───────────────────────────────────────── */
.niee-sidebar {
  background: var(--niee-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}
.niee-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--niee-green);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  border: 3px solid var(--niee-border);
}
.niee-sidebar-name {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  color: var(--niee-text);
}
.niee-sidebar-meta {
  font-size: .8rem;
  color: var(--niee-muted);
  text-align: center;
}
.niee-sidebar-divider {
  border-top: 1px solid var(--niee-border);
  margin: .9rem 0;
}
.niee-sidebar-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--niee-muted);
  padding: .3rem 0;
}
.niee-sidebar-item strong { color: var(--niee-text); }

/* ── Info Cards ─────────────────────────────────────────────── */
.niee-card {
  background: var(--niee-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--niee-border);
  margin-bottom: 1.25rem;
}
.niee-card-header {
  background: var(--niee-green-light);
  border-bottom: 1px solid var(--niee-border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: .7rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.niee-card-header h6 {
  font-weight: 700;
  font-size: .88rem;
  color: var(--niee-green-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.niee-card-body {
  padding: 1rem 1.1rem;
}

/* ── Info Grid ──────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .55rem .75rem;
}
.info-item label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--niee-muted);
  display: block;
  margin-bottom: .1rem;
  font-weight: 600;
}
.info-item span {
  font-size: .9rem;
  color: var(--niee-text);
  font-weight: 500;
}

/* ── Payment Cards ──────────────────────────────────────────── */
.payment-action-card {
  border: 1.5px solid var(--niee-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--niee-white);
  text-align: center;
  transition: box-shadow .2s;
}
.payment-action-card:hover { box-shadow: var(--shadow-md); }
.payment-action-card .fee-label {
  font-size: .8rem;
  color: var(--niee-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .25rem;
}
.payment-action-card .fee-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--niee-green);
  margin-bottom: .5rem;
}
.payment-action-card .fee-type {
  font-size: .82rem;
  color: var(--niee-muted);
  margin-bottom: .75rem;
}

/* ── Payment History Table ──────────────────────────────────── */
.niee-table thead th {
  background: var(--niee-green-light);
  color: var(--niee-green-dark);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  border-bottom: 2px solid var(--niee-border);
}
.niee-table td {
  font-size: .87rem;
  vertical-align: middle;
  border-color: var(--niee-border);
}
.niee-table-label {
  display: inline-block;
  font-size: .72rem;
  padding: .18rem .55rem;
  border-radius: 4px;
  font-weight: 600;
}
.label-registration { background: #e2d9f3; color: #432874; }
.label-membership   { background: #d1e7dd; color: #0a3622; }

/* ── Landing page ───────────────────────────────────────────── */
.niee-hero {
  background: linear-gradient(135deg, var(--niee-green) 0%, #0f5130 100%);
  color: #fff;
  padding: 4.5rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.niee-hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.niee-hero::after {
  content: '';
  position: absolute;
  left: -60px; bottom: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(201,150,44,.08);
}
.niee-hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.niee-hero-sub {
  font-size: 1rem;
  opacity: .88;
  max-width: 540px;
}
.niee-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--niee-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  font-size: 1.4rem;
}
.niee-footer {
  background: var(--niee-green-dark);
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  padding: 1.2rem 1.5rem;
  text-align: center;
}
.niee-footer a { color: rgba(255,255,255,.85); }

/* ── Misc helpers ───────────────────────────────────────────── */
.text-niee { color: var(--niee-green) !important; }
.bg-niee   { background: var(--niee-green) !important; }
.border-niee { border-color: var(--niee-border) !important; }
.section-title {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--niee-muted);
  font-weight: 700;
  margin-bottom: .75rem;
}
