:root {
  --sidebar-width: 250px;
  --brand: #1e3a5f;
  --brand-light: #2c5282;
  --accent: #d97706;
}

body {
  background: #f4f6f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.app-wrapper { display: flex; min-height: 100vh; }

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--brand);
  color: #fff;
  flex-shrink: 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 1030;
  transition: transform .2s ease;
}

.sidebar-brand {
  padding: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; gap: .5rem;
}

.sidebar-nav { padding: .5rem 0 2rem; }

.nav-section {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.5);
  padding: .9rem 1rem .25rem;
}

.app-sidebar .nav-link {
  color: rgba(255,255,255,.85);
  padding: .5rem 1rem;
  font-size: .9rem;
  border-left: 3px solid transparent;
}

.app-sidebar .nav-link i { width: 1.3rem; display: inline-block; }

.app-sidebar .nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.app-sidebar .nav-link.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 600;
}

.app-main { flex-grow: 1; margin-left: var(--sidebar-width); min-width: 0; }

.topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.kpi-card {
  border: none;
  border-radius: .6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.kpi-card .kpi-value { font-size: 1.6rem; font-weight: 700; }
.kpi-card .kpi-label { font-size: .8rem; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; }

.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,.06); border-radius: .6rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; border-bottom-width: 1px; }

.status-badge { font-size: .72rem; padding: .3em .6em; }

.pass-badge { color: #059669; font-weight: 600; }
.fail-badge { color: #dc2626; font-weight: 600; }

.login-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
}

.login-card { max-width: 400px; width: 100%; border-radius: .8rem; }

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.show { transform: translateX(0); }
  .app-main { margin-left: 0; }
}

.print-only { display: none; }
@media print {
  .app-sidebar, .topbar, .no-print { display: none !important; }
  .app-main { margin-left: 0 !important; }
  .print-only { display: block; }
  body { background: #fff; }
}
