/* Global dark overrides (loaded for all pages; selectors gated by body.dark or custom classes) */

/* SweetAlert2 popup in dark theme */
body.dark .swal2-popup,
.swal2-dark { /* also allow explicit customClass popup */
  background:#0b1220 !important;
  color:#e2e8f0 !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:12px !important;
}
body.dark .swal2-title,
.swal2-dark .swal2-title { color:#e2e8f0 !important; }
body.dark .swal2-html-container,
.swal2-dark .swal2-html-container { color:#94a3b8 !important; }
body.dark .swal2-styled:focus,
.swal2-dark .swal2-styled:focus { box-shadow:none !important; }
body.dark .swal2-styled.swal2-confirm,
.swal2-dark .swal2-styled.swal2-confirm { background:#e7515a !important; color:#fff !important; }
body.dark .swal2-styled.swal2-confirm:hover,
.swal2-dark .swal2-styled.swal2-confirm:hover { filter: brightness(1.05); }
body.dark .swal2-styled.swal2-cancel,
.swal2-dark .swal2-styled.swal2-cancel { background:#475569 !important; color:#fff !important; }
body.dark .swal2-styled.swal2-cancel:hover,
.swal2-dark .swal2-styled.swal2-cancel:hover { filter: brightness(1.05); }

/* Ensure container above modals/drawers */
.swal2-container { z-index: 1080; }

/* Optional: Snackbar minor tune for dark bg contrast of actionless toasts (colors set in JS) */
body.dark .snackbar-container { box-shadow: 0 8px 24px rgba(0,0,0,.45); border-radius: 10px; }




