Was it just coffee you were having all day, or did you have any water with it? Coffee can actually make you lose more water, so it's a bad swap for staying hydrated. I made that same mistake when I used to rely on energy drinks and felt awful by noon. Now I keep a big water bottle on my desk and try to finish it before lunch. Do you have a bottle or cup you use to track your sips?