/**
 * NovaEpin SweetAlert2 Cyber Glassmorphic Theme
 * Stunning Animations, Ambient Glow, Frosted Glass & Neon Accents
 */

/* Global Container z-index */
.swal2-container {
  z-index: 999999 !important;
}

/* Modal Backdrop - Only applied to standard modal dialogs, NEVER to toasts */
body:not(.swal2-toast-shown) .swal2-container.swal2-backdrop-show,
body:not(.swal2-toast-shown) .swal2-container:not(.swal2-no-backdrop):not(.swal2-top-end):not(.swal2-top):not(.swal2-top-start):not(.swal2-bottom-end):not(.swal2-bottom-start):not(.swal2-bottom):not(.nova-toast-container) {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  background: rgba(2, 6, 18, 0.75) !important;
}

/* Toast Container - Completely transparent, non-blocking, NO blur / mosaic overlay */
body.swal2-toast-shown .swal2-container,
.swal2-container.swal2-backdrop-hide,
.swal2-container:has(.swal2-toast),
.swal2-container.swal2-top-end,
.swal2-container.swal2-top-start,
.swal2-container.swal2-bottom-end,
.swal2-container.swal2-bottom-start,
.swal2-container.swal2-top,
.swal2-container.swal2-bottom,
.swal2-container.swal2-no-backdrop,
.swal2-container.nova-toast-container {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
  background-color: transparent !important;
  pointer-events: none !important;
}

/* Modal Popup Window - Only for standard modal popups */
.nova-swal-popup,
body:not(.swal2-toast-shown) .swal2-popup:not(.swal2-toast) {
  background: linear-gradient(145deg, #0d1527 0%, #080d1a 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(14, 165, 233, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif !important;
  padding: 32px 28px !important;
  color: #f1f5f9 !important;
}

/* Title */
.nova-swal-title,
.swal2-title {
  font-family: 'Figtree', -apple-system, sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.45rem !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  margin-top: 14px !important;
  margin-bottom: 8px !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Description / Message Body */
.nova-swal-html,
.swal2-html-container {
  color: #94a3b8 !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  margin: 10px 0 24px 0 !important;
}

/* Custom Styled Buttons */
.nova-swal-actions,
.swal2-actions {
  gap: 12px !important;
  margin-top: 18px !important;
  width: 100% !important;
  justify-content: center !important;
}

.nova-swal-btn-confirm,
.swal2-confirm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #ffffff !important;
  padding: 11px 26px !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  font-family: 'Figtree', sans-serif !important;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.4) !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nova-swal-btn-confirm:hover,
.swal2-confirm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 26px rgba(14, 165, 233, 0.6) !important;
  border-color: rgba(56, 189, 248, 0.7) !important;
}

.nova-swal-btn-confirm:active,
.swal2-confirm:active {
  transform: translateY(0) !important;
}

.nova-swal-btn-cancel,
.swal2-cancel {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  padding: 11px 22px !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  font-family: 'Figtree', sans-serif !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.nova-swal-btn-cancel:hover,
.swal2-cancel:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.nova-swal-btn-cancel:active,
.swal2-cancel:active {
  transform: translateY(0) !important;
}

/* Icon Glows & Animations */
.swal2-icon {
  margin: 10px auto 16px auto !important;
  transform: scale(1.08) !important;
}

.swal2-icon.swal2-success {
  border-color: #10b981 !important;
  color: #10b981 !important;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.35) !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #10b981 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
  border: 4px solid rgba(16, 185, 129, 0.3) !important;
}

.swal2-icon.swal2-error {
  border-color: #f43f5e !important;
  color: #f43f5e !important;
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.35) !important;
}
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: #f43f5e !important;
}

.swal2-icon.swal2-warning {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.35) !important;
}

.swal2-icon.swal2-info {
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35) !important;
}

.swal2-icon.swal2-question {
  border-color: #c084fc !important;
  color: #c084fc !important;
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.35) !important;
}

/* Toast Mode Styling (Top-Right Micro Notifications) */
.nova-swal-toast,
.swal2-toast,
.swal2-popup.swal2-toast {
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.95) 0%, rgba(9, 14, 26, 0.98) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(14, 165, 233, 0.25) !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  color: #ffffff !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  pointer-events: auto !important;
}

body.swal2-toast-shown .swal2-toast,
.swal2-container .swal2-toast {
  pointer-events: auto !important;
}

.swal2-toast .swal2-title {
  font-family: 'Figtree', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-shadow: none !important;
}

.swal2-toast .swal2-icon {
  margin: 0 10px 0 0 !important;
  transform: scale(0.85) !important;
}

/* Progress Bar */
.swal2-timer-progress-bar {
  background: linear-gradient(90deg, #0ea5e9, #10b981) !important;
  height: 3px !important;
}
