/* Calendar Container */
#custom-calendar {
    max-width: 100%;
    margin: auto;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-sizing: border-box;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.calendar-controls select {
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: black;
}

.calendar-controls select:focus {
    outline: none;
    border-color: #E45B53;
    box-shadow: 0 0 5px rgba(228, 91, 83, 0.5);
}

/* Table */
.custom-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: "Times New Roman", serif;
    color: black;
    background-color: white;
}

.custom-calendar-table th,
.custom-calendar-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
    font-weight: bold;
}

/* Table Header */
.custom-calendar-table th {
    background: #FFE5E5;
    color: black;
    font-size: 13px;
}

/* Row Hover Effect */
.custom-calendar-table tbody tr:hover td {
    background-color: #f0f0f0;
}

/* Calendar Days */
.calendar-day {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    cursor: default;
}

.has-posts {
    background: #E45B53;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.has-posts:hover {
    background: white !important;
    color: black !important;
    border: 2px solid #E45B53;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .calendar-controls {
        flex-direction: column;
        align-items: center;
    }

    .custom-calendar-table th,
    .custom-calendar-table td {
        padding: 8px;
        font-size: 14px;
    }

    .calendar-day,
    .has-posts {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
    }
}
