Geometric Framework for Entropy in General Relativity