/* Month Calendar Styles */
.month-calendar {
    margin-bottom: 30px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.month-calendar h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #4CAF50;
}

/* Calendar Grid Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columns for days of the week */
    gap: 5px;
}

/* Day Labels */
.day-label {
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ccc;
}

/* Calendar Day Styles */
.calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.calendar-day.has-event {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.calendar-day.has-event:hover {
    background-color: #45a049;
}

.calendar-day.empty {
    background-color: #ffffff;
    pointer-events: none;
    visibility: hidden; /* Ensures empty slots don't confuse users */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .month-calendar h2 {
        font-size: 1.2rem;
    }

    .calendar-day {
        padding: 10px;
        font-size: 0.9rem;
    }

    .calendar-grid {
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .month-calendar h2 {
        font-size: 1rem;
    }

    .calendar-day {
        padding: 8px;
        font-size: 0.8rem;
    }

    .day-label {
        font-size: 0.9rem;
        padding: 8px 0;
    }
}
