/* =========================
   SWEETALERT MODERN THEME
========================= */
.swal-modern-popup {
  border-radius: 28px !important;
  padding: 28px 26px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22) !important;
  backdrop-filter: blur(18px) !important;
}

.swal-modern-title {
  padding: 0 !important;
  margin: 10px 0 8px !important;
  font-size: 23px !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  letter-spacing: -0.3px !important;
}

.swal-modern-text {
  margin: 0 !important;
  padding: 0 !important;
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.swal-modern-icon {
  margin-top: 10px !important;
  margin-bottom: 12px !important;
}

/* SUCCESS */
.swal2-icon.swal2-success {
  border-color: #14b8a6 !important;
  color: #14b8a6 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #14b8a6 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(20, 184, 166, 0.28) !important;
}

/* WARNING */
.swal2-icon.swal2-warning {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
}

/* ERROR */
.swal2-icon.swal2-error {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: #ef4444 !important;
}

/* QUESTION */
.swal2-icon.swal2-question {
  border-color: #2563eb !important;
  color: #2563eb !important;
}

/* INFO */
.swal2-icon.swal2-info {
  border-color: #2563eb !important;
  color: #2563eb !important;
}

/* BUTTON */
.swal-modern-confirm,
.swal-modern-cancel,
.swal-modern-danger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 42px !important;
  padding: 11px 18px !important;
  border: none !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: 0.25s ease !important;
  margin: 5px !important;
  box-shadow: none !important;
  outline: none !important;
}

/* BUTTON CONFIRM */
.swal-modern-confirm {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #14b8a6) !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24) !important;
}

/* BUTTON DELETE / DANGER */
.swal-modern-danger {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef4444, #e11d48) !important;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.24) !important;
}

/* BUTTON CANCEL */
.swal-modern-cancel {
  color: #475569 !important;
  background: #f1f5f9 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

.swal-modern-confirm:hover,
.swal-modern-danger:hover,
.swal-modern-cancel:hover {
  transform: translateY(-2px) !important;
}

.swal-modern-confirm:focus,
.swal-modern-danger:focus,
.swal-modern-cancel:focus {
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14) !important;
}

/* DESKRIPSI CUSTOM DI DALAM ALERT */
.swal-desc {
  margin: 0 auto 12px !important;
  max-width: 340px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* LOADING */
.swal2-loader {
  border-color: #14b8a6 transparent #14b8a6 transparent !important;
}

/* BACKDROP */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
  background: rgba(15, 23, 42, 0.42) !important;
  backdrop-filter: blur(4px);
}

/* =========================
   RESPONSIVE SWEETALERT
========================= */
@media (max-width: 576px) {
  .swal-modern-popup {
    width: calc(100% - 28px) !important;
    padding: 24px 18px !important;
    border-radius: 22px !important;
  }

  .swal-modern-title {
    font-size: 20px !important;
  }

  .swal-modern-text,
  .swal-desc {
    font-size: 13px !important;
  }

  .swal-modern-confirm,
  .swal-modern-cancel,
  .swal-modern-danger {
    width: 100% !important;
    margin: 5px 0 !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }

  .swal2-actions {
    width: 100% !important;
    padding: 0 4px !important;
  }
}