/* SMART LEARNING - tema utama */
:root {
  --blue: #2563EB; --sky: #38BDF8; --purple: #8B5CF6; --pink: #EC4899;
  --orange: #F59E0B; --green: #10B981; --bg: #F5F7FF; --navy: #172554;
  --sidebar-w: 268px; --sidebar-w-collapsed: 78px;
  --radius: 18px; --shadow: 0 10px 30px rgba(37, 99, 235, .10);
  --accent-1: var(--blue); --accent-2: var(--purple);
}
body.theme-admin  { --accent-1: #2563EB; --accent-2: #8B5CF6; }
body.theme-kepsek { --accent-1: #0EA5E9; --accent-2: #10B981; }
body.theme-guru   { --accent-1: #8B5CF6; --accent-2: #EC4899; }
body.theme-murid  { --accent-1: #38BDF8; --accent-2: #8B5CF6; }

* { -webkit-tap-highlight-color: transparent; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--bg); color: #1e293b; }
a { text-decoration: none; }
.glass { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.7); }

/* Loader */
#page-loader { position: fixed; inset: 0; background: var(--bg); z-index: 3000; display: flex; align-items: center; justify-content: center; transition: opacity .35s; }
#page-loader.done { opacity: 0; pointer-events: none; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid #dbe4ff; border-top-color: var(--accent-1); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Layout */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; transition: margin .25s; }
.app-content { padding: 1.5rem; flex: 1 0 auto; width: 100%; }
.app-footer { padding: 1.25rem 1.5rem; color: #64748b; font-size: .85rem; text-align: center; flex-shrink: 0; margin-top: auto; border-top: 1px solid rgba(37,99,235,.06); }
body.sidebar-collapsed .app-main { margin-left: var(--sidebar-w-collapsed); }

/* Sidebar */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: linear-gradient(180deg, var(--navy) 0%, #1e3a8a 100%); color: #cbd5e1; z-index: 1040; display: flex; flex-direction: column; transition: width .25s, transform .25s; overflow: hidden; box-shadow: 6px 0 30px rgba(23,37,84,.25); }
.sidebar::before { content: ''; position: absolute; width: 260px; height: 260px; top: -90px; right: -110px; background: radial-gradient(circle, var(--accent-2), transparent 70%); opacity: .35; pointer-events: none; }
.sidebar-brand { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.1rem; position: relative; }
.brand-logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 1.5rem; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); box-shadow: 0 8px 20px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.4); }
.brand-logo.sm { width: 42px; height: 42px; font-size: 1.15rem; border-radius: 13px; flex-shrink: 0; }
.brand-text strong { display: block; color: #fff; font-size: .95rem; letter-spacing: .5px; white-space: nowrap; }
.brand-text small { color: #93c5fd; white-space: nowrap; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .5rem .75rem; position: relative; }
.sidebar-nav::-webkit-scrollbar { width: 4px; } .sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }
.nav-link-item { display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem; border-radius: 13px; color: #cbd5e1; font-weight: 500; margin-bottom: 4px; transition: all .2s; cursor: pointer; white-space: nowrap; }
.nav-link-item i:first-child { width: 22px; text-align: center; font-size: 1.05rem; flex-shrink: 0; }
.nav-link-item:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateX(3px); }
.nav-link-item.active { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.35); }
.nav-link-item .caret { margin-left: auto; font-size: .7rem; transition: transform .2s; }
.nav-link-item[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-badge { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; font-size: .72rem; font-weight: 700; line-height: 1; border-radius: 9999px; background: #ef4444; color: #fff; box-shadow: 0 2px 6px rgba(239, 68, 68, .45); transition: all .2s; }
.nav-link-item.active .nav-badge { background: #fff; color: #dc2626; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.theme-guru .nav-badge { background: #10b981; color: #fff; box-shadow: 0 2px 6px rgba(16, 185, 129, .45); }
.theme-guru .nav-link-item.active .nav-badge { background: #fff; color: #059669; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.nav-sub-item { display: flex; align-items: center; justify-content: space-between; padding: .5rem .9rem .5rem 3.1rem; color: #aab8d0; border-radius: 10px; font-size: .92rem; white-space: nowrap; }
.nav-sub-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-sub-item.active { color: #fff; font-weight: 700; }
.sidebar-foot { padding: .75rem; border-top: 1px solid rgba(255,255,255,.1); }

body.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .sidebar .brand-text, body.sidebar-collapsed .sidebar .nav-link-item span,
body.sidebar-collapsed .sidebar .caret, body.sidebar-collapsed .sidebar .collapse { display: none !important; }
body.sidebar-collapsed .sidebar .nav-link-item { justify-content: center; padding: .8rem; }
body.sidebar-collapsed .sidebar-brand { justify-content: center; }
.sidebar-backdrop { display: none; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.5rem; margin: 0; border-bottom: 1px solid rgba(37,99,235,.08); }
.topbar-title { font-weight: 700; color: var(--navy); }
.topbar-search { flex: 1; max-width: 520px; position: relative; }
.topbar-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.topbar-search input { width: 100%; border: 1px solid #e2e8f0; border-radius: 14px; padding: .55rem 1rem .55rem 2.5rem; background: #fff; }
.topbar-search input:focus { outline: 2px solid rgba(37,99,235,.25); border-color: var(--blue); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 13px; border: 0; background: #fff; color: var(--navy); box-shadow: 0 4px 12px rgba(37,99,235,.08); transition: all .2s; }
.icon-btn:hover { transform: translateY(-2px); color: var(--accent-1); }
.icon-btn.sm { width: 34px; height: 34px; box-shadow: none; background: transparent; }
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--pink); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 99px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; }
.profile-btn { display: flex; align-items: center; gap: .6rem; background: #fff; border: 0; border-radius: 14px; padding: .3rem .8rem .3rem .3rem; box-shadow: 0 4px 12px rgba(37,99,235,.08); }
.profile-btn img { border-radius: 11px; object-fit: cover; }
.profile-btn strong { display: block; font-size: .85rem; line-height: 1.1; } .profile-btn small { color: #64748b; font-size: .72rem; }
.notif-menu { width: 360px; max-width: 92vw; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid #eef2ff; }
#notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: flex; gap: .7rem; padding: .75rem 1rem; color: inherit; border-bottom: 1px solid #f1f5f9; }
.notif-item:hover { background: #f8faff; }
.notif-item.unread { background: #eff4ff; }
.notif-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-1); margin-top: 6px; flex-shrink: 0; }
.notif-item.read .dot { background: #cbd5e1; }
.notif-foot { display: block; text-align: center; padding: .7rem; font-weight: 600; background: #f8faff; }
.notif-row { display: flex; align-items: center; border-bottom: 1px solid #f1f5f9; padding-right: .75rem; }
.notif-row.unread { background: #f3f6ff; }
.notif-row-link { flex: 1; display: flex; gap: .8rem; padding: .9rem 1.1rem; color: inherit; }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-1); margin-top: 6px; }
.notif-row:not(.unread) .notif-dot { background: #cbd5e1; }

/* Page header */
.page-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.page-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin: 0; }
.breadcrumb { font-size: .8rem; margin-bottom: .25rem; }
.pill { display: inline-flex; align-items: center; padding: .45rem .9rem; border-radius: 99px; background: #fff; color: var(--navy); font-weight: 600; font-size: .85rem; box-shadow: 0 4px 12px rgba(37,99,235,.08); }
.pill-warning { background: #fff7ed; color: #c2410c; }

/* Cards */
.card-glass { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(37,99,235,.06); height: auto; transition: transform .2s, box-shadow .2s; }
.card-glass:hover { box-shadow: 0 14px 36px rgba(37,99,235,.14); }
.card-glass-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid #eef2ff; }
.card-glass-head h2 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--navy); }
.card-glass-head h2 i { color: var(--accent-1); }
.card-glass-body { padding: 1.25rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.stat-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); color: #fff; position: relative; overflow: hidden; box-shadow: 0 12px 26px rgba(0,0,0,.12); transition: transform .25s; }
.stat-card::after { content: ''; position: absolute; width: 120px; height: 120px; right: -35px; top: -45px; border-radius: 50%; background: rgba(255,255,255,.18); }
.stat-card:hover { transform: translateY(-5px); color: #fff; }
.stat-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); flex-shrink: 0; }
.stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: .85rem; opacity: .92; } .stat-hint { font-size: .75rem; opacity: .8; }
.c-blue { background: linear-gradient(135deg, #2563EB, #38BDF8); } .c-purple { background: linear-gradient(135deg, #8B5CF6, #C084FC); }
.c-green { background: linear-gradient(135deg, #10B981, #34D399); } .c-orange { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.c-pink { background: linear-gradient(135deg, #EC4899, #F472B6); }
.chart-box { position: relative; height: 280px; }
.timeline-item { display: flex; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed #e8edf9; } .timeline-item:last-child { border-bottom: 0; }
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.timeline-dot.warn { background: var(--orange); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.progress-glossy { height: 12px; border-radius: 99px; background: #e8edf9; margin-top: .4rem; }
.progress-glossy .progress-bar { background: linear-gradient(90deg, var(--accent-1), var(--sky)); border-radius: 99px; }
.hero-card { display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem; border-radius: 24px; color: #fff; background: linear-gradient(120deg, var(--blue), var(--purple) 60%, var(--pink)); box-shadow: 0 18px 40px rgba(139,92,246,.35); position: relative; overflow: hidden; }
.hero-card::after { content: ''; position: absolute; width: 260px; height: 260px; right: -60px; top: -90px; border-radius: 50%; background: rgba(255,255,255,.14); }
.hero-card h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .25rem; }
.hero-avatar { width: 76px; height: 76px; border-radius: 22px; object-fit: cover; border: 3px solid rgba(255,255,255,.7); }

/* Empty + skeleton */
.empty-state { text-align: center; padding: 2rem 1rem; color: #64748b; }
.empty-icon { width: 76px; height: 76px; margin: 0 auto .8rem; border-radius: 24px; display: grid; place-items: center; font-size: 1.9rem; color: var(--accent-1); background: #eef2ff; }
.empty-state h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.skeleton { height: 14px; border-radius: 8px; margin-bottom: .7rem; background: linear-gradient(90deg, #eef2ff 25%, #f8faff 37%, #eef2ff 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Buttons & forms */
.btn-gradient { color: #fff; border: 0; border-radius: 14px; font-weight: 700; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); box-shadow: 0 10px 22px rgba(37,99,235,.28), inset 0 1px 0 rgba(255,255,255,.35); transition: all .2s; }
.btn-gradient:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(37,99,235,.35); }
.btn-gradient:disabled { opacity: .7; }
.form-control { border-radius: 13px; border-color: #e2e8f0; padding: .65rem .9rem; }
.form-select { border-radius: 13px; border-color: #e2e8f0; padding: .65rem 2.25rem .65rem .9rem; }
.form-select.form-select-sm { padding: .4rem 2rem .4rem .75rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent-1); box-shadow: 0 0 0 .22rem rgba(37,99,235,.15); }
.input-icon { position: relative; } .input-icon > i:first-child { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; z-index: 2; }
.input-icon .form-control { padding-left: 2.6rem; padding-right: 2.6rem; }
.eye-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #94a3b8; width: 36px; height: 36px; z-index: 2; }

/* Auth */
.auth-body { min-height: 100vh; display: grid; place-items: center; position: relative; overflow-x: hidden; background: linear-gradient(135deg, #e0e7ff 0%, #f5f3ff 50%, #fce7f3 100%); }
.auth-bg .blob { position: fixed; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 12s ease-in-out infinite; }
.blob.b1 { width: 380px; height: 380px; background: var(--sky); top: -90px; left: -90px; }
.blob.b2 { width: 340px; height: 340px; background: var(--purple); bottom: -90px; right: -60px; animation-delay: -4s; }
.blob.b3 { width: 260px; height: 260px; background: var(--pink); top: 45%; left: 55%; animation-delay: -8s; }
@keyframes float { 50% { transform: translate(30px, -30px) scale(1.08); } }
.auth-wrap { position: relative; z-index: 2; width: 100%; max-width: 460px; padding: 1rem; }
.auth-card { padding: 2rem; border-radius: 28px; box-shadow: 0 30px 70px rgba(37,99,235,.2); }
.auth-brand { text-align: center; margin-bottom: 1.4rem; }
.auth-brand .brand-logo { margin: 0 auto .8rem; width: 66px; height: 66px; font-size: 1.8rem; --accent-1: var(--blue); --accent-2: var(--purple); }
.auth-brand h1 { font-size: 1.25rem; font-weight: 800; letter-spacing: 1px; color: var(--navy); margin: 0; }
.auth-brand p { color: #64748b; margin: 0; font-size: .9rem; }
.auth-title { font-weight: 800; font-size: 1.3rem; color: var(--navy); } .auth-sub { color: #64748b; font-size: .92rem; }
.auth-foot { text-align: center; color: #64748b; font-size: .8rem; margin-top: 1rem; }
.auth-body .btn-gradient { --accent-1: var(--blue); --accent-2: var(--purple); }

/* Pagination */
.pagination { margin-bottom: 0; gap: 4px; }
.pagination svg { width: 1rem !important; height: 1rem !important; max-width: 1rem !important; max-height: 1rem !important; display: inline-block; vertical-align: middle; }
.pagination .page-link { border-radius: 10px !important; border: 1px solid #e2e8f0; color: #475569; font-weight: 600; padding: .45rem .85rem; font-size: .85rem; }
.pagination .page-link:hover { background: #eff6ff; color: var(--accent-1); border-color: var(--accent-1); }
.pagination .page-item.active .page-link { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); border-color: transparent; color: #fff; }
.pagination .page-item.disabled .page-link { background: #f8fafc; color: #cbd5e1; border-color: #f1f5f9; }

/* Mobile */
@media (max-width: 991.98px) {
  .app-main, body.sidebar-collapsed .app-main { margin-left: 0; }
  .sidebar, body.sidebar-collapsed .sidebar { width: var(--sidebar-w); transform: translateX(-100%); }
  body.sidebar-collapsed .sidebar .brand-text, body.sidebar-collapsed .sidebar .nav-link-item span, body.sidebar-collapsed .sidebar .caret { display: initial !important; }
  body.sidebar-collapsed .sidebar .nav-link-item { justify-content: flex-start; }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 1035; }
  .app-content { padding: 1rem; } .topbar { padding: .6rem 1rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .stat-card { padding: .85rem; gap: .7rem; } .stat-icon { width: 42px; height: 42px; font-size: 1.15rem; } .stat-value { font-size: 1.35rem; }
}
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } .hero-card { flex-direction: column; text-align: center; } }

/* ==========================================================================
   MODERN ALERTS & SWEETALERT2 STYLING
   ========================================================================== */

/* Modern In-Page Bootstrap Alerts */
.alert {
  border-radius: 16px !important;
  border-width: 1px !important;
  border-style: solid !important;
  font-size: .92rem;
  padding: .95rem 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .03);
  display: flex;
  align-items: center;
  gap: .85rem;
  transition: all .2s ease;
}
.alert-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(139, 92, 246, .08)) !important;
  border-color: rgba(37, 99, 235, .22) !important;
  color: #1e3a8a !important;
}
.alert-success {
  background: rgba(16, 185, 129, .08) !important;
  border-color: rgba(16, 185, 129, .22) !important;
  color: #065f46 !important;
}
.alert-warning {
  background: rgba(245, 158, 11, .09) !important;
  border-color: rgba(245, 158, 11, .25) !important;
  color: #92400e !important;
}
.alert-danger {
  background: rgba(239, 68, 68, .08) !important;
  border-color: rgba(239, 68, 68, .22) !important;
  color: #991b1b !important;
}
.alert-info {
  background: rgba(14, 165, 233, .08) !important;
  border-color: rgba(14, 165, 233, .22) !important;
  color: #075985 !important;
}
.alert-secondary {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

/* Modern SweetAlert2 Backdrop & Modal (Hanya untuk dialog modal konfirmasi, BUKAN toast) */
body:not(.swal2-toast-shown) .swal2-container.swal2-backdrop-show:not(:has(.swal2-toast)) {
  backdrop-filter: blur(8px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(160%) !important;
  background: rgba(15, 23, 42, .48) !important;
}

/* Pastikan container untuk toast pemberitahuan selalu transparan dan tidak menggelapkan layar */
body.swal2-toast-shown .swal2-container,
.swal2-container.swal2-top-end,
.swal2-container:has(.swal2-toast) {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
}

.swal2-popup:not(.swal2-toast) {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  border-radius: 26px !important;
  padding: 2.25rem 2rem 2rem !important;
  box-shadow: 0 30px 70px -15px rgba(15, 23, 42, .3), 0 0 0 1px rgba(226, 232, 240, .85) !important;
  border: none !important;
  background: #ffffff !important;
}
.swal2-popup.swal2-show:not(.swal2-toast) {
  animation: swalPopupScaleIn .24s cubic-bezier(.34, 1.56, .64, 1) !important;
}
.swal2-popup.swal2-hide:not(.swal2-toast) {
  animation: swalPopupScaleOut .15s ease-in forwards !important;
}
@keyframes swalPopupScaleIn {
  from { opacity: 0; transform: scale(.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes swalPopupScaleOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(.92) translateY(8px); }
}

/* Icons (Hanya untuk dialog modal) */
.swal2-popup:not(.swal2-toast) .swal2-icon {
  width: 4.6rem !important;
  height: 4.6rem !important;
  margin: 0 auto 1.35rem !important;
  border-width: 3px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.swal2-icon.swal2-warning {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
}
.swal2-icon.swal2-question {
  border-color: #2563eb !important;
  color: #2563eb !important;
}
.swal2-icon.swal2-error {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}
.swal2-icon.swal2-success {
  border-color: #10b981 !important;
  color: #10b981 !important;
}
.swal2-icon.swal2-info {
  border-color: #0ea5e9 !important;
  color: #0ea5e9 !important;
}

/* Title & Content (Hanya untuk dialog modal) */
.swal2-popup:not(.swal2-toast) .swal2-title,
.modern-swal-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  padding: 0 !important;
  margin-bottom: .6rem !important;
  letter-spacing: -.02em !important;
}
.swal2-popup:not(.swal2-toast) .swal2-html-container,
.modern-swal-text {
  font-size: .95rem !important;
  color: #475569 !important;
  line-height: 1.65 !important;
  margin: 0 0 1.85rem 0 !important;
}

/* Action Buttons (Hanya untuk dialog modal, jangan pernah paksa tampil jika disembunyikan) */
.swal2-popup:not(.swal2-toast) .swal2-actions {
  gap: .85rem;
  margin: 0;
  width: 100%;
}
.swal2-popup:not(.swal2-toast) .swal2-actions button {
  border-radius: 9999px !important;
  padding: .75rem 1.85rem !important;
  font-weight: 700 !important;
  font-size: .92rem !important;
  letter-spacing: .2px !important;
  transition: all .2s cubic-bezier(.4, 0, .2, 1) !important;
  outline: none !important;
  cursor: pointer !important;
}
.swal2-popup:not(.swal2-toast) .swal2-actions button:hover {
  transform: translateY(-2px);
}
.swal2-popup:not(.swal2-toast) .swal2-actions button:active {
  transform: translateY(0);
}
.swal2-confirm.swal2-confirm-primary {
  background: linear-gradient(135deg, var(--accent-1, #2563EB), var(--accent-2, #8B5CF6)) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .32), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
  border: none !important;
}
.swal2-confirm.swal2-confirm-primary:hover {
  box-shadow: 0 14px 28px rgba(37, 99, 235, .42) !important;
}
.swal2-confirm.swal2-confirm-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(239, 68, 68, .32), inset 0 1px 0 rgba(255, 255, 255, .3) !important;
  border: none !important;
}
.swal2-confirm.swal2-confirm-danger:hover {
  box-shadow: 0 14px 28px rgba(239, 68, 68, .42) !important;
}
.swal2-cancel.swal2-cancel-btn {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04) !important;
}
.swal2-cancel.swal2-cancel-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Modern SweetAlert2 Toasts (Pemberitahuan mengambang di pojok) */
.swal2-popup.swal2-toast {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  border-radius: 18px !important;
  padding: .85rem 1.25rem !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14), 0 0 0 1px rgba(226, 232, 240, .8) !important;
  background: #ffffff !important;
}
/* Pastikan tombol aksi TIDAK PERNAH muncul di toast notifikasi */
.swal2-popup.swal2-toast .swal2-actions {
  display: none !important;
}
.swal2-toast .swal2-title {
  font-size: .92rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
}
.swal2-toast .swal2-icon {
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  margin: 0 .75rem 0 0 !important;
  border-width: 2px !important;
  box-shadow: none !important;
}
.swal2-timer-progress-bar {
  background: linear-gradient(90deg, var(--accent-1, #2563EB), var(--accent-2, #8B5CF6)) !important;
  height: 4px !important;
  border-radius: 99px !important;
}
