/* ================================================
   NairaSend — Design System
   Typeface: Plus Jakarta Sans (Google Fonts)
   Palette: Navy + Ivory + Gold
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy:        #0c1628;
  --navy-light:  #1a2e50;
  --blue:        #1a56db;
  --blue-light:  #3b82f6;
  --ivory:       #f8f7f4;
  --gold:        #d97706;
  --gold-light:  #fef3c7;
  --green:       #047857;
  --green-light: #d1fae5;
  --red:         #b91c1c;
  --red-light:   #fee2e2;
  --amber:       #b45309;
  --amber-light: #fffbeb;
  --surface:     #ffffff;
  --surface-2:   #f8f7f4;
  --border:      #e4e3df;
  --border-light:#f0efe9;
  --text:        #0f172a;
  --text-muted:  #6b7280;
  --text-faint:  #9ca3af;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   18px;
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.05);
  --shadow:      0 1px 4px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.06);
  --shadow-lg:   0 4px 8px rgba(0,0,0,0.06), 0 16px 48px rgba(0,0,0,0.10);
  --font:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition:  0.2s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ivory);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; line-height: 1.6; }
a { text-decoration: none; color: var(--blue); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 0.9rem;
  padding: 11px 22px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1344b8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,86,219,0.3); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #065f46; transform: translateY(-1px); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-full { width: 100%; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-lg { padding: 32px; }

/* ---- Status pills ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; }
.pill-success { background: var(--green-light); color: var(--green); }
.pill-success .pill-dot { background: var(--green); }
.pill-warning { background: var(--amber-light); color: var(--amber); }
.pill-warning .pill-dot { background: var(--amber); }
.pill-danger  { background: var(--red-light); color: var(--red); }
.pill-danger .pill-dot { background: var(--red); }
.pill-info    { background: #eff6ff; color: var(--blue); }
.pill-info .pill-dot { background: var(--blue); }

/* ---- Form elements ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.03em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.95rem; color: var(--text);
  background: var(--surface); transition: border-color var(--transition);
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,0.08); }
.field-hint { font-size: 0.78rem; color: var(--text-faint); }

/* ---- Alert boxes ---- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500; }
.alert-success { background: var(--green-light); color: var(--green); border-left: 3px solid var(--green); }
.alert-error   { background: var(--red-light);   color: var(--red);   border-left: 3px solid var(--red); }
.alert-warning { background: var(--amber-light); color: var(--amber); border-left: 3px solid var(--amber); }
.alert-info    { background: #eff6ff;             color: var(--blue);  border-left: 3px solid var(--blue); }

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

.sidebar {
  width: 240px; min-height: 100vh; background: var(--navy);
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column; padding: 0;
  z-index: 100;
}
.sidebar-logo {
  padding: 24px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-logo .logo-text {
  font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -0.02em;
}
.sidebar-logo .logo-sub { font-size: 0.72rem; color: rgba(255,255,255,0.4); font-weight: 400; }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 2px;
  color: rgba(255,255,255,0.55); font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.sidebar-nav a.active { background: rgba(26,86,219,0.3); color: #fff; }
.sidebar-nav a svg { flex-shrink: 0; opacity: 0.7; }
.sidebar-nav a.active svg { opacity: 1; }
.sidebar-nav .nav-section {
  font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em; text-transform: uppercase; padding: 14px 12px 6px;
}
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.sidebar-footer a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; color: rgba(255,255,255,0.4); font-size: 0.82rem; font-weight: 500;
  transition: all var(--transition);
}
.sidebar-footer a:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); }

.app-main { margin-left: 240px; flex: 1; min-height: 100vh; background: var(--ivory); }

.app-topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 60px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.app-topbar .page-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.app-topbar-right { display: flex; align-items: center; gap: 16px; }

.app-content { padding: 28px 32px; max-width: 1100px; }

/* ---- Stat cards ---- */
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.stat-card .stat-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text); margin: 8px 0 4px; letter-spacing: -0.03em; }
.stat-card .stat-sub   { font-size: 0.8rem; color: var(--text-faint); }
.stat-card .stat-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-top: 6px; }
.stat-badge-up   { background: var(--green-light); color: var(--green); }
.stat-badge-down { background: var(--red-light);   color: var(--red); }
.stat-badge-flat { background: var(--border);       color: var(--text-muted); }

/* ---- Transfer status tracker ---- */
.tracker { display: flex; align-items: flex-start; gap: 0; }
.tracker-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.tracker-step:not(:last-child)::after {
  content: ''; position: absolute; top: 14px; left: 50%; right: -50%;
  height: 2px; background: var(--border); z-index: 0;
}
.tracker-step.done:not(:last-child)::after { background: var(--green); }
.tracker-step.active:not(:last-child)::after { background: var(--border); }
.tracker-dot {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; font-size: 0.7rem; font-weight: 700; border: 2px solid var(--border);
  background: var(--surface); color: var(--text-muted);
}
.tracker-step.done .tracker-dot  { background: var(--green); border-color: var(--green); color: #fff; }
.tracker-step.active .tracker-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.tracker-label { font-size: 0.72rem; font-weight: 600; margin-top: 8px; color: var(--text-muted); text-align: center; }
.tracker-step.done .tracker-label  { color: var(--green); }
.tracker-step.active .tracker-label { color: var(--blue); }

/* ---- Divider ---- */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .app-main { margin-left: 0; }
  .app-content { padding: 20px 16px; }
  .app-topbar { padding: 0 16px; }
}
