/* Badge rouge sur l'icône utilisateur pour les admins avec notifications */
.user-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.user-notification-indicator {
    position: absolute;
    top: -9px;
    right: 0px;
    width: 20px;
    height: 20px;
    background-color: #dc3545;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-notification-indicator i {
    font-size: 8px;
    color: white;
}

/* Alignement du lien Administration avec le badge */
.dropdown-item.admin-link {
    display: flex !important;
    align-items: center !important;
}

/* Badge de notification admin dans le front */
.admin-notification-badge {
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 9px;
    min-width: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

/* Tooltip pour les notifications admin */
.admin-notification-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background-color: #2d3748;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

/* Flèche du tooltip */
.admin-notification-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d3748;
}

/* Afficher le tooltip au survol */
.admin-notification-badge:hover .admin-notification-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Liste des alertes dans le tooltip */
.admin-alerts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-alerts-list li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-alerts-list li:last-child {
    border-bottom: none;
}

.admin-alerts-list li strong {
    color: #fbbf24;
    margin-right: 4px;
}
