She was unhurt despite being in a traffic accident.

Literal

She [topic-は] traffic-accident [in-に] meet [even-though-ても] anything-was-not.

事故にあう ('to be in / have an accident') uses 遭う/会う with the dative-like に — the meeting/encountering verb 遭う specifically marks running into something usually unwelcome (accidents, disasters, troubles). ~ても is the concessive 'even though,' built on the te-form + も. 何ともない ('be all right, suffer no harm, be nothing') is a useful set phrase: 何 (anything) + とも (even/intensifier) + ない (not) → 'nothing whatsoever, no problem.' Common in reassurances after near-misses.