:root {
  --gp-green: #2D6A4F;
  --gp-green-light: #40916C;
  --gp-green-pale: #D8F3DC;
  --gp-amber: #E76F51;
  --gp-amber-pale: #FFF3CD;
  --gp-red: #C1121F;
  --gp-red-pale: #FFE8E8;
  --gp-dark: #1B4332;
  --gp-text: #212529;
  --gp-muted: #6c757d;
  --gp-bg: #F8FFFE;
  --gp-card: #FFFFFF;
  --gp-border: #DEE2E6;
  --gp-shadow: 0 2px 12px rgba(45, 106, 79, 0.08);
  --gp-shadow-lg: 0 8px 32px rgba(45, 106, 79, 0.12);
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background-color: var(--gp-bg);
  color: var(--gp-text);
  min-height: 100vh;
  margin: 0;
}

/* NAVBAR */
.gp-navbar {
  background: var(--gp-green) !important;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.3);
  padding: 0.6rem 1rem;
}
.gp-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff !important;
  letter-spacing: -0.3px;
}
.gp-navbar .navbar-brand span { color: var(--gp-green-pale); }
.gp-navbar .nav-link { color: rgba(255,255,255,0.88) !important; font-size: 0.9rem; padding: 0.4rem 0.7rem; border-radius: 6px; transition: all 0.15s; }
.gp-navbar .nav-link:hover, .gp-navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,0.15); }
.gp-navbar .navbar-toggler { border-color: rgba(255,255,255,0.4); }
.gp-navbar .navbar-toggler-icon { filter: invert(1); }
.gp-logo { object-fit: contain; display: inline-block; background: white; border-radius: 8px; }
.gp-logo-nav { width: 38px; height: 38px; border-radius: 7px; padding: 2px; }
.gp-logo-footer { width: 28px; height: 28px; padding: 1px; border-radius: 5px; }
.gp-logo-home { width: min(220px, 52vw); height: auto; padding: 5px; }
.gp-logo-home-card { width: 132px; height: 132px; padding: 4px; border-radius: 12px; }
.gp-logo-login { width: 124px; height: 124px; padding: 4px; border-radius: 14px; margin-bottom: 0.35rem; }
.gp-logo-verify { width: 108px; height: 108px; padding: 4px; border-radius: 12px; margin-bottom: 0.5rem; }
.gp-logo-card { width: 70px; height: 70px; padding: 2px; border-radius: 7px; }
.gp-logo-sidebar { width: 88px; height: 88px; padding: 3px; }
.gp-logo-install { width: 25px; height: 25px; padding: 1px; border-radius: 4px; }

/* SIDEBAR */
.gp-sidebar {
  background: var(--gp-card);
  border-right: 1px solid var(--gp-border);
  min-height: calc(100vh - 60px);
  padding: 1.5rem 0;
}
.gp-sidebar .sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  color: var(--gp-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.gp-sidebar .sidebar-link:hover { color: var(--gp-green); background: var(--gp-green-pale); }
.gp-sidebar .sidebar-link.active { color: var(--gp-green); background: var(--gp-green-pale); border-left-color: var(--gp-green); font-weight: 600; }
.gp-sidebar .sidebar-section { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gp-muted); padding: 1rem 1.2rem 0.3rem; }

/* LAYOUT */
.main-content { padding: 1.5rem; }
@media (max-width: 768px) { .main-content { padding: 1rem; } }

/* CARDS */
.gp-card {
  background: var(--gp-card);
  border: 1px solid var(--gp-border);
  border-radius: var(--radius);
  box-shadow: var(--gp-shadow);
  overflow: hidden;
  margin-bottom: 1rem;
}
.gp-card-header {
  background: linear-gradient(135deg, var(--gp-green), var(--gp-green-light));
  color: white;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gp-card-body { padding: 1.25rem; }

/* STAT CARDS */
.stat-card {
  background: var(--gp-card);
  border: 1px solid var(--gp-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--gp-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--gp-shadow-lg); }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--gp-muted); font-weight: 500; margin-top: 0.3rem; }
.stat-card.green { border-left: 4px solid var(--gp-green); }
.stat-card.amber { border-left: 4px solid var(--gp-amber); }
.stat-card.red { border-left: 4px solid var(--gp-red); }
.stat-card.blue { border-left: 4px solid #0077B6; }

/* BUTTONS */
.btn-gp {
  background: var(--gp-green);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.btn-gp:hover { background: var(--gp-dark); color: white; transform: translateY(-1px); }
.btn-gp:active { transform: translateY(0); }
.btn-gp-outline {
  background: transparent;
  color: var(--gp-green);
  border: 2px solid var(--gp-green);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.btn-gp-outline:hover { background: var(--gp-green); color: white; }

/* BADGES */
.badge-green { background: var(--gp-green-pale); color: var(--gp-green); font-weight: 600; font-size: 0.75rem; padding: 0.3em 0.7em; border-radius: 20px; }
.badge-amber { background: var(--gp-amber-pale); color: #B5541F; font-weight: 600; font-size: 0.75rem; padding: 0.3em 0.7em; border-radius: 20px; }
.badge-red { background: var(--gp-red-pale); color: var(--gp-red); font-weight: 600; font-size: 0.75rem; padding: 0.3em 0.7em; border-radius: 20px; }
.badge-gray { background: #f1f3f5; color: #555; font-weight: 600; font-size: 0.75rem; padding: 0.3em 0.7em; border-radius: 20px; }
.badge-verified { background: var(--gp-green); color: white; font-size: 0.7rem; padding: 0.2em 0.6em; border-radius: 20px; font-weight: 700; }

/* STATUS INDICATORS */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.green { background: var(--gp-green); }
.status-dot.amber { background: var(--gp-amber); }
.status-dot.red { background: var(--gp-red); }
.status-dot.gray { background: #adb5bd; }

/* CERTIFICATE CARD */
.cert-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--gp-shadow-lg);
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.cert-card.green { background: linear-gradient(135deg, #F0FFF4, #DCFCE7); border: 1px solid #86EFAC; }
.cert-card.green::before { background: var(--gp-green); }
.cert-card.amber { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); border: 1px solid #FCD34D; }
.cert-card.amber::before { background: var(--gp-amber); }
.cert-card.red { background: linear-gradient(135deg, #FFF5F5, #FEE2E2); border: 1px solid #FCA5A5; }
.cert-card.red::before { background: var(--gp-red); }
.cert-id { font-family: 'Courier New', monospace; font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; }

/* FORMS */
.gp-form-group { margin-bottom: 1rem; }
.gp-form-label { font-size: 0.85rem; font-weight: 600; color: var(--gp-text); margin-bottom: 0.35rem; display: block; }
.gp-form-control {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--gp-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
  color: var(--gp-text);
}
.gp-form-control:focus {
  outline: none;
  border-color: var(--gp-green);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

/* TABLE */
.gp-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.gp-table th { background: #F8F9FA; padding: 0.75rem 1rem; text-align: left; font-weight: 600; color: var(--gp-muted); border-bottom: 2px solid var(--gp-border); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.4px; }
.gp-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gp-border); vertical-align: middle; }
.gp-table tbody tr:hover { background: var(--gp-green-pale); }
.gp-table .table-responsive { overflow-x: auto; }

/* ALERTS */
.gp-alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; border: 1px solid; margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.gp-alert.success { background: var(--gp-green-pale); border-color: #86EFAC; color: var(--gp-dark); }
.gp-alert.danger { background: var(--gp-red-pale); border-color: #FCA5A5; color: var(--gp-red); }
.gp-alert.warning { background: var(--gp-amber-pale); border-color: #FCD34D; color: #92400E; }
.gp-alert.info { background: #EFF6FF; border-color: #93C5FD; color: #1E40AF; }

/* PAGE HEADER */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--gp-dark); margin: 0 0 0.25rem; }
.page-header p { color: var(--gp-muted); font-size: 0.875rem; margin: 0; }

/* HERO / LANDING */
.hero-section {
  background: linear-gradient(135deg, var(--gp-dark) 0%, var(--gp-green) 50%, var(--gp-green-light) 100%);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.25);
}
.hero-section h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero-section .lead { font-size: 1.05rem; opacity: 0.88; max-width: 520px; line-height: 1.6; }
.hero-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions .btn-hero {
  background: white;
  color: var(--gp-green);
  border: none;
  padding: 0.75rem 1.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s;
}
.hero-actions .btn-hero:hover { transform: translateY(-2px); }
.hero-actions .btn-hero-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
}
.hero-actions .btn-hero-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

.feature-card {
  background: white;
  border: 1px solid var(--gp-border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: var(--gp-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--gp-shadow-lg); }
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gp-green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

/* VERIFICATION PORTAL */
.verify-hero {
  background: linear-gradient(135deg, #1B4332, #2D6A4F);
  color: white;
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.verify-input-wrap {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.verify-input-wrap input {
  flex: 1;
  border: none;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.verify-input-wrap button {
  background: var(--gp-green);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.verify-input-wrap button:hover { background: var(--gp-dark); }

/* NOTIFICATIONS */
.notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gp-border);
  font-size: 0.875rem;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--gp-green-pale); }
.notif-item .notif-title { font-weight: 600; color: var(--gp-dark); }
.notif-item .notif-time { font-size: 0.75rem; color: var(--gp-muted); }

/* PROGRESS / SCORE BARS */
.score-bar-wrap { margin-bottom: 0.75rem; }
.score-bar-label { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; }
.score-bar-bg { background: #E9ECEF; border-radius: 20px; height: 8px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 20px; transition: width 0.6s ease; }
.score-bar-fill.green { background: var(--gp-green); }
.score-bar-fill.amber { background: var(--gp-amber); }
.score-bar-fill.red { background: var(--gp-red); }

/* STEP WIZARD */
.step-indicator { display: flex; gap: 0; margin-bottom: 2rem; }
.step-item { flex: 1; text-align: center; position: relative; }
.step-item::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--gp-border); z-index: 0; }
.step-item:first-child::before { display: none; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--gp-border); color: var(--gp-muted); font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.3rem; position: relative; z-index: 1; }
.step-item.active .step-num { background: var(--gp-green); color: white; }
.step-item.done .step-num { background: var(--gp-green-light); color: white; }
.step-label { font-size: 0.72rem; color: var(--gp-muted); font-weight: 500; }
.step-item.active .step-label { color: var(--gp-green); font-weight: 700; }

/* ROLE SELECT CARDS */
.role-card {
  border: 2px solid var(--gp-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.role-card:hover { border-color: var(--gp-green); background: var(--gp-green-pale); }
.role-card.selected { border-color: var(--gp-green); background: var(--gp-green-pale); }
.role-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* UTILITIES */
.text-gp { color: var(--gp-green) !important; }
.text-gp-muted { color: var(--gp-muted) !important; }
.bg-gp { background: var(--gp-green) !important; color: white; }
.bg-gp-pale { background: var(--gp-green-pale) !important; }
.border-gp { border-color: var(--gp-green) !important; }
.fw-700 { font-weight: 700; }
.fs-sm { font-size: 0.85rem; }
.fs-xs { font-size: 0.75rem; }
.rounded-gp { border-radius: var(--radius); }
.shadow-gp { box-shadow: var(--gp-shadow); }

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
  .gp-sidebar { display: none; }
  .stat-card .stat-value { font-size: 1.5rem; }
  .gp-table td, .gp-table th { padding: 0.5rem 0.6rem; }
  .hero-section { padding: 3rem 0 2.5rem; }
}

/* FOOTER */
.gp-footer {
  background: var(--gp-dark);
  color: rgba(255,255,255,0.7);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  margin-top: auto;
}
.gp-footer a { color: var(--gp-green-pale); text-decoration: none; }
.gp-footer a:hover { color: white; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f3f5; }
::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gp-green); }
