Provided you submitted your application before your visa expired, if the home office take longer to process your application and your previous visa expired, your previous permission will continue until such time as the application has been processed. Therefore, you would not have overstayed.
If you have now held ILR for at least 12 months, you would be eligible to apply for naturalisation as a UK citizen.
I hope this answers your questions. If so, kindly rate the answer and provide feedback.
If you have any further questions, please do not hesitate to ask.
Please explain further