Simple vs. complex carbohydrates
"Simple" carbohydrates are single or paired sugar molecules (glucose, fructose, sucrose) that are digested quickly. "Complex" carbohydrates are longer chains — starches and fiber — found in foods like whole grains, legumes, and vegetables, which generally digest more slowly and arrive with more fiber, vitamins, and minerals attached.
Both categories provide the same 4 kcal per gram; the practical difference is digestion speed and the nutritional company the carbohydrate keeps, not some special "bad" property of sugar molecules themselves.