/* ============================================================
   Professional SweetAlert2 Delete Confirmation Popup Styles
   Primary: #5DB2FF  |  Danger: #ef4444  |  Font: Poppins
   ============================================================ */

/* Backdrop */
.swal2-container.swal2-shown {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Popup card */
.swal2-popup {
    border-radius: 20px !important;
    padding: 44px 36px 36px !important;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18), 0 8px 24px rgba(15, 23, 42, 0.10) !important;
    font-family: 'Poppins', sans-serif !important;
    max-width: 420px !important;
    width: 92vw !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

/* Icon area */
.swal2-icon {
    margin: 0 auto 24px !important;
    width: 72px !important;
    height: 72px !important;
    border-width: 3px !important;
}

/* Warning icon */
.swal2-icon.swal2-warning {
    border-color: #fb923c !important;
    color: #fb923c !important;
}

/* Error icon */
.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}
.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #ef4444 !important;
}

/* Success icon */
.swal2-icon.swal2-success {
    border-color: #22c55e !important;
}
.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #22c55e !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(34, 197, 94, 0.25) !important;
}

/* Delete icon container (custom class added by shim) */
.swal2-popup.swal2-delete-popup .swal2-icon.swal2-warning {
    border-color: transparent !important;
    background: linear-gradient(135deg, #fff1f0, #ffe4e1) !important;
    width: 80px !important;
    height: 80px !important;
    position: relative !important;
}
.swal2-popup.swal2-delete-popup .swal2-icon.swal2-warning::before {
    content: '\f1f8' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-size: 32px !important;
    color: #ef4444 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    line-height: 1 !important;
}
.swal2-popup.swal2-delete-popup .swal2-icon.swal2-warning .swal2-icon-text {
    display: none !important;
}

/* Title */
.swal2-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
}

/* Content / text */
.swal2-content {
    font-size: 14px !important;
    color: #64748b !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    padding: 0 !important;
    margin: 0 0 4px !important;
}
#swal2-content {
    text-align: center !important;
}

/* Actions area */
.swal2-actions {
    margin: 28px auto 0 !important;
    gap: 12px !important;
    width: 100% !important;
    justify-content: center !important;
}

/* Shared button base */
.swal2-styled {
    border-radius: 10px !important;
    padding: 11px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0.2px !important;
    transition: all 0.2s ease !important;
    min-width: 120px !important;
    box-shadow: none !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
}

/* Confirm (Delete) button */
.swal2-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
}
.swal2-confirm:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45) !important;
    transform: translateY(-1px) !important;
}
.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3) !important;
}
.swal2-confirm:active {
    transform: translateY(0) !important;
}

/* Cancel button */
.swal2-cancel {
    background: #f8fafc !important;
    color: #475569 !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
}
.swal2-cancel:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
}
.swal2-cancel:focus {
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.2) !important;
}

/* Accept/Confirm (non-delete) popup - blue confirm button */
.swal2-popup.swal2-confirm-popup .swal2-confirm {
    background: linear-gradient(135deg, #5DB2FF 0%, #3a9ef7 100%) !important;
    box-shadow: 0 4px 14px rgba(93, 178, 255, 0.35) !important;
}
.swal2-popup.swal2-confirm-popup .swal2-confirm:hover {
    background: linear-gradient(135deg, #3a9ef7 0%, #2563eb 100%) !important;
    box-shadow: 0 6px 20px rgba(93, 178, 255, 0.45) !important;
}

/* Divider line above buttons (optional) */
.swal2-popup::after {
    display: none !important;
}

/* Footer */
.swal2-footer {
    border-top: 1px solid #f1f5f9 !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
    margin-top: 20px !important;
    padding-top: 16px !important;
}

/* Close button */
.swal2-close {
    color: #94a3b8 !important;
    font-size: 24px !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 50% !important;
    top: 14px !important;
    right: 14px !important;
    transition: all 0.2s !important;
}
.swal2-close:hover {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* Animation overrides */
.swal2-show {
    animation: swalSlideIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.swal2-hide {
    animation: swalFadeOut 0.18s ease-in forwards !important;
}

@keyframes swalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.82) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
@keyframes swalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.88);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .swal2-popup {
        padding: 32px 24px 28px !important;
        border-radius: 16px !important;
    }
    .swal2-actions {
        flex-direction: column-reverse !important;
        gap: 10px !important;
    }
    .swal2-styled {
        width: 100% !important;
        min-width: unset !important;
    }
}
