/* ========== MODERN SWEETALERT — light theme (loads LAST) =============== */

/* Override styles.css dark theme (.swal2-popup { background: #2d3748 }) */
html body .swal2-container .swal2-popup,
html body div.swal2-popup.swal2-modal,
.swal2-popup,
.swal2-modal {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-radius: 1.25rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.16) !important;
    padding: 1.85rem 1.6rem 1.5rem !important;
}

html body .swal2-title,
.swal2-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 1.35rem !important;
}

html body .swal2-html-container,
.swal2-html-container {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
}

html body .swal2-html-container *,
.swal2-html-container * {
    color: #334155 !important;
}

.swal2-input-label,
label.swal2-input-label {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 600 !important;
}

.swal2-icon.swal2-question {
    border-color: #93c5fd !important;
    color: #2563eb !important;
}
.swal2-icon.swal2-question .swal2-icon-content {
    color: #2563eb !important;
}

.swal2-actions {
    gap: 0.75rem !important;
    margin-top: 1.25rem !important;
}

html body .swal2-confirm,
.swal2-confirm {
    background: #2563eb !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: none !important;
    border-radius: 0.65rem !important;
    padding: 0.7rem 1.35rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

html body .swal2-cancel,
.swal2-cancel {
    background: #ffffff !important;
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 0.65rem !important;
    padding: 0.7rem 1.35rem !important;
    font-weight: 600 !important;
}

html body .swal2-input,
html body .swal2-textarea,
html body .swal2-select,
.swal2-input,
.swal2-textarea,
.swal2-select {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    border-radius: 0.65rem !important;
    box-shadow: none !important;
    min-height: 44px !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.swal2-input::placeholder {
    color: #94a3b8 !important;
}

.swal2-validation-message {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

/* Kill any dark-mode media query leftovers from styles.css */
@media (prefers-color-scheme: dark) {
    html body .swal2-container .swal2-popup,
    .swal2-popup {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #0f172a !important;
    }
    .swal2-title { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; }
    .swal2-html-container { color: #334155 !important; }
    .swal2-input { background: #fff !important; color: #0f172a !important; }
}
