so that it won't happen again in the future.
From the things you've posted, the keeping the seed in electronic format can be a weak point, I have no other clue. Or maybe somebody stole directly from your phone or your phone's files.
But one idea to prevent this for the future would he a hardware wallet. You generate safely a new seed in the wallet, you send the coins there, keep the seed only on paper (multiple copies) and you are good.