/* ─────────────────────────────────────────────
   GoodEarth Channel Partner Portal
   Brand Identity: GoodEarth Brand Guide 2023
   Primary:  #0054a6 (brand blue)
   Accent:   #a6be4b (brand lime green)
   Fonts:    Averia Serif Libre (headings) | Work Sans (body)
───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Averia+Serif+Libre:ital,wght@0,300;0,400;0,700;1,400&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* GoodEarth Brand Colors */
  --ge-blue:        #0054a6;
  --ge-blue-dark:   #003d7a;
  --ge-blue-light:  #1a6fc4;
  --ge-blue-pale:   #dceaf7;
  --ge-lime:        #a6be4b;
  --ge-lime-dark:   #8aa33a;
  --ge-lime-pale:   #eef4d4;

  /* Secondary brand palette */
  --ge-earth:       #ba965e;
  --ge-amber:       #d69100;
  --ge-terracotta:  #874545;
  --ge-olive:       #666b4a;
  --ge-slate:       #859ea6;
  --ge-sand:        #d6d1c4;
  --ge-sand-light:  #f5f3ef;

  /* UI Neutrals */
  --ge-dark:        #1a1a2e;
  --ge-text:        #2c2c3a;
  --ge-text-muted:  #6b7280;
  --ge-bg:          #f7f6f3;   /* warm off-white per brand */
  --ge-white:       #ffffff;
  --ge-border:      #e8e4dc;

  /* Sidebar */
  --sidebar-width:  265px;
  --header-height:  64px;

  /* Shadows & Shape */
  --shadow-sm:  0 1px 4px rgba(0,84,166,0.07);
  --shadow-md:  0 4px 16px rgba(0,84,166,0.10);
  --shadow-lg:  0 8px 32px rgba(0,84,166,0.13);
  --radius:     10px;
  --radius-sm:  6px;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Work Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--ge-bg);
  color: var(--ge-text);
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Averia Serif Libre', Georgia, serif;
}

a { color: var(--ge-blue); text-decoration: none; }
a:hover { color: var(--ge-blue-light); text-decoration: underline; }

/* ─── Auth Pages ─────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #f7f6f3 0%, #eef4d4 40%, #dceaf7 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(166,190,75,0.15), transparent 70%);
  border-radius: 50%;
}

.auth-wrapper::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0,84,166,0.10), transparent 70%);
  border-radius: 50%;
}

.auth-card {
  background: var(--ge-white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,84,166,0.12), 0 1px 4px rgba(0,0,0,0.06);
  padding: 48px 48px 40px;
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo img, .auth-logo svg {
  height: 80px;
  width: auto;
  margin-bottom: 8px;
}

.auth-logo p {
  color: var(--ge-text-muted);
  font-size: 13px;
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  letter-spacing: 0.3px;
}

.auth-card .form-control,
.auth-card .form-select {
  border: 1.5px solid var(--ge-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Work Sans', sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fafaf8;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: var(--ge-blue);
  box-shadow: 0 0 0 3px rgba(0,84,166,0.12);
  background: #fff;
}

/* ─── Primary Button ─────────────────────── */
.btn-ge-primary {
  background: var(--ge-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
}

.btn-ge-primary:hover {
  background: var(--ge-blue-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,84,166,0.25);
  text-decoration: none;
}

.btn-ge-primary:active { transform: translateY(0); box-shadow: none; }

.btn-ge-outline {
  background: transparent;
  color: var(--ge-blue);
  border: 1.5px solid var(--ge-blue);
  border-radius: var(--radius-sm);
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Work Sans', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ge-outline:hover {
  background: var(--ge-blue);
  color: #fff;
  text-decoration: none;
}

/* ─── Sidebar Layout ─────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid var(--ge-border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--transition);
  box-shadow: 2px 0 12px rgba(0,84,166,0.06);
}

.sidebar-brand {
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--ge-border);
  background: var(--ge-blue);
}

.sidebar-brand img,
.sidebar-brand svg {
  height: 44px;
  width: auto;
  max-width: 200px;
  filter: brightness(0) invert(1);  /* make logo white on blue bg */
}

.sidebar-brand .cp-badge {
  display: inline-block;
  background: var(--ge-lime);
  color: #2c2c3a;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-top: 8px;
  letter-spacing: 0.5px;
  font-family: 'Work Sans', sans-serif;
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.sidebar-section-title {
  color: var(--ge-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 20px 4px;
  font-family: 'Work Sans', sans-serif;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ge-text-muted);
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: 'Work Sans', sans-serif;
  border-radius: 0;
  transition: all var(--transition);
  text-decoration: none;
  border-left: 3px solid transparent;
  margin: 1px 0;
}

.sidebar-nav a:hover {
  background: var(--ge-blue-pale);
  color: var(--ge-blue);
  text-decoration: none;
}

.sidebar-nav a.active {
  background: var(--ge-blue-pale);
  color: var(--ge-blue);
  border-left-color: var(--ge-blue);
  font-weight: 600;
}

.sidebar-nav a i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-nav .badge-count {
  margin-left: auto;
  background: var(--ge-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  font-family: 'Work Sans', sans-serif;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--ge-border);
  background: var(--ge-sand-light);
}

.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-footer .user-avatar {
  width: 36px;
  height: 36px;
  background: var(--ge-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
  font-family: 'Work Sans', sans-serif;
}

.sidebar-footer .user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ge-text);
  line-height: 1.2;
  font-family: 'Work Sans', sans-serif;
}

.sidebar-footer .user-role {
  font-size: 11px;
  color: var(--ge-text-muted);
}

/* ─── Main Content ───────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Top Header ─────────────────────────── */
.top-header {
  height: var(--header-height);
  background: var(--ge-white);
  border-bottom: 1px solid var(--ge-border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.top-header .page-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ge-text);
  margin: 0;
  flex: 1;
  font-family: 'Averia Serif Libre', Georgia, serif;
}

.top-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ge-text-muted);
  font-size: 18px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background var(--transition);
}

.notif-btn:hover { background: var(--ge-blue-pale); color: var(--ge-blue); }

.notif-dot {
  position: absolute;
  top: 3px; right: 5px;
  width: 7px; height: 7px;
  background: #dc3545;
  border-radius: 50%;
  border: 2px solid #fff;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ge-text);
  padding: 4px 8px;
}

/* ─── Page Content ───────────────────────── */
.page-content {
  padding: 28px;
  flex: 1;
}

/* ─── Cards ──────────────────────────────── */
.ge-card {
  background: var(--ge-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ge-border);
}

.ge-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--ge-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ge-card-header h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ge-text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Averia Serif Libre', Georgia, serif;
}

.ge-card-body { padding: 22px; }

/* ─── Stat Cards ─────────────────────────── */
.stat-card {
  background: var(--ge-white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ge-border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.blue   { background: var(--ge-blue-pale); color: var(--ge-blue); }
.stat-icon.green  { background: var(--ge-lime-pale); color: var(--ge-lime-dark); }
.stat-icon.gold   { background: #fef3c7; color: #b45309; }
.stat-icon.purple { background: #ede9fe; color: #6d28d9; }
.stat-icon.red    { background: #fee2e2; color: #dc2626; }
.stat-icon.earth  { background: #f7ede0; color: #7a5c3a; }

.stat-info { flex: 1; min-width: 0; }

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ge-text);
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'Work Sans', sans-serif;
}

.stat-label {
  font-size: 12px;
  color: var(--ge-text-muted);
  font-weight: 500;
  font-family: 'Work Sans', sans-serif;
}

/* ─── Lead Stage Badges ──────────────────── */
.stage-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  font-family: 'Work Sans', sans-serif;
}

.badge-new              { background: #e8e4dc; color: #4a4a4a; }
.badge-contacted        { background: var(--ge-blue-pale); color: var(--ge-blue-dark); }
.badge-sv-scheduled     { background: #e0f2fe; color: #0369a1; }
.badge-sv-confirmed     { background: var(--ge-lime-pale); color: var(--ge-lime-dark); }
.badge-sv-done          { background: #fef3c7; color: #92400e; }
.badge-negotiation      { background: #fde68a; color: #78350f; }
.badge-booking          { background: #d1fae5; color: #065f46; }
.badge-agreement        { background: #a7f3d0; color: #064e3b; }
.badge-won              { background: var(--ge-blue); color: #fff; }
.badge-lost             { background: #fee2e2; color: #991b1b; }
.badge-dropped          { background: #f3f4f6; color: #374151; }

/* ─── Blueprint Progress ─────────────────── */
.blueprint-wrap {
  padding: 20px 0 8px;
  overflow-x: auto;
}

.blueprint-stages {
  display: flex;
  align-items: flex-start;
  min-width: max-content;
  position: relative;
  padding: 0 12px;
}

.blueprint-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 90px;
}

.blueprint-stage::before {
  content: '';
  position: absolute;
  top: 13px; left: -50%;
  width: 100%; height: 3px;
  background: var(--ge-border);
  z-index: 0;
}

.blueprint-stage:first-child::before { display: none; }
.blueprint-stage.done::before   { background: var(--ge-blue); }
.blueprint-stage.active::before { background: var(--ge-blue); }

.bp-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ge-border);
  border: 3px solid var(--ge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  color: #94a3b8;
  font-size: 12px;
  transition: all var(--transition);
}

.blueprint-stage.done .bp-dot {
  background: var(--ge-blue);
  border-color: var(--ge-blue);
  color: #fff;
}

.blueprint-stage.active .bp-dot {
  background: #fff;
  border-color: var(--ge-blue);
  color: var(--ge-blue);
  box-shadow: 0 0 0 4px rgba(0,84,166,0.15);
}

.bp-label {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 80px;
  font-family: 'Work Sans', sans-serif;
}

.blueprint-stage.done .bp-label   { color: var(--ge-blue); }
.blueprint-stage.active .bp-label { color: var(--ge-text); font-weight: 600; }

/* ─── Leads Table ────────────────────────── */
.leads-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ge-text-muted);
  border-bottom: 2px solid var(--ge-border) !important;
  background: var(--ge-sand-light);
  padding: 12px 14px;
  white-space: nowrap;
  font-family: 'Work Sans', sans-serif;
}

.leads-table td {
  padding: 13px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #f0ece4;
  font-size: 13.5px;
  font-family: 'Work Sans', sans-serif;
}

.leads-table tbody tr:hover { background: #fafaf7; }

.lead-name-cell .lead-name {
  font-weight: 600;
  color: var(--ge-text);
  font-size: 14px;
  font-family: 'Work Sans', sans-serif;
}

.lead-name-cell .lead-number {
  font-size: 11px;
  color: var(--ge-text-muted);
  margin-top: 1px;
}

/* ─── Lead Detail Header ─────────────────── */
.lead-detail-header {
  background: linear-gradient(135deg, var(--ge-blue) 0%, var(--ge-blue-light) 100%);
  border-radius: var(--radius);
  padding: 24px 28px;
  color: #fff;
  margin-bottom: 24px;
}

.lead-detail-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  font-family: 'Averia Serif Libre', Georgia, serif;
}

.lead-meta span {
  font-size: 13px;
  opacity: 0.85;
  margin-right: 20px;
  font-family: 'Work Sans', sans-serif;
}

/* ─── Timeline ───────────────────────────── */
.timeline { position: relative; padding-left: 32px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 0; bottom: 0;
  width: 2px;
  background: var(--ge-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-dot {
  position: absolute;
  left: -27px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ge-blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--ge-blue);
}

.timeline-dot.secondary { background: #9ca3af; box-shadow: 0 0 0 2px #9ca3af; }

.timeline-content {
  background: var(--ge-sand-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  border: 1px solid var(--ge-border);
  font-family: 'Work Sans', sans-serif;
}

.timeline-time {
  font-size: 11px;
  color: var(--ge-text-muted);
  margin-top: 4px;
  font-family: 'Work Sans', sans-serif;
}

/* ─── Document Cards ─────────────────────── */
.doc-card {
  background: var(--ge-white);
  border: 1px solid var(--ge-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
  cursor: pointer;
}

.doc-card:hover {
  border-color: var(--ge-blue);
  box-shadow: 0 4px 16px rgba(0,84,166,0.10);
  transform: translateY(-2px);
  text-decoration: none;
}

.doc-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--ge-blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.doc-info { flex: 1; min-width: 0; }

.doc-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ge-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  font-family: 'Work Sans', sans-serif;
}

.doc-meta {
  font-size: 11px;
  color: var(--ge-text-muted);
  font-family: 'Work Sans', sans-serif;
}

/* ─── KYC Wizard Steps ───────────────────── */
.kyc-steps {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  background: var(--ge-sand-light);
  border-radius: var(--radius);
  padding: 4px;
  border: 1px solid var(--ge-border);
}

.kyc-step {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--ge-text-muted);
  transition: all var(--transition);
  font-family: 'Work Sans', sans-serif;
}

.kyc-step.active {
  background: var(--ge-white);
  color: var(--ge-blue);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.kyc-step.done { color: var(--ge-lime-dark); }

.kyc-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ge-border);
  color: var(--ge-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin: 0 auto 6px;
}

.kyc-step.active .kyc-step-num { background: var(--ge-blue); color: #fff; }
.kyc-step.done .kyc-step-num   { background: var(--ge-lime-pale); color: var(--ge-lime-dark); }

/* ─── Commission Card ────────────────────── */
.commission-card {
  background: linear-gradient(135deg, var(--ge-blue), var(--ge-blue-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
}

.commission-card .amount {
  font-size: 30px;
  font-weight: 700;
  margin: 8px 0;
  font-family: 'Work Sans', sans-serif;
}

.commission-card .label {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'Work Sans', sans-serif;
}

/* ─── Status Pill ────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
}

/* ─── Share Lead Button ──────────────────── */
.btn-share-lead {
  background: linear-gradient(135deg, var(--ge-lime-dark), var(--ge-lime));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Work Sans', sans-serif;
}

.btn-share-lead:hover {
  background: linear-gradient(135deg, #7a9030, #96ae3e);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ─── Empty State ────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ge-text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.25;
  display: block;
  color: var(--ge-blue);
}

.empty-state h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ge-text);
  margin-bottom: 8px;
  font-family: 'Averia Serif Libre', Georgia, serif;
}

/* ─── Alerts ─────────────────────────────── */
.ge-alert {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-family: 'Work Sans', sans-serif;
}

.ge-alert i { margin-top: 1px; flex-shrink: 0; }
.ge-alert.info    { background: var(--ge-blue-pale); color: var(--ge-blue-dark); border-left: 4px solid var(--ge-blue); }
.ge-alert.success { background: var(--ge-lime-pale); color: #3a5c10; border-left: 4px solid var(--ge-lime); }
.ge-alert.warning { background: #fef3c7; color: #7c4a00; border-left: 4px solid var(--ge-amber); }
.ge-alert.danger  { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* ─── Pending / Waiting States ───────────── */
.pending-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #f7f6f3, #dceaf7);
  padding: 20px;
}

.pending-card {
  background: var(--ge-white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--ge-border);
}

.pending-card .pending-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

/* ─── Action Buttons ─────────────────────── */
.btn-action {
  border: none;
  background: none;
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--ge-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
}

.btn-action:hover { background: var(--ge-blue-pale); color: var(--ge-text); }
.btn-action.view:hover  { color: var(--ge-blue); }
.btn-action.edit:hover  { color: var(--ge-amber); }
.btn-action.del:hover   { color: #dc2626; }

/* ─── Filter Bar ─────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--ge-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ge-border);
}

.filter-bar .form-control,
.filter-bar .form-select {
  font-size: 13px;
  border: 1.5px solid var(--ge-border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-family: 'Work Sans', sans-serif;
}

/* ─── File Upload Area ───────────────────── */
.file-upload-area {
  border: 2px dashed var(--ge-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  color: var(--ge-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--ge-sand-light);
  font-family: 'Work Sans', sans-serif;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--ge-blue);
  background: var(--ge-blue-pale);
  color: var(--ge-blue);
}

.file-upload-area i { font-size: 30px; display: block; margin-bottom: 8px; }

/* ─── Role Badge ─────────────────────────── */
.role-badge-admin    { background: var(--ge-blue-pale); color: var(--ge-blue); }
.role-badge-superadmin { background: var(--ge-blue); color: #fff; }
.role-badge-staff    { background: var(--ge-lime-pale); color: var(--ge-lime-dark); }
.role-badge-cp       { background: var(--ge-sand); color: var(--ge-text); }

/* ─── View-only Banner (staff) ───────────── */
.view-only-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid var(--ge-amber);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #7c4a00;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: 'Work Sans', sans-serif;
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .hamburger-btn { display: block; }
  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99;
  }
  .overlay.active { display: block; }
}

@media (max-width: 576px) {
  .auth-card { padding: 28px 20px; }
  .page-content { padding: 16px; }
  .stat-value { font-size: 22px; }
}

/* ─── Scrollbar ──────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--ge-sand-light); }
::-webkit-scrollbar-thumb { background: var(--ge-sand); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ge-slate); }

/* ─── Spinner ────────────────────────────── */
.ge-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Print ──────────────────────────────── */
@media print {
  .sidebar, .top-header, .btn, .filter-bar { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .ge-card { box-shadow: none !important; border: 1px solid #ddd !important; }
}
