/* SweetAlert2 — style Ordyra (CSS seul, sans wrap JS) */
.swal2-container {
    z-index: 20000 !important;
    pointer-events: auto !important;
    backdrop-filter: blur(4px);
    background: rgba(15, 23, 42, 0.42) !important;
}
.swal2-container.swal2-backdrop-show {
    pointer-events: auto !important;
}

.swal2-popup {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    padding: 1.45rem 1.3rem 1.2rem !important;
    border-radius: 18px !important;
    max-width: min(420px, 92vw) !important;
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    box-shadow:
        0 24px 60px rgba(4, 76, 149, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
    overflow: hidden;
    position: relative;
    z-index: 1;
    pointer-events: auto !important;
    animation: authSwalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.swal2-popup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06abe2, #044c95, #f9c000);
    pointer-events: none !important;
    z-index: 0;
}

@keyframes authSwalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.swal2-title {
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    margin: 0.4rem 0 0.5rem !important;
    padding: 0 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    line-height: 1.35 !important;
    position: relative;
    z-index: 1;
}

.swal2-html-container {
    font-size: 0.875rem !important;
    margin: 0 0 0.35rem !important;
    padding: 0 !important;
    color: #475569 !important;
    line-height: 1.55 !important;
    position: relative;
    z-index: 1;
}

.swal2-actions {
    gap: 0.55rem !important;
    margin-top: 1.15rem !important;
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
}

.swal2-styled {
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.86rem !important;
    padding: 0.62rem 1.25rem !important;
    box-shadow: none !important;
    transition: filter 0.15s, transform 0.12s, box-shadow 0.15s !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 6;
}
.swal2-styled:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
.swal2-styled:active {
    transform: translateY(0);
}

.swal2-confirm {
    background: linear-gradient(135deg, #06abe2 0%, #044c95 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(6, 171, 226, 0.35) !important;
}
.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(6, 171, 226, 0.28) !important;
}

.swal2-cancel {
    background: #f1f5f9 !important;
    color: #334155 !important;
}
.swal2-deny {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.swal2-close {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 7 !important;
}

.swal2-icon {
    margin: 0.15rem auto 0.4rem !important;
    transform: scale(0.92);
    position: relative;
    z-index: 1;
    pointer-events: none;
}
.swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}
.swal2-icon.swal2-error {
    border-color: #f43f5e !important;
    color: #f43f5e !important;
}
.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}
.swal2-icon.swal2-info {
    border-color: #06abe2 !important;
    color: #06abe2 !important;
}
.swal2-icon.swal2-question {
    border-color: #044c95 !important;
    color: #044c95 !important;
}

.swal2-popup.swal2-toast {
    padding: 0.75rem 0.9rem !important;
    border-radius: 12px !important;
}
.swal2-popup.swal2-toast::before {
    height: 100%;
    width: 4px;
    right: auto;
}

@media (prefers-reduced-motion: reduce) {
    .swal2-popup {
        animation: none;
    }
}
