/* Styles pour les notifications */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-toast {
    background-color: #fff;
    border-left: 4px solid #3490dc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px;
    width: 100%;
    animation: slide-in 0.3s ease-out;
    transition: opacity 0.5s ease-out;
}

.notification-toast.fade-out {
    opacity: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-header strong {
    color: #2d3748;
    font-size: 16px;
}

.close-notification {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
}

.notification-body {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

/* Types de notifications */
.notification-toast.success {
    border-left-color: #38c172;
}

.notification-toast.warning {
    border-left-color: #f6993f;
}

.notification-toast.error {
    border-left-color: #e3342f;
}

.notification-toast.info {
    border-left-color: #3490dc;
}

/* Badge de notification */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e3342f;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

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

/* Bouton de notification dans la navbar */
.notification-button {
    position: relative;
    display: inline-block;
}

#notification-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e3342f;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
