﻿/* Increase all text in the calendar cells */
.calendar-table td > .cell-content,
.calendar-table th {
    font-size: 1rem; /* you can tweak this value up or down */
}

/* Make the day number extra-bold and larger */
.calendar-table td .day-number {
    font-size: 1.25rem; /* e.g. 20px if your base font is 16px */
    font-weight: 600;
}

/* Bump up the badge text too */
.calendar-table td .badge {
    font-size: 0.875rem; /* e.g. 14px */
}

/* Wrap calendar + navigator in a padded container */
.calendar-wrapper {
    max-width: 100%;
    padding: 7rem;
    padding-top: 4rem;
    box-sizing: border-box;
}

/* Shrink each cell to 90% of its allocated width */
.calendar-table td,
.calendar-table th {
    width: calc((100% - 6px) / 7 * 0.9); /* 90% of the 1/7th width */
    position: relative;
    padding: 0;
    border: 1px solid #dee2e6;
}

/* Re-center the grid in its row (if needed) */
.calendar-table {
    margin: 0 auto; /* horizontally center */
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

/* Header styling stays the same but you can bump its padding */
.calendar-table th {
    background-color: #e9ecef;
    text-align: center;
    font-weight: 600;
    padding: 0.5rem; /* a little more breathing room */
    height: 2.5rem; /* slightly taller header */
}

/* Pseudo-element to enforce square shape */
.calendar-table td::before {
    content: "";
    display: block;
    padding-top: 100%; /* keeps square aspect */
}

/* Inner cell content */
.calendar-table td > .cell-content {
    position: absolute;
    top: 0.25rem; /* match the header padding for alignment */
    left: 0.25rem;
    right: 0.25rem;
    bottom: 0.25rem;
    overflow: hidden;
}

/* Day number spacing */
.calendar-table td .cell-content .day-number {
    margin-bottom: 1.25rem; /* a little less than before */
}

/* Gray out the cells not in the current month */
.calendar-table td.outside-month {
    background-color: #f0f0f0; /* light gray */
}

.calendar-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
}

.month-navigator {
    max-width: 1500px; /* or whatever width you prefer */
    width: 100%;
    margin: 0 auto; /* center it */
    background-color: #1fa2f1;
    color: white;
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-size: 1rem;
}

.month-navigator h5 {
    color: white;
    font-size: 1rem;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.month-navigator .btn-navi {
    background: transparent;
    border: none;
    color: white;
    padding: 0;
}

.month-navigator .btn-navi img {
    width: 1rem;
    height: auto;
}

.month-navigator-container {
    position: relative;
    z-index: 9;
}

@media (min-width: 100px) and (max-width: 1200px) {
    .calendar-wrapper {
        padding: 1rem;
    }

    .month-navigator {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .month-navigator-container {
        position: sticky;
        top: 0;
        background: white;
        z-index: 9;
    }

    .month-navigator h5 {
        color: white;
        font-size: 1rem;
        margin: 0;
        text-align: center;
        flex-grow: 1;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .month-navigator .btn-navi {
        background: transparent;
        border: none;
        color: white;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .month-navigator .btn-navi img {
            width: 1.25rem;
            height: auto;
        }

    .calendar-scroll-container {
        margin-top: 0.5rem;
    }

    .calendar-table {
        min-width: 700px;
    }

        .calendar-table th,
        .calendar-table td {
            font-size: 0.75rem;
        }

            .calendar-table td .day-number {
                font-size: 0.875rem;
            }

            .calendar-table td .badge {
                font-size: 0.75rem;
            }
}