:root {
  --sq-primary: #2952e3;
  --sq-primary-dark: #1e3fb8;
  --sq-bg: #f4f6fb;
  --sq-card-border: #e7eaf3;
  --sq-critical: #dc3545;
  --sq-high: #fd7e14;
  --sq-medium: #ffc107;
  --sq-low: #0dcaf0;
  --sq-pass: #198754;
}

body {
  background: var(--sq-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2430;
}

/* ---- Navbar ---- */
.app-navbar {
  background: #fff;
  border-bottom: 1px solid var(--sq-card-border);
  padding: 0.6rem 0;
}
.app-navbar .navbar-brand { color: #1f2430; }

/* ---- Layout ---- */
.app-body { display: flex; min-height: calc(100vh - 56px); }
.app-body.with-sidebar .app-main { flex: 1; padding: 24px 32px; }
.app-sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--sq-card-border);
  flex-shrink: 0;
}
.app-sidebar .nav-link {
  color: #4b5163;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.app-sidebar .nav-link:hover { background: #eef1fb; color: var(--sq-primary); }
.app-sidebar .nav-link.active { background: var(--sq-primary); color: #fff; }

.app-footer { border-top: 1px solid var(--sq-card-border); background: #fff; }

/* ---- Cards ---- */
.card { border: 1px solid var(--sq-card-border); border-radius: 12px; }
.card-header { background: #fff; font-weight: 600; border-bottom: 1px solid var(--sq-card-border); }

.stat-card .card-body { padding: 1rem 1.1rem; }
.stat-label { font-size: 0.78rem; color: #7a8093; text-transform: uppercase; letter-spacing: .03em; }
.stat-value { font-size: 1.6rem; font-weight: 700; margin-top: 2px; }

/* ---- Auth ---- */
.auth-body { background: linear-gradient(135deg, #2952e3 0%, #1a2a63 100%); min-height: 100vh; display: flex; align-items: center; }
.auth-wrapper { width: 100%; max-width: 420px; margin: 0 auto; padding: 24px; }
.auth-card { border-radius: 16px; border: none; }

/* ---- Badges ---- */
.badge-critical, .bg-critical { background: var(--sq-critical) !important; color: #fff; }
.badge-high, .bg-high { background: var(--sq-high) !important; color: #fff; }
.badge-medium, .bg-medium { background: var(--sq-medium) !important; color: #1f2430; }
.badge-low, .bg-low { background: var(--sq-low) !important; color: #1f2430; }

/* ---- Landing page ---- */
.hero { padding: 90px 0 70px; text-align: center; background: radial-gradient(circle at top, #eef1fb 0%, #f4f6fb 60%); }
.hero h1 { font-size: 2.6rem; font-weight: 800; max-width: 780px; margin: 0 auto 18px; }
.hero p.lead { max-width: 620px; margin: 0 auto 28px; color: #545a6c; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: #eef1fb; display: flex; align-items: center; justify-content: center; color: var(--sq-primary); font-size: 1.2rem; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--sq-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

@media (max-width: 768px) {
  .app-sidebar { display: none; }
  .app-body.with-sidebar .app-main { padding: 16px; }
}
