/* =========================
   SWEETALERT2 — DARK GLASS (Global)
========================= */

:root {
  --x-bg: rgba(2, 6, 23, .72);
  --x-brd: rgba(148, 163, 184, .14);
  --x-txt: rgba(226, 232, 240, .96);
  --x-sub: rgba(226, 232, 240, .62);

  --x-primary: rgba(59, 130, 246, .95);
  --x-success: rgba(34, 197, 94, .95);
  --x-danger: rgba(239, 68, 68, .95);
  --x-warning: rgba(245, 158, 11, .95);
}

/* Backdrop blur */
.swal2-container {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Popup glass */
.swal2-popup {
  background: var(--x-bg) !important;
  color: var(--x-txt) !important;
  border: 1px solid var(--x-brd) !important;
  border-radius: 18px !important;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

/* Title & text */
.swal2-title {
  color: var(--x-txt) !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
}

.swal2-html-container,
.swal2-content {
  color: var(--x-sub) !important;
}

/* Icon base (circular glass) */
.swal2-icon {
  border-radius: 999px !important;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}

/* Success */
.swal2-icon.swal2-success {
  border-color: rgba(34, 197, 94, .55) !important;
}

.swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: rgba(34, 197, 94, .95) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(34, 197, 94, .28) !important;
}

/* Error */
.swal2-icon.swal2-error {
  border-color: rgba(239, 68, 68, .55) !important;
}

.swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  background-color: rgba(239, 68, 68, .95) !important;
}

/* Warning */
.swal2-icon.swal2-warning {
  border-color: rgba(245, 158, 11, .55) !important;
  color: rgba(245, 158, 11, .95) !important;
}

/* Info / Question */
.swal2-icon.swal2-info {
  border-color: rgba(59, 130, 246, .55) !important;
  color: rgba(59, 130, 246, .95) !important;
}

.swal2-icon.swal2-question {
  border-color: rgba(148, 163, 184, .45) !important;
  color: rgba(226, 232, 240, .9) !important;
}

/* Buttons layout */
.swal2-actions {
  gap: 10px !important;
}

/* Buttons = glass pills */
.swal2-styled {
  border-radius: 14px !important;
  padding: 10px 14px !important;
  font-weight: 800 !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  background: rgba(15, 23, 42, .35) !important;
  color: var(--x-txt) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 10px 20px rgba(0, 0, 0, .25) !important;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.swal2-styled:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, .25) !important;
  background: rgba(15, 23, 42, .48) !important;
}

.swal2-styled:active {
  transform: translateY(0px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

/* Confirm button variants by class */
.swal2-confirm.swal2-styled {
  background: rgba(59, 130, 246, .28) !important;
  border-color: rgba(59, 130, 246, .40) !important;
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, .12),
    0 16px 28px rgba(0, 0, 0, .28) !important;
}

.swal2-confirm.swal2-styled:hover {
  background: rgba(59, 130, 246, .36) !important;
}

/* Cancel subtle */
.swal2-cancel.swal2-styled {
  background: rgba(148, 163, 184, .12) !important;
  border-color: rgba(148, 163, 184, .18) !important;
  color: rgba(226, 232, 240, .85) !important;
}

/* Input inside alert (si lo usas) */
.swal2-input,
.swal2-textarea,
.swal2-select {
  background: rgba(15, 23, 42, .38) !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  color: var(--x-txt) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
  border-color: rgba(96, 165, 250, .75) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .18) !important;
}

/* Loading */
.swal2-loader {
  border-color: rgba(59, 130, 246, .25) rgba(59, 130, 246, .25) rgba(59, 130, 246, .25) rgba(59, 130, 246, .95) !important;
}


/* =========================
   SWEETALERT2 — DARK GLASS THEME
========================= */
.swal2-container {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.swal2-popup {
  background: rgba(10, 16, 30, .78) !important;
  color: rgba(226, 232, 240, .96) !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 22px !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

.swal2-title {
  color: rgba(226, 232, 240, .98) !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
}

.swal2-html-container {
  color: rgba(226, 232, 240, .72) !important;
}

.swal2-close {
  color: rgba(226, 232, 240, .75) !important;
}

.swal2-close:hover {
  color: rgba(226, 232, 240, .95) !important;
}

/* inputs dentro del swal */
.swal2-input,
.swal2-textarea,
.swal2-select {
  background: rgba(15, 23, 42, .45) !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  color: rgba(226, 232, 240, .95) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

/* botones base */
.swal2-actions {
  gap: 10px;
}

.swal2-styled {
  border-radius: 14px !important;
  padding: 10px 16px !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
}

.swal2-styled:active {
  transform: translateY(1px) scale(.99);
}

/* Confirm / Cancel (glass con colores bootstrap-like) */
.swal2-confirm {
  background: rgba(37, 99, 235, .22) !important;
  border: 1px solid rgba(96, 165, 250, .45) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .20) !important;
}

.swal2-confirm:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .28) !important;
}

.swal2-cancel {
  background: rgba(148, 163, 184, .10) !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  color: rgba(226, 232, 240, .90) !important;
}

.swal2-cancel:hover {
  background: rgba(148, 163, 184, .16) !important;
}

/* icon ring más fino y elegante */
.swal2-icon {
  transform: scale(.95);
}

.swal2-icon.swal2-warning {
  border-color: rgba(251, 191, 36, .85) !important;
  color: rgba(251, 191, 36, .95) !important;
}

.swal2-icon.swal2-success {
  border-color: rgba(34, 197, 94, .75) !important;
  color: rgba(34, 197, 94, .95) !important;
}

.swal2-icon.swal2-error {
  border-color: rgba(239, 68, 68, .75) !important;
  color: rgba(239, 68, 68, .95) !important;
}