Regularities and symmetries in atomic structure and spectra