:root {
  --brand: #0d6efd;
  --brand-dark: #0a58ca;
}

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

.topbar {
  background: linear-gradient(90deg, #0b4f8a, #0d6efd);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.topbar-superadmin {
  background: linear-gradient(90deg, #1a1a2e, #4a1942);
}

.app-wrapper {
  display: flex;
  min-height: calc(100vh - 56px);
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #0b1f33;
  min-height: calc(100vh - 56px);
  padding-top: 10px;
}

.sidebar .nav-link {
  color: #b7c5d6;
  padding: 10px 18px;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
}

.sidebar .nav-link i {
  width: 20px;
  display: inline-block;
}

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

.sidebar .nav-link.active {
  background: rgba(13, 110, 253, 0.18);
  color: #fff;
  border-left-color: var(--brand);
  font-weight: 600;
}

.sidebar-heading {
  color: #6c8299;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 16px 18px 6px;
}

.main-content {
  flex: 1;
  padding: 22px 26px;
  overflow-x: auto;
}

.card {
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

.stat-card {
  border-radius: 12px;
  color: #fff;
  padding: 18px 20px;
}

.stat-card .value {
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-card .label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.bg-c1 { background: linear-gradient(135deg,#2b6cb0,#3182ce); }
.bg-c2 { background: linear-gradient(135deg,#2f855a,#38a169); }
.bg-c3 { background: linear-gradient(135deg,#c05621,#dd6b20); }
.bg-c4 { background: linear-gradient(135deg,#822727,#c53030); }

.table thead th {
  background: #eef2f7;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.login-card {
  width: 380px;
  border-radius: 14px;
}

@media print {
  .topbar, .sidebar, .no-print { display: none !important; }
  .main-content { padding: 0 !important; }
  body { background: #fff !important; }
}
