:root {
    --core-swal-bg: #ffffff;
    --core-swal-border: #e4e7ec;
    --core-swal-text: #18181b;
    --core-swal-muted: #667085;
    --core-swal-cancel-bg: #f2f4f7;
    --core-swal-cancel-hover: #e4e7ec;
    --core-swal-cancel-text: #344054;
    --core-swal-overlay: rgba(15, 23, 42, .42);
    --core-swal-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

html.dark,
html[data-theme="dark"] {
    --core-swal-bg: #101827;
    --core-swal-border: rgba(102, 137, 201, .38);
    --core-swal-text: #f5f7fb;
    --core-swal-muted: #aeb7ca;
    --core-swal-cancel-bg: #1c2940;
    --core-swal-cancel-hover: #263754;
    --core-swal-cancel-text: #d9e0ed;
    --core-swal-overlay: rgba(1, 4, 12, .72);
    --core-swal-shadow: 0 28px 80px rgba(0, 0, 0, .55), 0 0 28px rgba(49, 132, 255, .1);
}

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: var(--core-swal-overlay) !important;
    backdrop-filter: blur(3px);
}

.swal2-popup {
    border: 1px solid var(--core-swal-border) !important;
    border-radius: 18px !important;
    background: var(--core-swal-bg) !important;
    color: var(--core-swal-text) !important;
    box-shadow: var(--core-swal-shadow) !important;
}

.swal2-title {
    color: var(--core-swal-text) !important;
    font-size: 1.35rem !important;
}

.swal2-html-container {
    color: var(--core-swal-muted) !important;
    font-size: .95rem !important;
}

.swal2-close {
    color: var(--core-swal-muted) !important;
    transition: color .16s ease, transform .16s ease !important;
}

.swal2-close:hover {
    color: var(--core-swal-text) !important;
    transform: rotate(4deg) scale(1.05);
}

.swal2-confirm {
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(100deg, #2f84ff 0%, #4059ff 48%, #7d2cf0 100%) !important;
    box-shadow: 0 8px 20px rgba(64, 89, 255, .22) !important;
    transition: transform .16s ease, box-shadow .16s ease !important;
}

.swal2-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(64, 89, 255, .32) !important;
}

.swal2-cancel {
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--core-swal-cancel-bg) !important;
    color: var(--core-swal-cancel-text) !important;
    transition: background .16s ease, transform .16s ease !important;
}

.swal2-cancel:hover {
    background: var(--core-swal-cancel-hover) !important;
    transform: translateY(-1px);
}

.swal2-actions button:focus,
.swal2-close:focus {
    box-shadow: none !important;
    outline: none !important;
}

.swal2-toast {
    border-radius: 12px !important;
    background: var(--core-swal-bg) !important;
    color: var(--core-swal-text) !important;
}

.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #3184ff, #7933f3) !important;
}

@media (prefers-reduced-motion: reduce) {
    .swal2-popup,
    .swal2-close,
    .swal2-confirm,
    .swal2-cancel {
        transition: none !important;
    }
}
