The discharge of untreated wastewater, often contaminated by harmful substances, such as industrially used dyes, can provoke environmental and health risks. Among various techniques, the adsorption of dyes, using three-dimensional (3D) networks consisting of hydrophilic polymers (hydrogels), represents a low-cost, clean, and efficient remediation method. Three industrially used dyes, Methylene Blue, Eosin, and Rose Bengal, were selected as models of pollutants. Poly(acrylamide) (poly(AM)) and poly(acrylamide-co-acrylic acid) (poly(AM-co-AA)) networks were chosen as adsorbent materials (hydrogels). These polymers were synthesized by crosslinking the photopolymerization of their respective monomer(s) in an aqueous medium under exposure to UV light. Experimental adsorption measurements revealed substantially higher dye uptakes for poly(AM-co-AA) compared to poly(AM) hydrogels. In this report, a theoretical model based on docking simulations was applied to analyze the conformation of polymers and pollutants in order to investigate some aspects of the adsorption process. In particular, hydrogen and halogen interactions were studied. The presence of strong hydrogen bonding plays a crucial role in the retention of dyes, whereas halogen bonding has a small or negligible effect on adsorption. An evaluation of binding energies allowed us to obtain information about the degree of affinity between polymers and dyes. The number of rotatable bonds in the copolymer exceeds those of poly(AM),meaning that poly(AM-co-AA) is revealed to be more suitable for obtaining a high retention rate for pollutants.