def METHOD_NAME(self) -> list[str]:
    """Get the css classes for a top-level <li> menu element.
    :return: A list of strings.
    """
    classes = ['nav-item']
    if self.dropdown:
        classes.append("dropdown")
    if self.is_active:
        classes.append("active")
    return classes