.containerAgenda {
    background-color: rgba(205, 203, 203, 0.586);
    max-width: 800px;
    margin: auto;
    padding: 10px;
    margin-top: 50px;
    text-align: center;
}
#searchPatient, #searchBtn {
    display: inline-block;
    margin: auto;
    padding: 8px;
    border-radius: 10px;
}
#searchPatient {
    width: 55%;
}
#searchBtn {
    width: 10%;
    margin-right: 120px;
    float: right;
}
h1, h2 {
    text-align: center;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
#prevMonth, #nextMonth {
    margin-top: 5%;
    margin-left: 10%;
    padding: 10px;
    cursor: pointer;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
}
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.calendar div {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
}
.calendar .header {
    background-color: #f8f8f8;
    font-weight: bold;
}
.calendar .day.has-appointment {
    background-color: #a2e4b1;
}
.calendar .day.today {
    background-color: #007bff;
    color: white;
}
.calendar .day.past {
    background-color: #f5c6cb;
}
.modal2 {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}
.modal-content2 {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 8px;
}
.close2 {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close2:hover,
.close2:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.timeslots {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.timeslots div {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
}
.timeslots .booked {
    background-color: #f5c6cb;
}
#patientName {
    width: calc(100% - 20px);
    padding: 8px;
    margin-bottom: 10px;
}
.agendar {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    margin-bottom: 5px;
    padding: 10px 20px;
    background-color: rgb(13, 161, 13);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
.past-appointment {
    background-color: red;
    color: white;
}
@keyframes blink {
    0% { background-color: #a2e4b1; }
    50% { background-color: transparent; }
    100% { background-color: #73fb92; }
}

.blink {
    animation: blink 1.5s ease-in-out infinite;
}
