/* Calenda 1 */
.custom-calendar-wrap {
    width: 100%;
    margin: 0 auto;
}

.custom-calendar {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.calendar-header {
    background: linear-gradient(135deg, #364d31, #364d31);
    color: #fff;
    padding: 15px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.month-year {
    font-size: 22px;
    font-weight: bold;
}

.calendar-header nav {
    position: absolute;
    right: 15px;
}

.calendar-btn {
    cursor: pointer;
    padding: 5px 10px;
}

.calendar-body {
    padding: 20px 15px;
    border: none;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 5px;
}

.days div {
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.days div:hover:not(.empty, .unavailable) {
    background-color: #f5f5f5;
    border: 1px solid #7eff7e;
}

.days .today {
    background-color: #e6f2ff;
    font-weight: bold;
}

.days .unavailable {
    background-color: rgba(255, 107, 107, 0.2);
    color: #d63031;
    cursor: not-allowed;
    text-decoration: line-through;
}

.days .available {
    background-color: rgba(126, 211, 33, 0.2);
    color: #448800;
}

.days .selected {
    background-color: #364d31;
    color: #fff;
    font-weight: 600;
    border: 1px solid #364d31 !important;
}

.days .selected:hover {
    background-color: #fff !important;
    color: #364d31 !important;
}

.days .empty {
    cursor: default;
}

.calendar-footer {
    padding: 10px 15px;
    border: none;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
}

.legend-box.available {
    background-color: rgba(126, 211, 33, 0.2);
    border: 1px solid #448800;
}

.legend-box.unavailable {
    background-color: rgba(255, 107, 107, 0.2);
    border: 1px solid #d63031;
}

.legend-box.selected {
    background-color: #364d31;
    border: 1px solid #364d31;
}
.legend-box.reserved {
    background-color: #007f00;
    border: 1px solid #007f00;
}

.adjacent-month:hover {
    color: #000;
}

.adjacent-month.selected:hover {
    border: 1px solid #364d31 !important;
    background-color: #fff !important;
    color: #364d31 !important;
}

.adjacent-month.unavailable {
    background: rgba(255, 107, 107, 0.1) !important;
}

@media screen and (max-width: 767px) {
    #btnSubmit {
        height: 60px !important;
        line-height: 60px !important;
        width: 160px !important;
    }
}

/* Calenda 2 */
.calendar-card .custom-calendar {
    border: none;
    box-shadow: none;
}

.calendar-card .calendar-header {
    background: linear-gradient(135deg, #364d31, #364d31);
    border-radius: 10px;
}

.calendar-card .calendar-body {
    border: none;
    padding: 20px 15px;
}

.calendar-card .calendar-footer {
    border: none;
}

.calendar-card .days div {
    height: 45px;
    border-radius: 8px;
    font-weight: 500;
}

.calendar-card .days .available {
    background-color: rgba(126, 211, 33, 0.2);
    color: #448800;
}

.calendar-card .days .unavailable {
    background-color: rgba(255, 107, 107, 0.2);
    color: #d63031;
}

.calendar-card .days .selected {
    background-color: #364d31;
    color: #fff;
    font-weight: 600;
}

.calendar-card .legend-box {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.calendar-card .legend-box.available {
    background-color: rgba(126, 211, 33, 0.2);
    border: 1px solid #448800;
}

.calendar-card .legend-box.unavailable {
    background-color: rgba(255, 107, 107, 0.2);
    border: 1px solid #d63031;
}

.calendar-card .legend-box.selected {
    background-color: #364d31;
    border: 1px solid #364d31;
}