/* ============================================================================
   STYLES POUR LES MESSAGES DE SAUVEGARDE PAPS
   Animation des notifications de succès
   ============================================================================ */

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Message de succès générique */
.save-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.4);
    z-index: 10001;
    font-size: 16px;
    font-weight: 600;
    display: none;
    animation: slideInRight 0.3s ease-out;
}

.save-success-message.show {
    display: block;
}

/* Icône de succès */
.save-success-message::before {
    content: '✅ ';
    font-size: 20px;
    margin-right: 10px;
}

/* Message d'erreur */
.save-error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(244, 67, 54, 0.4);
    z-index: 10001;
    font-size: 16px;
    font-weight: 600;
    display: none;
    animation: slideInRight 0.3s ease-out;
}

.save-error-message.show {
    display: block;
}

.save-error-message::before {
    content: '❌ ';
    font-size: 20px;
    margin-right: 10px;
}

/* Animation de chargement */
.save-loading {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.4);
    z-index: 10001;
    font-size: 16px;
    font-weight: 600;
    display: none;
    animation: slideInRight 0.3s ease-out;
}

.save-loading.show {
    display: flex;
    align-items: center;
    gap: 15px;
}

.save-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast container pour messages multiples */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid #4caf50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.info {
    border-left: 4px solid #2196f3;
}

.toast-icon {
    font-size: 24px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
}

.toast-message {
    font-size: 14px;
    color: #666;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}
