Green synthesis, antibacterial activity, and SAR of some novel naphthalimides and allylidenes