/* ==========================================
   SWEETALERT2 DARK MODE OVERRIDES
   ========================================== */

/* Target SweetAlert container when dark mode is enabled */
[data-bs-theme="dark"] .swal2-popup {
    background-color: #212529 !important;
    color: #f8f9fa !important;
    border: 1px solid #343a40 !important;
}

/* Titles and content text */
[data-bs-theme="dark"] .swal2-title,
[data-bs-theme="dark"] .swal2-html-container,
[data-bs-theme="dark"] .swal2-content {
    color: #f8f9fa !important;
}

/* Modal Close / Cancel Buttons */
[data-bs-theme="dark"] .swal2-close {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .swal2-cancel {
    background-color: #495057 !important;
    color: #ffffff !important;
}

/* Inputs & Textareas inside Swal Popups */
[data-bs-theme="dark"] .swal2-input,
[data-bs-theme="dark"] .swal2-textarea,
[data-bs-theme="dark"] .swal2-select {
    background-color: #1a1d20 !important;
    color: #f8f9fa !important;
    border-color: #495057 !important;
}

/* Icons Adjustment for Dark Mode */
[data-bs-theme="dark"] .swal2-icon.swal2-question {
    border-color: #0dcaf0 !important;
    color: #0dcaf0 !important;
}

[data-bs-theme="dark"] .swal2-icon.swal2-success {
    border-color: #198754 !important;
}