.fc-toolbar-chunk .fc-button {
    background: #f5f5ff;
    color: #6c5ce7;
    border: 1px solid #6c5ce7;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    transition: all 0.3s ease-in-out;
}

.fc-toolbar-chunk .fc-button:hover {
    background: #6c5ce7;
    color: white;
}

.fc-button-active {
    background: #6c5ce7 !important;
    color: white !important;
    border-color: #6c5ce7 !important;
}

.fc-toolbar .fc-button-group .fc-button {
    background: #f5f5ff;
    color: #6c5ce7;
    border: 1px solid #6c5ce7;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: capitalize;
    transition: all 0.3s;
}

.fc-toolbar .fc-button-group .fc-button:hover {
    background: #6c5ce7;
    color: white;
}

.fc-toolbar-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #333;
    text-transform: capitalize;
}

.fc-day-today {
    background: #e1f5fe !important;
}

.fc-event {
    font-size: 13px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: capitalize;
    cursor: pointer;
}

@media (max-width: 768px) {
    .fc-header-toolbar {
        flex-direction: column;
    }

    .fc-toolbar-chunk {
        text-align: center;
        margin-bottom: 5px;
    }

    .fc .fc-daygrid-day-number {
        font-size: 12px;
    }

    .fc .fc-daygrid-day {
        min-height: 60px;
    }

    .fc-event {
        font-size: 12px !important;
        padding: 5px !important;
    }
}


/* Fix FullCalendar height */
.calendar-container {
    max-width: 100%;
    margin: auto;
    padding: 10px;
    height: 600px;
    /* Set a fixed height */
    overflow: hidden;
    /* Prevent scrolling */
    display: flex;
    flex-direction: column;
}

.full-calendar {
    flex-grow: 1;
    height: 100% !important;
}

.fc .fc-scrollgrid {
    height: 100% !important;
}

.fc .fc-daygrid-body {
    height: 100% !important;
    overflow: hidden;

}

.fc-toolbar-chunk .fc-button {
    background: #6c5ce7;
    color: white;
    border: 1px solid #6c5ce7;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    text-transform: capitalize;
    transition: all 0.3s ease-in-out;
}

.fc-toolbar-chunk .fc-button:hover {
    background: white;
    color: #6c5ce7;
}

.fc-toolbar-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #333;
    text-transform: capitalize;
}

.fc-day-today {
    background: #e1f5fe !important;
}

.fc-event {
    font-size: 13px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

@media (max-width: 768px) {

    .calendar-container {
        padding: 5px;
        overflow: auto;
        display: flex;
        flex-direction: column;
    }

    .fc-header-toolbar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .fc-toolbar-chunk {
        width: auto;
        text-align: center;
        margin-bottom: 5px;
    }

    .fc .fc-daygrid-day {
        min-height: 45px;
    }

    .fc-toolbar-title {
        font-size: 18px;
    }

    .fc .fc-daygrid-day-number {
        font-size: 12px;
    }

    .fc-event {
        font-size: 12px !important;
        padding: 4px !important;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        max-width: 100%;
        margin: auto;
        padding: 10px;
        overflow: auto;
        display: flex;
        flex-direction: column;
    }

    .full-calendar {
        flex-grow: 1;
        height: 100% !important;
    }

    .fc .fc-scrollgrid {
        height: 100% !important;
    }

    .fc .fc-daygrid-body {
        height: 100% !important;
        overflow: auto;

    }

    .fc-toolbar-chunk .fc-button {
        padding: 6px 10px;
        font-size: 12px;
    }

    .fc-toolbar-title {
        font-size: 16px;
    }

    .fc .fc-daygrid-day {
        min-height: 40px;
    }

    .fc-event {
        font-size: 11px !important;
        padding: 3px !important;
    }
}

.fc-col-header {
    margin: 0px;
}