sounds like she developed a fear, not sure how to explain it fully. A traumatic experience for a dog can stay imprinted for some time if not corrected properly. By keeping her inside and giving her positive things for this behavior is rewarding a negative fear. Try to find a dog trainer who specializes in dog behavior.
Best of luck