:root {
  --ink: #152033;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #f59e0b;
  --muted: #64748b;
  --surface: #ffffff;
  --soft: #f6f8fb;
}

body {
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-shell {
  background:
    linear-gradient(rgba(246, 248, 251, .92), rgba(246, 248, 251, .92)),
    var(--admin-bg-image, none) center/cover fixed,
    var(--soft);
}

.app-navbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  box-shadow: 0 10px 30px rgba(37, 99, 235, .18);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link {
  color: #fff;
}

.nav-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-right: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
}

.app-navbar .nav-link {
  opacity: .88;
}

.app-navbar .nav-link.active,
.app-navbar .nav-link:hover {
  color: #fff;
  opacity: 1;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(30, 64, 175, .94), rgba(37, 99, 235, .68)),
    var(--hero-image, url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1800&q=80")) center/cover;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1;
  letter-spacing: 0;
}

.section {
  padding: 72px 0;
}

.content-card,
.stat-card {
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
}

.stat-card {
  padding: 22px;
}

.stat-card .icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(37, 99, 235, .1);
  color: var(--brand);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.table thead th {
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-label {
  font-weight: 600;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(30, 64, 175, .92), rgba(59, 130, 246, .5)),
    var(--login-image, url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1800&q=80")) center/cover;
}

.receipt {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px;
}

.poster-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
  background: #fff;
}

.poster-fallback {
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 42px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(30, 64, 175, .96), rgba(59, 130, 246, .84)),
    url("https://images.unsplash.com/photo-1497633762265-9d179a990aa6?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.poster-fallback h3 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1;
}

.rekening-number {
  color: var(--brand-dark);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.folder-card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.folder-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 18px 45px rgba(37, 99, 235, .12);
}

.folder-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(37, 99, 235, .1);
  color: var(--brand);
  font-size: 1.55rem;
}

.text-brand {
  color: var(--brand-dark) !important;
}

.swal-poster-popup {
  width: min(92vw, 760px) !important;
  padding: 0 !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.swal-poster-popup .swal2-html-container {
  margin: 0;
}

.popup-poster {
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
  display: block;
}

.popup-poster-fallback {
  min-height: min(78vh, 560px);
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 42px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(30, 64, 175, .98), rgba(59, 130, 246, .88)),
    url("https://images.unsplash.com/photo-1497633762265-9d179a990aa6?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.popup-poster-fallback h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

@media print {
  .app-navbar,
  .no-print,
  .btn {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
