Refactor CSS styling