Sidebar styling refactoring