* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: #0f172a; color: #e2e8f0; }
.muted { color: #94a3b8; font-size: 14px; margin-bottom: 16px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 600; text-decoration: none; }
.btn.primary { background: #3b82f6; color: #fff; }
.btn.ghost { background: #1e293b; color: #e2e8f0; border: 1px solid #334155; }
.btn.full { width: 100%; margin-top: 12px; }
.alert.error { background: #450a0a; color: #fecaca; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 380px; background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 24px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card label { display: block; font-size: 13px; margin: 12px 0 6px; color: #cbd5e1; }
.auth-card input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #475569; background: #0f172a; color: #fff; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #1e293b; border-right: 1px solid #334155; display: flex; flex-direction: column; padding: 20px 14px; }
.sidebar .brand { font-size: 18px; font-weight: 700; padding: 8px 12px 20px; border-bottom: 1px solid #334155; }
.menu { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; flex: 1; }
.menu a { color: #cbd5e1; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.menu a:hover, .menu a.active { background: #3b82f6; color: #fff; }
.sidebar-footer { border-top: 1px solid #334155; padding-top: 12px; }
.logout-link { color: #fca5a5; text-decoration: none; font-size: 14px; display: block; padding: 8px 12px; }
.main-area { flex: 1; display: flex; flex-direction: column; }
.topbar { height: 60px; background: #1e293b; border-bottom: 1px solid #334155; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.content { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 20px; }
.card h2 { font-size: 18px; margin-bottom: 10px; }
.stat { font-size: 28px; font-weight: 700; color: #60a5fa; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #334155; }
th { color: #94a3b8; font-weight: 600; }
body.sidebar-collapsed .sidebar { display: none; }
