/* LeadsPro Kenya — Global Stylesheet */
:root {
  --green:  #1a7a4a;
  --green-dark: #0f5c34;
  --green-light: #e8f5ee;
  --blue:   #1a4a7a;
  --blue-light: #e6f1fb;
  --purple: #7a1a6a;
  --purple-light: #f3e8f1;
  --dark:   #2c2c2a;
  --red:    #c0392b;
  --red-light: #fdecea;
  --amber:  #b7760d;
  --amber-light: #fef3e2;
  --text:   #1a1a1a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --bg:     #f7f8fa;
  --white:  #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Layout ---- */
.lp-layout { display: flex; min-height: 100vh; }

.lp-sidebar {
  width: 220px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.lp-main {
  margin-left: 220px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.lp-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.lp-logo h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -.3px;
}
.lp-logo span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.lp-nav { padding: 12px 0; flex: 1; }
.lp-nav-section {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  padding: 10px 20px 4px;
}
.lp-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-right: 3px solid transparent;
  transition: all .15s;
}
.lp-nav a:hover { background: var(--bg); color: var(--text); }
.lp-nav a.active { color: var(--green); background: var(--green-light); border-right-color: var(--green); font-weight: 500; }
.lp-nav a.active-blue { color: var(--blue); background: var(--blue-light); border-right-color: var(--blue); font-weight: 500; }
.lp-nav a.active-purple { color: var(--purple); background: var(--purple-light); border-right-color: var(--purple); font-weight: 500; }
.lp-nav a.active-dark { color: var(--dark); background: var(--bg); border-right-color: var(--dark); font-weight: 500; }
.lp-nav i { font-size: 17px; flex-shrink: 0; }

.lp-sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.lp-sidebar-footer a { color: var(--red); text-decoration: none; font-weight: 500; }

/* ---- Topbar ---- */
.lp-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.lp-topbar-title { font-size: 16px; font-weight: 600; color: var(--text); }
.lp-topbar-right { display: flex; align-items: center; gap: 14px; }

.lp-wallet-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(26,122,74,.2);
}
.lp-wallet-pill.blue { background: var(--blue-light); color: var(--blue); border-color: rgba(26,74,122,.2); }
.lp-wallet-pill.purple { background: var(--purple-light); color: var(--purple); border-color: rgba(122,26,106,.2); }

.lp-notif-btn {
  position: relative;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 17px;
}
.lp-notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid var(--white);
}

.lp-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ---- Page content ---- */
.lp-content { padding: 28px; flex: 1; }
.lp-page-header { margin-bottom: 24px; }
.lp-page-header h1 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.lp-page-header p { font-size: 13px; color: var(--text-muted); }

/* ---- Stats grid ---- */
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.lp-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.lp-stat-card .label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.lp-stat-card .value { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.1; }
.lp-stat-card .sub { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.lp-stat-card.green-card { border-left: 4px solid var(--green); }
.lp-stat-card.blue-card { border-left: 4px solid var(--blue); }
.lp-stat-card.purple-card { border-left: 4px solid var(--purple); }
.lp-stat-card.amber-card { border-left: 4px solid #d97706; }

/* ---- Cards ---- */
.lp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lp-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-card-header h3 { font-size: 14px; font-weight: 600; color: var(--text); }
.lp-card-body { padding: 20px; }

/* ---- Grid ---- */
.lp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
}
.badge-pending  { background: var(--amber-light); color: var(--amber); }
.badge-active   { background: var(--green-light);  color: var(--green-dark); }
.badge-claimed  { background: var(--blue-light);   color: var(--blue); }
.badge-expired  { background: #f3f4f6;             color: var(--text-muted); }
.badge-verified { background: var(--green-light);  color: var(--green-dark); }
.badge-unverified { background: var(--red-light);  color: var(--red); }
.badge-completed { background: #ede9fe;            color: #6d28d9; }
.badge-disabled  { background: #f3f4f6;            color: #9ca3af; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
  line-height: 1;
}
.btn:active { transform: scale(.98); }
.btn-green  { background: var(--green);  color: #fff; }
.btn-green:hover { opacity: .9; }
.btn-blue   { background: var(--blue);   color: #fff; }
.btn-blue:hover { opacity: .9; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { opacity: .9; }
.btn-dark   { background: var(--dark);   color: #fff; }
.btn-red    { background: var(--red);    color: #fff; }
.btn-outline { background: transparent; border-color: var(--border-dark); color: var(--text-muted); }
.btn-outline:hover { background: var(--bg); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Forms ---- */
.lp-form-group { margin-bottom: 18px; }
.lp-form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.lp-select, .lp-input, .lp-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  outline: none;
  font-family: inherit;
}
.lp-select:focus, .lp-input:focus, .lp-textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,122,74,.1); }
.lp-textarea { resize: vertical; min-height: 90px; }
.lp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.lp-form-error { font-size: 12px; color: var(--red); margin-top: 4px; }

/* ---- Alerts ---- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert i { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--green-light); color: var(--green-dark); border: 1px solid rgba(26,122,74,.2); }
.alert-error   { background: var(--red-light);   color: var(--red);        border: 1px solid rgba(192,57,43,.2); }
.alert-info    { background: var(--blue-light);  color: var(--blue);       border: 1px solid rgba(26,74,122,.2); }
.alert-warning { background: var(--amber-light); color: var(--amber);      border: 1px solid rgba(183,118,13,.2); }

/* ---- Table ---- */
.lp-table-wrap { overflow-x: auto; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lp-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); background: var(--bg); border-bottom: 1px solid var(--border); }
.lp-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.lp-table tr:last-child td { border-bottom: none; }
.lp-table tr:hover td { background: var(--bg); }

/* ---- Auth pages ---- */
.lp-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  background: var(--bg);
}
.lp-auth-box {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.lp-auth-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.lp-auth-logo { font-size: 22px; font-weight: 800; color: var(--green); margin-bottom: 4px; }
.lp-auth-logo.blue { color: var(--blue); }
.lp-auth-logo.purple { color: var(--purple); }
.lp-auth-logo.dark { color: var(--dark); }
.lp-auth-tagline { font-size: 12px; color: var(--text-muted); }
.lp-auth-header h2 { font-size: 18px; font-weight: 700; color: var(--text); margin-top: 16px; margin-bottom: 4px; }
.lp-auth-header p { font-size: 13px; color: var(--text-muted); }
.lp-auth-body { padding: 28px 32px; }
.lp-auth-footer { padding: 16px 32px; background: var(--bg); border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--text-muted); }
.lp-auth-footer a { color: var(--green); font-weight: 500; text-decoration: none; }

/* ---- Step wizard ---- */
.lp-steps { display: flex; align-items: center; margin-bottom: 28px; }
.lp-step { display: flex; align-items: center; gap: 8px; }
.lp-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--bg);
  border: 2px solid var(--border-dark);
  color: var(--text-muted);
  flex-shrink: 0;
}
.lp-step-num.done  { background: var(--green);      border-color: var(--green);      color: #fff; }
.lp-step-num.active{ background: var(--white);       border-color: var(--green);      color: var(--green); }
.lp-step-label { font-size: 12px; color: var(--text-muted); }
.lp-step-label.active { color: var(--green); font-weight: 600; }
.lp-step-label.done   { color: var(--green); }
.lp-step-line { flex: 1; height: 2px; background: var(--border); margin: 0 10px; }
.lp-step-line.done { background: var(--green); }

/* ---- Misc ---- */
.lp-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-blue  { color: var(--blue); }
.text-red   { color: var(--red); }
.text-sm    { font-size: 12px; }
.fw-600     { font-weight: 600; }
.mt-4       { margin-top: 4px; }
.mt-8       { margin-top: 8px; }
.mt-16      { margin-top: 16px; }
.mt-24      { margin-top: 24px; }
.mb-4       { margin-bottom: 4px; }
.mb-8       { margin-bottom: 8px; }
.mb-16      { margin-bottom: 16px; }
.mb-24      { margin-bottom: 24px; }
.d-flex     { display: flex; align-items: center; }
.gap-8      { gap: 8px; }
.gap-12     { gap: 12px; }
.justify-between { justify-content: space-between; }
.w-100      { width: 100%; }

/* ---- Claim dots ---- */
.claim-dots { display: flex; gap: 4px; align-items: center; }
.claim-dot  { width: 12px; height: 12px; border-radius: 50%; }
.claim-dot.filled  { background: var(--green); }
.claim-dot.filled-blue { background: var(--blue); }
.claim-dot.empty   { background: var(--border); border: 1px solid var(--border-dark); }

/* ---- Pagination ---- */
.lp-pagination { display: flex; align-items: center; gap: 6px; margin-top: 20px; }
.lp-page-btn { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; cursor: pointer; background: var(--white); color: var(--text-muted); }
.lp-page-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.lp-page-btn:hover:not(.active) { background: var(--bg); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .lp-sidebar { transform: translateX(-100%); transition: transform .25s; }
  .lp-sidebar.open { transform: translateX(0); }
  .lp-main { margin-left: 0; }
  .lp-form-row { grid-template-columns: 1fr; }
  .lp-grid-2 { grid-template-columns: 1fr; }
  .lp-grid-3 { grid-template-columns: 1fr; }
  .lp-stats { grid-template-columns: 1fr 1fr; }
  .lp-content { padding: 16px; }
}

@media (max-width: 480px) {
  .lp-stats { grid-template-columns: 1fr; }
}