Statistical Thermodynamics of Complex Liquids