/**
 * Styles personnalisés pour SweetAlert2 sur le site public AutoPure
 */

/* Popup principal */
.autopure-swal-popup {
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Titre */
.autopure-swal-title {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 1.2rem !important;
    text-align: center !important;
}

/* Contenu */
.autopure-swal-content {
    font-size: 1rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

/* Boutons */
.autopure-swal-confirm,
.autopure-swal-cancel {
    border-radius: 12px !important;
    padding: 0.875rem 2rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.autopure-swal-confirm:hover,
.autopure-swal-cancel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Couleurs spécifiques pour les boutons */
.autopure-swal-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

.autopure-swal-cancel {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: white !important;
}

/* Toast notifications */
.autopure-toast-popup {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Icônes personnalisées avec couleurs AutoPure */
.swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.swal2-icon.swal2-success .swal2-success-fix {
    background-color: #10b981 !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

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

.swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

.swal2-icon.swal2-question {
    border-color: #8b5cf6 !important;
    color: #8b5cf6 !important;
}

/* Progress bar avec couleurs AutoPure */
.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #10b981, #059669) !important;
    height: 4px !important;
}

/* Overlay avec effet de flou */
.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
}

/* Animations améliorées */
.swal2-show {
    animation: autopure-swal-show 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.swal2-hide {
    animation: autopure-swal-hide 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19) !important;
}

@keyframes autopure-swal-show {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes autopure-swal-hide {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
}

/* Styles spéciaux pour les notifications de réservation */
.swal2-popup.reservation-notification {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: 2px solid #0ea5e9 !important;
}

.swal2-popup.reservation-notification .swal2-title {
    color: #0c4a6e !important;
}

/* Loading spinner personnalisé */
.swal2-loading .swal2-styled.swal2-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Input fields */
.swal2-input {
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background: #f8fafc !important;
}

.swal2-input:focus {
    border-color: #10b981 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    background: white !important;
}

/* Validation error */
.swal2-validationerror {
    color: #ef4444 !important;
    font-size: 0.875rem !important;
    margin-top: 0.5rem !important;
    font-weight: 500 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .autopure-swal-popup {
        margin: 1rem !important;
        width: calc(100% - 2rem) !important;
        border-radius: 12px !important;
    }
    
    .autopure-swal-title {
        font-size: 1.4rem !important;
    }
    
    .autopure-swal-content {
        font-size: 0.95rem !important;
    }
    
    .autopure-swal-confirm,
    .autopure-swal-cancel {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .autopure-toast-popup {
        width: calc(100% - 2rem) !important;
        margin: 1rem !important;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .autopure-swal-popup {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #f1f5f9 !important;
    }
    
    .autopure-swal-title {
        color: #f1f5f9 !important;
    }
    
    .autopure-swal-content {
        color: #cbd5e1 !important;
    }
    
    .autopure-toast-popup {
        background: rgba(30, 41, 59, 0.95) !important;
        color: #f1f5f9 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .swal2-input {
        background: #334155 !important;
        border-color: #475569 !important;
        color: #f1f5f9 !important;
    }
    
    .swal2-input:focus {
        background: #475569 !important;
        border-color: #10b981 !important;
    }
}

/* Effet de pulsation pour les notifications importantes */
.swal2-popup.pulse-animation {
    animation: pulse-glow 2s infinite !important;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.3);
    }
    100% {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
}
