#calendar-container {
    margin: 40px auto;
    padding: 0;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 14px;
    position: relative; /* Added to set relative positioning for child elements */
    max-width: 100vh;
}

#calendar {
    max-width: 100vh;
    min-height: 80vh;
    margin: 0 auto;
}

.fc-toolbar-title {
    text-align: center; /* Center align the title */
}

/* Remove a:link's decoration */
#calendar .fc-event-title:not(.fc-sticky) {
    color : initial;
    text-decoration: none;
}

/* Changing the color of the weekend */
.fc-col-header-cell-cushion, .fc-daygrid-day-number {
    text-decoration: none;
}

.fc-scrollgrid-sync-inner > .fc-col-header-cell-cushion,
.fc-day-mon .fc-daygrid-day-number,
.fc-day-tue .fc-daygrid-day-number,
.fc-day-wed .fc-daygrid-day-number,
.fc-day-thu .fc-daygrid-day-number,
.fc-day-fri .fc-daygrid-day-number {
    color: black;
}

.fc-day-sun .fc-col-header-cell-cushion,
.fc-day-sun a {
    color : red;
}

.fc-day-sat .fc-col-header-cell-cushion,
.fc-day-sat a {
    color : blue;
}
/* Changing the color of the weekend */

/* Calendar tooltip */
.tooltip {
    position: absolute; /* Absolute positioning */
    border-radius: 4px; /* Rounded corners */
    padding: 8px; /* Padding */
    z-index: 9999; /* Z-index for stacking */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Shadow effect */
    transition: opacity 0.2s ease; /* Smooth transition effect */
    display: none; /* Hidden by default */
    /* white-space: unset; */ /* Prevent line breaks */
    color: #fff; /* Text color: white */
}

.fc-event:hover .tooltip {
    display: block; /* Show tooltip on mouse over event */
}
/* Calendar tooltip */

/* Calendar loading */
.spinner-container {
    position: absolute; /* Set to absolute position */
    top: 50%; /* Position from the top at 50% */
    left: 50%; /* Position from the left at 50% */
    transform: translate(-50%, -50%); /* Center alignment both horizontally and vertically */
    z-index: 9999; /* Display above other elements */
}

.spinner {
    border: 8px solid #f3f3f3; /* Background color */
    border-top: 8px solid #3498db; /* Spinner color */
    border-radius: 50%;
    width: 50px; /* Spinner width */
    height: 50px; /* Spinner height */
    animation: spin 1s linear infinite; /* Rotation animation */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    position: absolute; /* Set to absolute position */
    top: 50%; /* Position from the top at 50% */
    left: 50%; /* Position from the left at 50% */
    transform: translate(-50%, -50%); /* Center alignment both horizontally and vertically */
    z-index: 9998; /* Display above other elements but below the spinner */
    color: red;
    text-align: center; /* Center align the text */
}
/* Calendar loading */
