you can try and use style attribute from the code behind in C#.
please check below code
if(inboxcount >0)
{
inboxList.Style.Add("color","Black");
inboxList.Style.Add("Font-weight","Bold");
}
similar way you can apply any style to other Li based on your condition.