.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 14%);
    justify-content: center;

    gap: 4px;
    margin: 0 auto;
    background: #222;
    padding-top: 2rem;
    padding-bottom: 1rem;
    padding-left: 10px;
    padding-right: 10px;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    background: #222;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 8px 8px 0px 0px ;

    border-bottom-style: solid;
    border-bottom-width: 0.5rem;
    border-bottom-color: #333;
}

.calendar-nav span{
    font-size: 2rem;
    text-transform: uppercase;
}

.calendar-nav button{
    background: #222;
    border: none;
}

.calendar-nav i{
    font-size: 2rem;
    cursor: pointer;
}

.calendar-nav i:hover{
    color: var(--secondary-color);
}

.calendar-header span{
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 14%);
    justify-content: center;

    gap: 4px;
    margin: 0 auto;
    background: #222;
    padding: 10px;
    border-radius: 0px 0px 8px 8px;
    margin-bottom: 1em;
}

.calendar-entry {
    aspect-ratio: 1 / 1;
    width: 100%;
    border: 1px solid #444;
    padding: 0.5em;
    box-sizing: border-box;
    color: #eee;
    display: flex;
    flex-direction: column;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.calendar-no-exist-day {
    background-color: #1a1a1a; /* very dark, to visually "disappear" */
    border-color: transparent;
    cursor: default;
}

.calendar-past-day {
    background-color: #222;
    color: #ccc;
}

.calendar-day {
    background-color: #2a72c9; /* teal-ish */
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.calendar-day-private {
    background-color: #555555; /* teal-ish */
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.calendar-booked-day {
    background: repeating-linear-gradient(
        45deg,
        #2c2c2c,     /* dark gray stripe */
        #2c2c2c 10px,
        #3a3a3a 10px,
        #3a3a3a 20px  /* slightly lighter stripe */
    );
    color: #f8f8f8;             /* light text */
}

.calendar-booked-day-private {
    background-color: #2a72c9;
    color: black;
    cursor: pointer;
}

.calendar-booked-day-private span{
    color: black;
    font-weight: 600;
}

.calendar-day-unavailable{
    background: repeating-linear-gradient(
        45deg,
        #4b1c1c,      /* dark muted red */
        #4b1c1c 10px,
        #2c1a1a 10px, /* even darker red */
        #2c1a1a 20px
    );
    color: #f5c6cb;      /* soft pinkish white text */
}

.calendar-day:hover {
    background-color: #00b3b3;
    color: #fff;
    box-shadow: 0 0 6px 2px #00b3b3aa;
}

.calendar-day-number {
    font-size: 1.1em;
    pointer-events: none; /* disable pointer on number itself */
}


.calendar-day-selected{
    background-color: #64eb1c !important;
}

.modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* dimmed backdrop */
    overflow-y: auto;
}

.modal-content {
    background-color: #1f1f1f; /* dark background */
    color: #f1f1f1;           /* light text */
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #fff;
}

#day-details-body{
    display: flex;
    flex-direction: column;
    row-gap: 0.3rem;
}

/* MOBILE RESPONSIVE ADJUSTMENTS */
@media (max-width: 1000px) {
    .calendar-header {
        grid-template-columns: repeat(7, 14%);
        justify-content: center;
        padding: 1rem 5px;
        gap: 2px;
    }

    .calendar-header span{
        overflow: hidden;
        max-width: 5ch;
        white-space: nowrap;
        margin-left: auto;
        margin-right: auto;
        text-overflow: ellipsis;
    }

    .calendar-nav {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .calendar-nav span {
        font-size: 1.5rem;
    }

    .calendar-nav i {
        font-size: 1.5rem;
    }

    .calendar {
        grid-template-columns: repeat(7, 14%);
        justify-content: center;
        padding: 5px;
        gap: 2px;
    }

    .calendar-entry {
        padding: 0.25em;
    }

    .modal-content {
        max-width: 95%;
        margin: 20% auto;
        padding: 15px;
    }
}
