/* Styles SweetAlert2 - Version améliorée */

.swal2-popup {
    border-radius: 16px !important;
    padding: 2.5rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.swal2-title {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.3 !important;
}

.swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
}

    .swal2-html-container .alert {
        border-radius: 10px !important;
        padding: 1rem 1.25rem !important;
        margin-bottom: 1.75rem !important;
        border-left: 4px solid #f59e0b !important;
        /*background: linear-gradient(to right, #fef3c7, #fef9e7) !important;*/
    }

    .swal2-html-container .form-label {
        font-weight: 600 !important;
        color: #374151 !important;
        margin-bottom: 0.75rem !important;
        font-size: 0.95rem !important;
    }

    .swal2-html-container .form-select,
    .swal2-html-container .form-control {
        border-radius: 8px !important;
        border: 2px solid #e5e7eb !important;
        padding: 0.625rem 1rem !important;
        font-size: 0.95rem !important;
        transition: all 0.2s ease !important;
        background-color: #f9fafb !important;
    }

        .swal2-html-container .form-select:focus,
        .swal2-html-container .form-control:focus {
            border-color: #3b82f6 !important;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
            outline: 0 !important;
            background-color: #ffffff !important;
        }

        .swal2-html-container .form-select:hover,
        .swal2-html-container .form-control:hover {
            border-color: #d1d5db !important;
        }

.swal2-actions {
    gap: 1rem !important;
    margin-top: 2rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.swal2-confirm,
.swal2-cancel {
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 160px !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

    .swal2-confirm:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4) !important;
        background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    }

.swal2-cancel {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: white !important;
}

    .swal2-cancel:hover {
        background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4) !important;
    }

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

/* Animation entrée */
.swal2-popup.swal2-show {
    animation: swal2-show 0.3s ease-out !important;
}

@keyframes swal2-show {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .swal2-popup {
        width: 92% !important;
        padding: 1.75rem !important;
    }

    .swal2-title {
        font-size: 1.35rem !important;
    }

    .swal2-actions {
        flex-direction: column !important;
    }

    .swal2-confirm,
    .swal2-cancel {
        width: 100% !important;
    }
}
