/* ========================================
   NOTIFICATIONS MODERNES (TOASTR)
   ======================================== */

/* Toast moderne */
.modern-toast {
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    padding: 1.5rem !important;
    font-weight: 600 !important;
    border: none !important;
    backdrop-filter: blur(10px);
}

/* Toast Success */
.toast-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

/* Toast Error */
.toast-error {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important;
}

/* Toast Warning */
.toast-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

/* Toast Info */
.toast-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

/* Bouton de fermeture */
.toast-close-button {
    color: white !important;
    opacity: 0.8 !important;
    font-size: 1.5rem !important;
    font-weight: 300 !important;
}

.toast-close-button:hover {
    opacity: 1 !important;
}

/* Barre de progression */
.toast-progress {
    background: rgba(255, 255, 255, 0.4) !important;
}

/* Animation d'entrée */
@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modern-toast {
    animation: toastSlideIn 0.5s ease-out;
}

/* ========================================
   SWEET ALERT MODERNE (SI UTILISÉ)
   ======================================== */

.swal2-popup {
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

.swal2-title {
    font-weight: 700 !important;
    color: #2c3e50 !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 50px !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    border: none !important;
}

.swal2-cancel {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important;
    border-radius: 50px !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    border: none !important;
}

/* ========================================
   LOADING SPINNER MODERNE
   ======================================== */

.modern-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Overlay de chargement */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay .spinner-container {
    text-align: center;
}

.loading-overlay .loading-text {
    margin-top: 1rem;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}
