:root {
  --sidebar-bg: #0f172a;
  --sidebar-text: #dbeafe;
  --content-bg: #f4f7fb;
  --card-border: #e2e8f0;
}
* { box-sizing: border-box; }
body { background: var(--content-bg); color: #0f172a; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 270px; background: var(--sidebar-bg); color: var(--sidebar-text); padding: 24px 18px; position: fixed; top: 0; bottom: 0; left: 0; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: #2563eb; color: white; font-weight: 800; }
.brand-title { font-size: 18px; font-weight: 800; color: #fff; }
.sidebar small { color: #93c5fd; }
.sidebar-nav .nav-link { color: #dbeafe; border-radius: 12px; padding: 10px 12px; margin-bottom: 4px; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,0.10); color: #fff; }
.sidebar-nav .nav-link.disabled { color: #64748b; }
.main-content { margin-left: 270px; width: calc(100% - 270px); }
.topbar { background: #fff; padding: 18px 28px; border-bottom: 1px solid var(--card-border); position: sticky; top: 0; z-index: 10; }
.content-wrap { padding: 26px; }
.card { border: 1px solid var(--card-border); border-radius: 18px; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04); }
.kpi-card { min-height: 130px; }
.kpi-label { color: #64748b; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.kpi-value { font-size: 30px; font-weight: 800; }
.kpi-note { color: #64748b; font-size: 13px; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0f172a, #1d4ed8); }
.login-card { width: 100%; max-width: 430px; border-radius: 24px; }
.form-control, .form-select { border-radius: 12px; }
.btn { border-radius: 12px; }
.table thead th { font-size: 12px; text-transform: uppercase; color: #475569; }
.progress { height: 10px; border-radius: 999px; }
.resource-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #dbeafe; color: #1d4ed8; font-weight: 800; }
@media (max-width: 980px) {
  .sidebar { position: static; width: 100%; }
  .app-shell { display: block; }
  .main-content { margin-left: 0; width: 100%; }
}
.analysis-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; white-space: pre-wrap; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; color: #0f172a; }
.table td { vertical-align: middle; }
.badge { font-weight: 600; }
