/* =========================================================
   CSU e-DAS - Institutional SweetAlert2 Premium Theme
   Institutional Color Palette: CSU Maroon (#800000, #5a0000) & Amber Gold (#f59e0b)
   ========================================================= */

/* Backdrop & Cinematic Blur */
.swal2-container {
  z-index: 99999 !important;
  backdrop-filter: blur(8px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(130%) !important;
  background-color: rgba(15, 23, 42, 0.55) !important;
  transition: opacity 0.25s ease-out !important;
}

/* Modal Card Structure */
.swal2-popup {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  border-radius: 20px !important;
  padding: 2.2rem 2rem 1.85rem !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
  width: 26rem !important;
  max-width: 90vw !important;
}

/* Smooth Entrance / Exit Animation */
.swal2-show {
  animation: swal2-csu-show 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.swal2-hide {
  animation: swal2-csu-hide 0.22s cubic-bezier(0.7, 0, 0.84, 0) forwards !important;
}

@keyframes swal2-csu-show {
  0% {
    transform: scale(0.9) translateY(-15px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes swal2-csu-hide {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(0.92) translateY(10px);
    opacity: 0;
  }
}

/* Dialog Header & Title */
.swal2-title {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  margin: 0.35rem 0 0.5rem 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

/* Body Text / Description */
.swal2-html-container {
  font-size: 0.935rem !important;
  line-height: 1.55 !important;
  color: #475569 !important;
  margin: 0.4rem 0 1.25rem 0 !important;
  padding: 0 !important;
  font-weight: 400 !important;
}

/* Actions Wrapper */
.swal2-actions {
  margin: 1.35rem 0 0 0 !important;
  gap: 0.75rem !important;
  width: 100% !important;
  justify-content: center !important;
}

/* Base Button Styles */
.swal2-styled {
  font-family: inherit !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 0.625rem 1.6rem !important;
  margin: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

/* CSU Maroon Confirm Button */
.swal2-styled.swal2-confirm {
  background: linear-gradient(135deg, #800000 0%, #5a0000 100%) !important;
  border: 1px solid #6b0000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.28) !important;
  min-width: 110px !important;
}

.swal2-styled.swal2-confirm:hover {
  background: linear-gradient(135deg, #990000 0%, #6b0000 100%) !important;
  box-shadow: 0 6px 18px rgba(128, 0, 0, 0.38) !important;
  transform: translateY(-1.5px) !important;
}

.swal2-styled.swal2-confirm:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(128, 0, 0, 0.25) !important;
}

.swal2-styled.swal2-confirm:focus {
  box-shadow: 0 0 0 3.5px rgba(128, 0, 0, 0.25) !important;
  outline: none !important;
}

/* Cancel / Neutral Button */
.swal2-styled.swal2-cancel {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  min-width: 100px !important;
}

.swal2-styled.swal2-cancel:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.swal2-styled.swal2-cancel:active {
  transform: translateY(0) !important;
}

.swal2-styled.swal2-cancel:focus {
  box-shadow: 0 0 0 3.5px rgba(148, 163, 184, 0.25) !important;
  outline: none !important;
}

/* Deny / Danger Button */
.swal2-styled.swal2-deny {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border: 1px solid #b91c1c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25) !important;
  min-width: 100px !important;
}

.swal2-styled.swal2-deny:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35) !important;
  transform: translateY(-1.5px) !important;
}

/* Circular Frosted Close Button */
.swal2-close {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  font-size: 1.25rem !important;
  top: 14px !important;
  right: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.swal2-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  transform: rotate(90deg) scale(1.08) !important;
}

/* =========================================================
   Custom Icon Styling & Ambient Glow
   ========================================================= */
.swal2-icon {
  margin: 0.5rem auto 1rem !important;
  border-width: 3.5px !important;
  transform: scale(0.95);
  box-sizing: border-box !important;
}

/* Success: Emerald */
.swal2-icon.swal2-success {
  border-color: #10b981 !important;
  color: #10b981 !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.18) !important;
}

.swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: #10b981 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Warning: CSU Amber Gold */
.swal2-icon.swal2-warning {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.2) !important;
}

.swal2-icon.swal2-warning .swal2-icon-content {
  color: #f59e0b !important;
  font-weight: 700 !important;
}

/* Error: Crimson Rose */
.swal2-icon.swal2-error {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.2) !important;
}

.swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  background-color: #ef4444 !important;
}

/* Info: Institutional CSU Maroon */
.swal2-icon.swal2-info {
  border-color: #800000 !important;
  color: #800000 !important;
  box-shadow: 0 0 25px rgba(128, 0, 0, 0.18) !important;
}

.swal2-icon.swal2-info .swal2-icon-content {
  color: #800000 !important;
  font-weight: 700 !important;
}

/* Question: Indigo */
.swal2-icon.swal2-question {
  border-color: #6366f1 !important;
  color: #6366f1 !important;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.18) !important;
}

.swal2-icon.swal2-question .swal2-icon-content {
  color: #6366f1 !important;
  font-weight: 700 !important;
}

/* =========================================================
   Timer Progress Bar (CSU Maroon to Amber Gradient)
   ========================================================= */
.swal2-timer-progress-bar {
  background: linear-gradient(90deg, #800000 0%, #f59e0b 100%) !important;
  height: 4px !important;
  border-radius: 0 0 20px 20px !important;
}

/* =========================================================
   Toast Notification Styling
   ========================================================= */
.swal2-popup.swal2-toast {
  border-radius: 14px !important;
  padding: 0.75rem 1.15rem !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
  width: auto !important;
  max-width: 360px !important;
}

.swal2-popup.swal2-toast .swal2-title {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  color: #1e293b !important;
}

.swal2-popup.swal2-toast .swal2-icon {
  margin: 0 0.6rem 0 0 !important;
  transform: scale(0.7) !important;
}
