/* notification-styles.css */
.notification-wrapper {
    position: relative;
    margin: 0 15px;
}

.message-link {
    text-decoration: none;
    color: inherit;
}

.envelope-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.unread-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.unread-count.has-notifications {
    display: block;
}


.notification-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin: 0 10px;
}

.notification-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 1px 4px;
    font-size: 10px;
    min-width: 14px;
    height: 14px;
    text-align: center;
    line-height: 14px;
    box-shadow: 0 0 0 1px #fff;
}

.notification-container a {
    text-decoration: none;
    display: block;
    position: relative;
}
.account-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Reset tous les espacements par défaut */
.account-container > * {
    margin: 0;
}

/* Style commun pour les éléments de hauteur identique */
#language-select,
#user-name,
.new-ad-btn {
    height: 32px; /* Hauteur fixe pour tous les éléments */
    box-sizing: border-box; /* Pour que padding soit inclus dans la hauteur */
    margin: 0;
    padding: 4px 8px;
}

.notification-container {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 32px; /* Même hauteur que les autres éléments */
}

.notification-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.new-ad-btn {
    white-space: nowrap;
    line-height: 24px; /* Pour centrer le texte verticalement */
}

#user-menu {
    margin: 0;
    padding: 0;
}
