Hi Anuja
To me, it's a far too dense itinerary for "only" two weeks. You're going to waste quite a lot of time packing/unpacking and moving about from train station to train station (or city to airport to airport to city) and then barely experiencing anything from the places you want to visit. My advice would be to skip certain bits and focus in two or three destinations tops noting that any of those has numerous day escapades in their regions worth considering -you know, there's not a "void" outside cities, lol!
As per your itinerary above I am assuming you're flying in/out of Madrid, right?... first question: any particular reason?, you have international flights to other destinations as well, so maybe that can help to reshape your whole itinerary (if necessary).
Everybody have got different "travel styles" as discussed many times in these forums, certain people are happy with ticking a list and moving on (you know, the "seen it/done it" box), while others like to get to know a bit more of what they are visiting so they can better appreciate it. So how long to spend in each place it's pretty much a personal decision that no one can really take for you. Still, most visitors seem to have a consensus that "at least" 4-5 days for Barcelona and same for Madrid, 3-4 for Seville and 2-3 for each one of the rest you mention is the bare minimum.
Your turn to decide now :))
PS: If you have further specific questions about Barcelona -or Catalonia for that matter- I'll be happy to assist.