/**
 * Styles pour le badge de notification du chat
 * Assure une apparence cohérente sur tout le site
 */

/* Badge de notification dans la navbar */
.chat-notification-badge {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    font-size: 9px !important;
    font-weight: bold !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 2px 5px !important;
    line-height: 12px !important;
    border: 2px solid #ffffff !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    animation: pulse-badge 2s infinite;
}

/* Animation de pulsation pour attirer l'attention */
@keyframes pulse-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 3px 6px rgba(255, 0, 0, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Style responsive pour mobile */
@media (max-width: 768px) {
    .chat-notification-badge {
        top: 3px !important;
        right: 3px !important;
        font-size: 8px !important;
        min-width: 14px !important;
        height: 14px !important;
        padding: 1px 4px !important;
        line-height: 11px !important;
    }
}

/* Effet au survol du lien de chat */
.nav-link:hover .chat-notification-badge {
    animation: none;
    transform: scale(1.15);
    transition: transform 0.2s ease;
}

/* Badge dans la sidebar admin */
.sidebar-menu .chat-notification-badge,
.admin-sidebar .chat-notification-badge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-left: auto;
    font-size: 0.7rem !important;
    border: none !important;
    animation: pulse-badge 2s infinite;
    display: inline-block;
}