/* Стили для бейджа непрочитанных сообщений */
.unread-badge {
    display: inline-block;
    margin-left: 5px;
    color: #ff4444;
    font-weight: bold;
    font-size: 0.9em;
    animation: pulse 2s infinite;
    background: rgba(255, 68, 68, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* Пульсирующая анимация */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px rgba(255, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .unread-badge {
        font-size: 0.8em;
        padding: 1px 4px;
        margin-left: 3px;
    }
}

/* Исправление высоты кнопок в навигационном меню */
.nav-menu {
    display: flex;
    align-items: center;
    min-height: 60px;
}

.nav-menu .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 16px;
    margin: 0 5px;
    border: 2px solid;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Для фона города - особые стили */
.header_city_background .nav-menu .nav-link {
    height: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        min-height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu .nav-link {
        height: auto;
        min-height: 40px;
        margin: 5px;
        padding: 8px 12px;
        font-size: 1rem !important;
        flex: 1 0 auto;
        max-width: 280px;
    }
    
    .header_city_background .nav-menu .nav-link {
        height: auto;
        min-height: 40px;
    }
}
