/**
 * Styles pour les modals de confirmation d'actions destructives
 * Design moderne avec backdrop blur et animations
 */

/* Backdrop avec blur */
.swal2-backdrop-show {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.4) !important;
}

/* Container de la modal */
.confirmation-modal-container {
    z-index: 9999;
}

/* Modal de confirmation */
.confirmation-modal {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    padding: 0;
    overflow: hidden;
}

/* Header de la modal */
.confirmation-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.confirmation-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

/* Body de la modal */
.confirmation-modal-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

/* Icônes de confirmation */
.confirmation-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    animation: pulse 2s ease-in-out infinite;
}

.confirmation-icon-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.confirmation-icon-warning {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.confirmation-icon-info {
    background-color: rgba(48, 133, 214, 0.1);
    color: #3085d6;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Message de confirmation */
.confirmation-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1rem;
}

/* Détails supplémentaires */
.confirmation-details {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    text-align: left;
    font-size: 0.95rem;
    color: #6c757d;
}

/* Types de modals */
.confirmation-modal-danger {
    border-top: 4px solid #dc3545;
}

.confirmation-modal-danger .confirmation-modal-header {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, #ffffff 100%);
}

.confirmation-modal-warning {
    border-top: 4px solid #ff9800;
}

.confirmation-modal-warning .confirmation-modal-header {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, #ffffff 100%);
}

.confirmation-modal-info {
    border-top: 4px solid #3085d6;
}

.confirmation-modal-info .confirmation-modal-header {
    background: linear-gradient(135deg, rgba(48, 133, 214, 0.05) 0%, #ffffff 100%);
}

/* Actions (boutons) */
.confirmation-modal-actions {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.confirmation-modal-actions .btn {
    min-width: 120px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.confirmation-modal-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.confirmation-modal-actions .btn:active {
    transform: translateY(0);
}

/* Bouton de confirmation danger */
.confirmation-modal-actions .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.confirmation-modal-actions .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Bouton de confirmation warning */
.confirmation-modal-actions .btn-warning {
    background-color: #ff9800;
    border-color: #ff9800;
    color: #fff;
}

.confirmation-modal-actions .btn-warning:hover {
    background-color: #e68900;
    border-color: #e68900;
    color: #fff;
}

/* Bouton de confirmation info */
.confirmation-modal-actions .btn-primary {
    background-color: #3085d6;
    border-color: #3085d6;
}

.confirmation-modal-actions .btn-primary:hover {
    background-color: #2573c0;
    border-color: #2573c0;
}

/* Responsive */
@media (max-width: 576px) {
    .confirmation-modal {
        max-width: 90%;
        margin: 1rem;
    }
    
    .confirmation-modal-title {
        font-size: 1.25rem;
    }
    
    .confirmation-message {
        font-size: 1rem;
    }
    
    .confirmation-modal-actions {
        flex-direction: column;
    }
    
    .confirmation-modal-actions .btn {
        width: 100%;
    }
}

/* Animation d'entrée */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirmation-modal {
    animation: fadeInScale 0.3s ease-out;
}

/* Amélioration de l'accessibilité */
.confirmation-modal:focus {
    outline: none;
}

.confirmation-modal-actions .btn:focus {
    outline: 2px solid #3085d6;
    outline-offset: 2px;
}

/* Styles pour SweetAlert2 personnalisé */
.swal2-popup.confirmation-modal {
    padding: 0;
}

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

.swal2-title.confirmation-modal-title {
    padding: 1.5rem 1.5rem 0;
}

.swal2-content {
    padding: 0;
}

