Modafinil is approved for medical use to treat sleep disorders such as narcolepsy, shift work sleep disorder, and obstructive sleep apnea. Its off-label use for cognitive enhancement is not recommended, as it may lead to unwanted side effects and potential addiction.