/* SweetAlert2 bergaya alert iOS */
.swal2-container.ios-alert-container {
  background: rgba(0, 0, 0, .22) !important;
}

.swal2-popup.ios-alert-popup {
  width: min(250px, calc(100vw - 56px));
  padding: 18px 0 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(250, 250, 252, .9);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: .5px solid rgba(255, 255, 255, .5);
  color: #1c1c1e;
  font-family: inherit;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
}

/* Ikon: lingkaran berisi, tanpa animasi bawaan (agar tembus pandang tetap bersih) */
.swal2-popup.ios-alert-popup .swal2-icon.ios-icon {
  width: 38px;
  height: 38px;
  min-height: 0;
  margin: 0 auto 8px;
  border: 0;
  animation: none;
}
.ios-icon svg { display: block; width: 38px; height: 38px; }

.swal2-popup.ios-alert-popup .ios-alert-title {
  margin: 0;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.2px;
  color: #1c1c1e;
}
.swal2-popup.ios-alert-popup .ios-alert-text {
  margin: 3px 14px 16px;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: #3a3a3c;
}

.swal2-popup.ios-alert-popup .ios-alert-actions {
  width: 100%;
  margin: 0 !important;
  padding: 0;
  flex-wrap: nowrap;
  border-top: .5px solid rgba(60, 60, 67, .3);
}
.swal2-popup.ios-alert-popup .ios-alert-btn {
  flex: 1;
  height: 40px;
  margin: 0 !important;
  border: 0;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #007aff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.swal2-popup.ios-alert-popup .ios-alert-btn:hover, .swal2-popup.ios-alert-popup .ios-alert-btn:active { background: rgba(0, 0, 0, .05) !important; }
.swal2-popup.ios-alert-popup .ios-alert-btn:focus, .swal2-popup.ios-alert-popup .ios-alert-btn:focus-visible { outline: 0; box-shadow: none !important; background: rgba(0, 122, 255, .08) !important; }

.swal2-popup.ios-alert-popup.swal2-show { animation: ios-alert-in .22s cubic-bezier(.2, .9, .3, 1.2) both; }
.swal2-popup.ios-alert-popup.swal2-hide { animation: ios-alert-out .15s ease-in both; }
@keyframes ios-alert-in { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
@keyframes ios-alert-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.94); } }

@media (prefers-reduced-motion: reduce) { .swal2-popup.ios-alert-popup.swal2-show, .swal2-popup.ios-alert-popup.swal2-hide { animation: none; } }

/* Loading */
.swal2-popup.ios-alert-popup.ios-alert-loading { padding: 18px 0 16px; }
.swal2-popup.ios-alert-popup.ios-alert-loading .swal2-icon { width: 30px; height: 30px; margin: 0 auto 8px; }
.swal2-popup.ios-alert-popup.ios-alert-loading .ios-icon svg { width: 30px; height: 30px; }
.swal2-popup.ios-alert-popup.ios-alert-loading .ios-alert-title { padding-top: 0; font-weight: 500; font-size: 14px; color: #3a3a3c; }
.swal2-popup.ios-alert-popup.ios-alert-loading .swal2-html-container,
.swal2-popup.ios-alert-popup.ios-alert-loading .swal2-actions { display: none; }

/* Spinner: pertahankan gaya cincin abu-abu walau CSS tema aplikasi menimpa .swal2-loader */
.swal2-popup.ios-alert-popup .swal2-loader {
  box-sizing: border-box !important;
  width: 26px !important;
  height: 26px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 3px solid #8e8e93 !important;
  border-color: #8e8e93 transparent #8e8e93 transparent !important;
  border-radius: 50% !important;
  animation: swal2-rotate-loading 1.2s linear infinite normal !important;
}
.swal2-popup.ios-alert-popup .swal2-loader::before,
.swal2-popup.ios-alert-popup .swal2-loader::after { display: none !important; }

/* Konfirmasi dua tombol */
.swal2-popup.ios-alert-popup .ios-alert-btn-cancel { font-weight: 400; }
.swal2-popup.ios-alert-popup .ios-alert-btn + .ios-alert-btn { border-left: .5px solid rgba(60, 60, 67, .3); }
.swal2-popup.ios-alert-popup .ios-alert-btn-danger { color: #ff3b30; }
.swal2-popup.ios-alert-popup.ios-alert-confirm { padding-top: 20px; }
