Modafinil is a prescription medication that is primarily used to treat sleep disorders such as narcolepsy, obstructive sleep apnea, and shift work sleep disorder. It's also identified for its off-label use as a cognitive enhancer, leading to an elevated demand for the drug among college students, professionals, and individuals looking