.custom-calendar {
    background: #1a1a2e;
    color: #fff;
    padding: 20px;
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #2a2a3e;
    border-radius: 10px;
}
#spots-available {
    color: #00ff00;
    font-size: 16px;
}
#refresh-calendar {
    padding: 8px 15px;
    background: #00ff00;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}
.calendar-controls {
    margin-bottom: 20px;
    padding: 10px;
    background: #2a2a3e;
    border-radius: 10px;
}
#month-select, #year-select {
    padding: 8px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    background: #16213e;
    color: #fff;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #2a2a3e;
    padding: 10px;
    border-radius: 10px;
}
.calendar-header-days span {
    text-align: center;
    padding: 10px;
    font-weight: bold;
}
.calendar-body {
    min-height: 200px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.calendar-day {
    text-align: center;
    padding: 20px;
    background: #16213e;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}
.calendar-day.active {
    background: #00ff00;
}
.calendar-day:hover {
    background: #0f172a;
}
.schedule {
    margin-top: 20px;
    padding: 10px;
    background: #2a2a3e;
    border-radius: 10px;
}
.schedule h3 {
    margin: 10px 0;
    font-size: 18px;
}
.time-slots {
    display: flex;
    flex-direction: column;
}
.time-slot {
    background: #16213e;
    border: none;
    color: #fff;
    padding: 10px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}
.time-slot:hover {
    background: #0f172a;
}
.time-slot.disabled {
    background: #4a4a4a;
    cursor: not-allowed;
}
.event-form {
    margin-top: 20px;
    padding: 10px;
    background: #2a2a3e;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}
#event-name, #user-name, #user-email {
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    background: #16213e;
    color: #fff;
}
#save-event {
    padding: 10px 20px;
    background: #00ff00;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    align-self: flex-end;
}
.custom-calendar {
    width: 100%;
    margin: 0;
    max-width: 100%;
    background: #0c172b;
    backdrop-filter: ;
    display: inline-block;
}
.custom-calendar .calendar-header {
    background: transparent !important;
    padding: 0;
    margin: -55px 0 31px 0;
}
.calendar-header #refresh-calendar {
    display: none;
}
.calendar-header #spots-available {
    display: block;
    width: 100%;
    text-align: center;
}
.custom-calendar .calendar-controls {
    background: transparent;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0;
}
.custom-calendar .calendar-controls select {
    width: max-content;
    background: transparent !important;
}
.custom-calendar .calendar-grid {
    float: left;
    width: 50%;
    background: #080f1d6b;
    backdrop-filter: blur(10px);
    grid-template-columns: unset;
    border: 1px solid #1D263C;
}
.custom-calendar .calendar-grid .calendar-header-days {
    height: 44px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    float: left;
    width: 100%;
}
.custom-calendar  .schedule {
    float: right;
    width: 48%;
    margin: 0;
    background: #080f1d6b;
    backdrop-filter: blur(10px);
    border: 1px solid #1D263C;
    color: #fff;
}



.custom-calendar .schedule #selected-date {
    color: #fff;
}
.custom-calendar .schedule #time-slots {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.custom-calendar .schedule #time-slots .time-slot {
    width: 31.3%;
    margin: 0 1% 10px;
}
.custom-calendar .event-form {
    float: right;
    width: 48%;
    background: #080f1d6b;
    backdrop-filter: blur(10px);
    border: 1px solid #1D263C;
    flex-direction: row;
    flex-wrap: wrap;
}
.custom-calendar .event-form input {
    width: 48%;
    margin: 4px 1% !important;
    border: 1px solid #474F62 !important;
    text-align: left !important;
}
.custom-calendar .event-form input::placeholder {
    text-align: left;
    color: #fff;
}
.custom-calendar .event-form #save-event {
    width: 48% !important;
    margin: -13px 1% 0 !important;
    background: #be5816;
    float: right;
    position: relative;
    bottom: 4px;
    height: 49px;
}
.section-date .date__wrap {
    opacity: 1;
}
.calendar-day:hover , .calendar-day.active {
    background: #be5816 !important;
}


@media only screen and (max-width: 600px) {


    .custom-calendar .calendar-grid {
        width: 100%;
    }
    .calendar-header-days span {
        padding: 0;
    }
    .custom-calendar .calendar-grid .calendar-header-days {
        display: flex;
        flex-wrap: nowrap;
        height: 30px;
    }
    .custom-calendar .calendar-grid .calendar-header-days span {
        width: 14.3%;
        font-size: 13px;
    }
    .calendar-body {
        display: flex;
        flex-wrap: wrap;
    }
    .calendar-body .calendar-day {
        width: 13.7%;
        text-align: center;
        display: flex;
        align-items: center;
        height: 43px;
        padding: 0 !important;
        justify-content: center;
    }
    .custom-calendar .schedule {
        width: 100%;
        margin: 10px 0 0 0;
    }
    .custom-calendar .event-form {
        width: 100%;
        margin: 9px 0 0 0;
    }
}