body { font-family: 'Segoe UI', system-ui, sans-serif; }
.card { border-radius: 14px; border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.btn-scan-big {
  width: 100%; padding: 2rem; font-size: 1.3rem; border-radius: 16px;
}
#qr-reader { border-radius: 14px; overflow: hidden; }
.saldo-box {
  background: linear-gradient(135deg, #198754, #20c997);
  color: #fff; border-radius: 16px; padding: 1.5rem;
}
.qr-card {
  border: 2px dashed #198754; border-radius: 12px; padding: 1rem; text-align: center; page-break-inside: avoid;
}
@media print {
  .no-print { display: none !important; }
  .qr-card { border: 1px solid #333; }
}

/* ===== Sidebar & navigasi responsif ===== */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: linear-gradient(180deg, #198754, #0f5132);
  color: #fff;
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.25rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
.sidebar-brand .brand-mark {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.brand-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-platform {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.brand-app {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.brand-school {
  font-size: .68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .6);
}
.brand-label-compact {
  font-size: .95rem;
  font-weight: 700;
}
.sidebar-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.sidebar .nav-link,
.sidebar-offcanvas .nav-link {
  color: rgba(255, 255, 255, .85);
  padding: .65rem 1.25rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  border-left: 3px solid transparent;
}
.sidebar .nav-link:hover,
.sidebar-offcanvas .nav-link:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.sidebar .nav-link.active,
.sidebar-offcanvas .nav-link.active {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 600;
  border-left-color: #fff;
}
.sidebar-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.sidebar-offcanvas {
  width: 260px;
  background: linear-gradient(180deg, #198754, #0f5132);
  color: #fff;
}
.sidebar-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.topbar-mobile {
  background: #198754;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .95rem;
}
.topbar-brand .sidebar-logo {
  height: 24px;
  width: 24px;
}

@media (max-width: 991.98px) {
  .btn-scan-big { padding: 1.5rem; font-size: 1.1rem; }
}
