:root {
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --brand-soft: #eff6ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f6fb;
  --sidebar-w: 268px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.925rem;
}

a {
  text-decoration: none;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.55rem 1rem;
}

.btn-sm {
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline-primary {
  color: var(--brand);
  border-color: #bfdbfe;
}

.btn-outline-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.form-control,
.form-select {
  border-radius: 10px;
  border-color: #d7dde8;
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 0.35rem;
}

/* ---------- Layout ---------- */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0f172a 0%, #111c33 100%);
  color: #cbd5e1;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1rem;
  z-index: 1040;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.5rem 1.4rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.brand-name {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-nav {
  overflow-y: auto;
  flex: 1;
  padding-right: 2px;
}

.nav-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  padding: 1rem 0.75rem 0.45rem;
  font-weight: 700;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #b6c2d6;
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.18rem;
  transition: 0.15s ease;
}

.sidebar-link i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
}

.sidebar-link:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #fff;
}

.sidebar-link.active {
  background: rgba(59, 130, 246, 0.18);
  color: #fff;
  box-shadow: inset 3px 0 0 #60a5fa;
}

.nav-badge {
  margin-left: auto;
  background: #f59e0b;
  color: #1f2937;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
}

.sidebar-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 0.9rem;
  margin-top: 0.6rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.45rem;
}

.sidebar-user .nama {
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.2;
}

.sidebar-user .peran {
  color: #94a3b8;
  font-size: 0.72rem;
}

.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.page-heading h1 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.page-heading p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  flex: 0 0 auto;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.7rem;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  color: var(--ink);
}

.user-chip .nama {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.15;
}

.user-chip .peran {
  font-size: 0.68rem;
  color: var(--muted);
}

.content {
  padding: 1.6rem 1.75rem 2.5rem;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
}

.sidebar-backdrop {
  display: none;
}

/* ---------- Cards ---------- */
.card-app {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card-app .card-header-app {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-app .card-header-app h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.card-app .card-body-app {
  padding: 1.25rem;
}

.stat-card {
  padding: 1.15rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  height: 100%;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex: 0 0 auto;
}

.stat-icon.blue { background: #eff6ff; color: #2563eb; }
.stat-icon.amber { background: #fffbeb; color: #d97706; }
.stat-icon.green { background: #ecfdf5; color: #059669; }
.stat-icon.red { background: #fef2f2; color: #dc2626; }
.stat-icon.violet { background: #f5f3ff; color: #7c3aed; }
.stat-icon.cyan { background: #ecfeff; color: #0891b2; }

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.stat-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.hero-panel {
  background: linear-gradient(115deg, #1d4ed8 0%, #2563eb 45%, #0891b2 100%);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -90px;
  top: -140px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero-panel h2 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hero-panel p {
  margin-bottom: 0;
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.86rem;
  max-width: 560px;
}

/* ---------- Tables ---------- */
.table-app {
  margin: 0;
  font-size: 0.85rem;
}

.table-app thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 1rem;
  white-space: nowrap;
}

.table-app tbody td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
  border-color: #eef2f7;
}

.table-app tbody tr:hover {
  background: #fafcff;
}

.table-app .kolom-pilih {
  width: 42px;
  padding-right: 0;
  text-align: center;
}

.table-app .kolom-pilih .form-check-input {
  cursor: pointer;
  margin: 0;
}

.cell-strong {
  font-weight: 600;
  color: var(--ink);
}

.cell-sub {
  color: var(--muted);
  font-size: 0.76rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 0 0 var(--radius) var(--radius);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ---------- Badges / misc ---------- */
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.32rem 0.6rem;
  line-height: 1;
}

.badge-soft.primary { background: #eff6ff; color: #1d4ed8; }
.badge-soft.success { background: #ecfdf5; color: #047857; }
.badge-soft.warning { background: #fffbeb; color: #b45309; }
.badge-soft.danger { background: #fef2f2; color: #b91c1c; }
.badge-soft.info { background: #ecfeff; color: #0e7490; }
.badge-soft.secondary { background: #f1f5f9; color: #475569; }

.role-admin { background: #fdf2f8; color: #be185d; }
.role-siswa { background: #eff6ff; color: #1d4ed8; }
.role-guru { background: #ecfdf5; color: #047857; }
.role-staf { background: #fff7ed; color: #c2410c; }

.chip {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
}

.empty-state i {
  font-size: 2.4rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.6rem;
}

.empty-state p {
  margin: 0;
  font-size: 0.85rem;
}

.alert {
  border-radius: 12px;
  border: 0;
  font-size: 0.86rem;
  padding: 0.8rem 1rem;
}

.alert-success { background: #ecfdf5; color: #065f46; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-info { background: #eff6ff; color: #1e40af; }
.alert-secondary { background: #f1f5f9; color: #334155; }

.pagination .page-link {
  border: 1px solid var(--line);
  color: #475569;
  border-radius: 8px;
  margin: 0 2px;
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
}

.pagination .page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.filter-bar .form-control,
.filter-bar .form-select {
  min-width: 160px;
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.status-tab {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-tab:hover {
  border-color: #bfdbfe;
  color: var(--brand);
}

.status-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.status-tab .count {
  background: rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  font-size: 0.68rem;
}

.status-tab.active .count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ---------- Detail ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.detail-item .label {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.detail-item .value {
  font-weight: 600;
  font-size: 0.88rem;
}

.timeline {
  display: flex;
  gap: 0;
  margin: 0.3rem 0 0;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 0.72rem;
  color: #94a3b8;
}

.timeline-step::before {
  content: "";
  height: 3px;
  background: #e2e8f0;
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
}

.timeline-step:first-child::before { left: 50%; }
.timeline-step:last-child::before { right: 50%; }

.timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: grid;
  place-items: center;
  margin: 0 auto 0.4rem;
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
}

.timeline-step.done { color: #047857; }
.timeline-step.done .timeline-dot { background: #10b981; color: #fff; }
.timeline-step.done::before { background: #10b981; }
.timeline-step.current { color: var(--brand); font-weight: 700; }
.timeline-step.current .timeline-dot { background: var(--brand); color: #fff; }
.timeline-step.danger { color: #b91c1c; }
.timeline-step.danger .timeline-dot { background: #ef4444; color: #fff; }

/* ---------- Login ---------- */
.login-body {
  min-height: 100vh;
  background: #0b1220;
  display: flex;
}

.login-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: 100%;
  min-height: 100vh;
}

.login-brand {
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.22), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.28), transparent 40%),
    linear-gradient(150deg, #0f172a 0%, #15244a 60%, #0e7490 130%);
  color: #e2e8f0;
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-brand::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(148, 197, 255, 0.18);
  border-radius: 50%;
  bottom: -220px;
  right: -140px;
}

.login-brand .brand-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.login-brand h1 {
  font-size: 2.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 2.2rem 0 0.9rem;
  max-width: 460px;
}

.login-brand .lead {
  color: #aec3dd;
  font-size: 0.95rem;
  max-width: 440px;
  line-height: 1.6;
}

.login-features {
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
}

.login-feature {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  max-width: 430px;
}

.login-feature i {
  color: #7dd3fc;
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.login-feature .t {
  color: #e6eefc;
  font-weight: 600;
  font-size: 0.85rem;
}

.login-feature .d {
  color: #9db2cc;
  font-size: 0.76rem;
  line-height: 1.4;
}

.login-form-side {
  background: #f8fafc;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 410px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.login-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.login-card .sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.login-hint {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 1.4rem 0 0;
}

.brand-mobile {
  display: none;
}

.password-wrap {
  position: relative;
}

.password-wrap .toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 0.3rem;
  z-index: 5;
}

/* ---------- Import / forms ---------- */
.form-card {
  max-width: 820px;
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.8rem;
}

.dropzone {
  border: 1.5px dashed #bcd0ea;
  background: #f8fbff;
  border-radius: 14px;
  padding: 1.8rem 1rem;
  text-align: center;
}

.dropzone i {
  font-size: 2rem;
  color: #60a5fa;
  display: block;
  margin-bottom: 0.5rem;
}

.credential-table td {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
}

.password-pill {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.18rem 0.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.copy-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 0.15rem 0.3rem;
}

.copy-btn:hover {
  color: var(--brand);
}

.item-row {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.7rem;
}

.item-row.removed {
  display: none;
}

.barang-picker {
  position: relative;
}

.barang-picker-control {
  position: relative;
}

.barang-picker-input {
  padding-right: 2.3rem;
}

.barang-picker-input::placeholder {
  color: #94a3b8;
}

.barang-picker-clear {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  display: none;
}

.barang-picker-clear.show {
  display: block;
}

.barang-picker-clear:hover {
  color: #b91c1c;
  background: #fee2e2;
}

.barang-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1050;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 0.35rem;
}

.barang-opsi {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
}

.barang-opsi:hover,
.barang-opsi.aktif {
  background: var(--brand-soft);
}

.barang-opsi.terpilih {
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.barang-opsi-main {
  flex: 1;
  min-width: 0;
}

.barang-opsi-nama {
  display: block;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.barang-opsi-meta {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.barang-opsi-stok {
  flex: none;
  font-size: 0.74rem;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.barang-opsi.is-habis .barang-opsi-nama {
  color: #94a3b8;
}

.barang-opsi.is-habis .barang-opsi-stok {
  color: #b91c1c;
  background: #fee2e2;
}

.barang-opsi:disabled {
  cursor: not-allowed;
  background: transparent;
  opacity: 0.8;
}

.barang-picker-info,
.barang-picker-empty {
  padding: 0.7rem 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.barang-picker-empty {
  text-align: center;
}

.step-list {
  counter-reset: langkah;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-list li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1rem;
  color: #475569;
  font-size: 0.85rem;
}

.step-list li::before {
  counter-increment: langkah;
  content: counter(langkah);
  position: absolute;
  left: 0;
  top: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
}

.info-strip {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.8rem;
  color: #1e40af;
}

.info-strip i {
  margin-top: 0.05rem;
}

.table-clean {
  margin: 0;
  font-size: 0.85rem;
}

.table-clean td {
  padding: 0.6rem 0;
  border-color: #eef2f7;
}

.table-clean td:first-child {
  color: var(--muted);
  width: 42%;
}

.table-clean td:last-child {
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .login-brand {
    padding: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1030;
  }

  .app-main {
    margin-left: 0;
  }

  .topbar {
    padding: 0.8rem 1rem;
  }

  .content {
    padding: 1.15rem 1rem 2.2rem;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    display: none;
  }

  .brand-mobile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
  }

  .brand-mobile .brand-name {
    color: var(--ink);
  }
}

@media (max-width: 575.98px) {
  .page-heading p {
    display: none;
  }

  .date-chip {
    display: none !important;
  }

  .user-chip .text {
    display: none;
  }

  .user-chip {
    padding: 0.22rem;
    border-radius: 50%;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .card-app .card-body-app {
    padding: 1rem;
  }
}

.foto-bukti {
  display: block;
  max-width: 100%;
  max-height: 420px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.foto-pratinjau {
  margin-top: 0.75rem;
}

.foto-pratinjau img {
  display: block;
  max-height: 220px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.modal-content {
  border-radius: 18px;
}

/* ---------- Layar muat (splash) ---------- */
html.splash-lock,
html.splash-lock body {
  overflow: hidden;
}

html.lewati-splash .splash-screen {
  display: none;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #0b1220 0%, #0f172a 55%, #101b31 100%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.splash-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  pointer-events: none;
}

.splash-glow-1 {
  top: -220px;
  left: -180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 65%);
  animation: splash-float 7s ease-in-out infinite alternate;
}

.splash-glow-2 {
  right: -200px;
  bottom: -240px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.45), transparent 65%);
  animation: splash-float 9s ease-in-out infinite alternate-reverse;
}

.splash-card {
  position: relative;
  width: min(100%, 440px);
  text-align: center;
  color: #e2e8f0;
}

.splash-logo {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.45);
  animation: splash-pop 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}

.splash-logo i {
  font-size: 44px;
  color: #fff;
}

.splash-logo::before,
.splash-logo::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  border: 2px solid rgba(96, 165, 250, 0.4);
  animation: splash-ring 2.6s ease-out infinite;
}

.splash-logo::after {
  animation-delay: 1.3s;
}

.splash-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: #fff;
}

.splash-school {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
}

.splash-sub {
  margin-top: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8291b2;
}

.splash-bar {
  position: relative;
  width: 210px;
  height: 4px;
  margin: 30px auto 16px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.splash-bar span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(96, 165, 250, 0) 0%,
    #60a5fa 42%,
    #22d3ee 58%,
    rgba(34, 211, 238, 0) 100%
  );
  background-size: 200% 100%;
  animation: splash-slide 1.25s linear infinite;
}

.splash-text {
  font-size: 0.82rem;
  color: #94a3b8;
  animation: splash-blink 1.8s ease-in-out infinite;
}

@keyframes splash-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splash-ring {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes splash-slide {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes splash-blink {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes splash-float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(40px, 30px, 0) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .splash-logo::before,
  .splash-logo::after,
  .splash-bar span,
  .splash-text,
  .splash-glow {
    animation: none;
  }
}
