html, body { margin: 0; background: #eaeef4; }
html[data-theme="dark"], html[data-theme="dark"] body { background: #0f172a; }

.pre-loader {
	background: #fff;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 12345;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	font-family: Inter, "Open Sans", Arial, sans-serif;
	color: #1e2a4a;
}
html[data-theme="dark"] .pre-loader { background: #0f172a; color: #e2e8f0; }
.pre-loader .loader-logo { padding-bottom: 15px; text-align: center; }
.pre-loader .loader-progress { height: 8px; border-radius: 15px; max-width: 200px; width: 200px; margin: 0 auto; display: block; background: #ecf0f4; overflow: hidden; }
.pre-loader .bar { width: 0%; height: 8px; display: block; background: #1b00ff; transition: width .2s ease-out; }
.pre-loader .percent { text-align: center; font-size: 24px; }
.pre-loader .loading-text { text-align: center; font-size: 18px; font-weight: 500; padding-top: 15px; }
.pre-loader .az-pemuat-galat { display: none; max-width: 320px; margin: 14px auto 0; padding: 12px 14px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: 14px; text-align: center; }
.pre-loader .az-pemuat-galat button { margin-top: 10px; padding: 6px 16px; border: 0; border-radius: 99px; background: #3a57e8; color: #fff; font-weight: 600; cursor: pointer; }
.pre-loader.az-pemuat-gagal .az-pemuat-galat { display: block; }
.swal2-container { z-index: 20000 !important; }

.az-muat-halaman { position: fixed; top: 0; left: 0; width: 100%; height: 100%; margin: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; background: #eaeef4; font-family: Inter, "Open Sans", Arial, sans-serif; animation: az-muat-masuk .25s ease-out both; }
.az-muat-kotak { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: auto; padding: 32px 40px; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(30, 41, 79, .12); }
.az-muat-logo { position: relative; width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; }
.az-muat-logo img { position: relative; border-radius: 14px; animation: az-muat-denyut 1.6s ease-in-out infinite; }
.az-muat-cincin { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(58, 87, 232, .15); border-top-color: #3a57e8; animation: az-muat-putar .9s linear infinite; }
.az-muat-judul { margin-top: 6px; font-size: 17px; font-weight: 700; color: #1e2a4a; letter-spacing: .01em; }
.az-muat-teks { font-size: 13.5px; color: #6b7590; }
.az-muat-titik i { display: inline-block; width: 4px; height: 4px; margin-left: 3px; border-radius: 50%; background: currentColor; animation: az-muat-titik 1.2s ease-in-out infinite; }
.az-muat-titik i:nth-child(2) { animation-delay: .15s; }
.az-muat-titik i:nth-child(3) { animation-delay: .3s; }
.az-muat-garis { width: 160px; height: 4px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: rgba(58, 87, 232, .12); }
.az-muat-garis span { display: block; width: 40%; height: 100%; border-radius: 99px; background: #3a57e8; animation: az-muat-geser 1.3s ease-in-out infinite; }
html[data-theme="dark"] .az-muat-halaman { background: #0f172a; }
html[data-theme="dark"] .az-muat-kotak { background: #1e293b; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .az-muat-judul { color: #e2e8f0; }
html[data-theme="dark"] .az-muat-teks { color: #94a3b8; }
html[data-theme="dark"] .az-muat-logo img { background: #fff; padding: 4px; box-sizing: border-box; }
@keyframes az-muat-putar { to { transform: rotate(360deg); } }
@keyframes az-muat-denyut { 0%, 100% { transform: scale(1); } 50% { transform: scale(.94); } }
@keyframes az-muat-titik { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes az-muat-geser { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes az-muat-masuk { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .az-muat-halaman, .az-muat-halaman * { animation: none !important; } }
