Sending my hugs and prayers also. Jail may be the bottom she needs to get clean long enough to reach out. I find God's gifts often come strangely wrapped and jail can be one of them.
Bless you for caring for the child, she is so lucky to have you and your love in her life.
Hugs