A 28-year-old woman presents with dysuria, urinary frequency, and urgency for 1 day. She is afebrile and has no flank pain, nausea, or vaginal discharge. Urinalysis shows positive leukocyte esterase and nitrites. She is not pregnant and has no drug allergies. What is the most appropriate first-line treatment?