/* ── Layout ─────────────────────────────────── */
:root {
  --sidebar-w: 220px;
  --blue:  #1a73e8;
  --green: #34a853;
  --red:   #ea4335;
  --amber: #fbbc04;
  --purple:#7c4dff;
}

body { margin: 0; background: #f0f4f9; font-family: 'Segoe UI', Arial, sans-serif; }

.sidebar {
  position: fixed; top: 0; left: 0; height: 100vh;
  width: var(--sidebar-w); background: #1e2a3a;
  color: #fff; padding: 0; z-index: 100;
  box-shadow: 2px 0 8px rgba(0,0,0,.15);
}

.sidebar-brand {
  padding: 22px 20px 18px;
  font-size: 18px; font-weight: 700;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.1);
  letter-spacing: .5px;
}

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

.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; color: rgba(255,255,255,.75);
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.sidebar-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav .nav-link.active {
  color: #fff; background: rgba(26,115,232,.25);
  border-left-color: var(--blue);
}
.sidebar-nav .nav-link i { font-size: 16px; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
}

.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 28px 32px;
}

/* ── Cards ──────────────────────────────────── */
.card { border: none; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card-header { background: transparent; border-bottom: 1px solid #eef0f3; font-weight: 600; padding: 16px 20px; }

/* ── KPI Cards ──────────────────────────────── */
.kpi-card {
  background: white; border-radius: 12px;
  padding: 20px 24px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.kpi-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.kpi-value { font-size: 28px; font-weight: 700; color: #1e2a3a; line-height: 1; }
.kpi-label { font-size: 13px; color: #6b7280; margin-top: 4px; }

/* ── Account cards ──────────────────────────── */
.account-card {
  background: white; border-radius: 12px;
  border: 1px solid #e8edf3; padding: 18px 20px;
  transition: box-shadow .15s;
}
.account-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.account-card.healthy { border-left: 4px solid var(--green); }
.account-card.urgent  { border-left: 4px solid var(--red); }
.account-card.pending { border-left: 4px solid #d1d5db; }

/* ── Status badges ──────────────────────────── */
.badge-urgent   { background: #fce8e6; color: #c5221f; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-healthy  { background: #e6f4ea; color: #137333; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-running  { background: #e8f0fe; color: #1a73e8; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-failed   { background: #fce8e6; color: #c5221f; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending  { background: #f3f4f6; color: #6b7280; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* ── Rec boxes ──────────────────────────────── */
.rec-urgent   { background: #fff3cd; border-left: 4px solid #ff6b35; padding: 9px 14px; margin: 5px 0; border-radius: 6px; font-size: 14px; }
.rec-suggested{ background: #e8f4fd; border-left: 4px solid var(--blue); padding: 9px 14px; margin: 5px 0; border-radius: 6px; font-size: 14px; }
.rec-good     { background: #e6f4ea; border-left: 4px solid var(--green); padding: 9px 14px; margin: 5px 0; border-radius: 6px; font-size: 14px; }
.rec-ai       { background: #f0f0ff; border-left: 4px solid var(--purple); padding: 12px 14px; margin: 8px 0; border-radius: 6px; font-size: 14px; white-space: pre-wrap; }

/* ── Tables ─────────────────────────────────── */
.table th { font-size: 13px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; }
.table td { vertical-align: middle; }

/* ── Progress bar ───────────────────────────── */
.audit-progress-wrap { background: #f0f4f9; border-radius: 12px; padding: 24px; }

/* ── Setup wizard ───────────────────────────── */
.setup-container { max-width: 680px; margin: 0 auto; }
.setup-step { background: white; border-radius: 12px; padding: 28px 32px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.step-num {
  width: 32px; height: 32px; background: var(--blue); color: white;
  border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px; margin-right: 10px;
}

/* ── Misc ───────────────────────────────────── */
.page-title { font-size: 22px; font-weight: 700; color: #1e2a3a; margin-bottom: 6px; }
.page-subtitle { font-size: 14px; color: #6b7280; margin-bottom: 24px; }
.section-title { font-size: 16px; font-weight: 600; color: #1e2a3a; margin: 24px 0 12px; }
.empty-state { text-align: center; padding: 60px 20px; color: #9ca3af; }
.empty-state i { font-size: 48px; margin-bottom: 16px; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: #1557b0; border-color: #1557b0; }
.form-label { font-weight: 500; font-size: 14px; }
.text-muted { color: #9ca3af !important; }
