:root { --sidebar-w: 232px; --ink: #1a1d29; --muted: #6b7280; }

body { background: #f4f5f7; color: var(--ink); }

/* ---- Login ---- */
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-main { width: 100%; max-width: 400px; padding: 24px; }
.login-card { border: none; }
.login-logo { font-size: 2rem; color: #4f46e5; }

/* ---- App shell ---- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: #1a1d29; color: #cbd0dc; padding: 16px 12px; position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; font-size: 1.05rem; padding: 8px 8px 16px; }
.app-sidebar .nav-link { color: #cbd0dc; border-radius: 8px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; }
.app-sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-sidebar .nav-link.active { background: #4f46e5; color: #fff; }

.app-content { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 24px;
}
.topbar-title { font-weight: 600; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.app-main { padding: 24px; max-width: 1100px; width: 100%; }

/* ---- Stat cards ---- */
.stat-card .stat-label { color: var(--muted); font-size: .85rem; }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 700; }

.card { border: 1px solid #e5e7eb; border-radius: 12px; }
