:root {
  --ff-bg: #f5f6f8;
  --ff-sidebar: #1f2937;
  --ff-sidebar-hover: #374151;
  --ff-accent: #2563eb;
  --ff-text: #111827;
}

html, body { height: 100%; }
body { background: var(--ff-bg); color: var(--ff-text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---------- Login ---------- */
.page-login {
  min-height: 100vh;
  background: linear-gradient(135deg, #1f2937 0%, #2563eb 100%);
}
.login-wrap { min-height: 100vh; padding: 1rem; }
.login-card { width: 100%; max-width: 420px; border: none; border-radius: 14px; }
.brand-mark { font-size: 3rem; line-height: 1; }

/* ---------- App-Layout ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 240px;
  background: var(--ff-sidebar);
  color: #e5e7eb;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
}
.app-sidebar .brand {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.25rem; font-weight: 600; padding: 0 .75rem;
}
.app-sidebar .nav-link {
  color: #d1d5db; border-radius: 6px; padding: .55rem .75rem;
  display: flex; align-items: center; gap: .6rem; font-size: .95rem;
}
.app-sidebar .nav-link:hover { background: var(--ff-sidebar-hover); color: #fff; }
.app-sidebar .nav-link.active { background: var(--ff-accent); color: #fff; }
.sidebar-footer { border-top: 1px solid #374151; padding-top: .75rem; }

.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  background: #fff; border-bottom: 1px solid #e5e7eb;
  padding: .9rem 1.25rem;
}
.user-chip { font-size: .9rem; }

.app-content { flex: 1; }

.stat-card .display-6 { line-height: 1; }
