It is not possible to put a category in another category. Instead, you can create a master-categories and then add sub-categories inside. A master-category can contain only normal categories while a normal category can contain only documents.
To create a master category, please tap on "Categories" in the library view and tap the back button until you're at the root level. Then tap + in the upper left of the pop-up and choose "Create Master Category".