Within the expression такой, какой
must both components be in the same case? Or rather, какой may take another case, according to the content of the second clause?
For example:
"She's just like she was previously."
Она такая, какая (какой) она была раньше.
"She's just like the way I saw her for the first time."
Она такая, какой я увидел её впервые.
"The contemporary flag of Russia is the same as the flag of Imperial Russia."
Сегодняшний флаг России такой, каким был флаг царской России.