﻿
.calendar-container {
    width: 100%;
    display: flex;
    flex-direction: column; /* month on top */
}

.calendar-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.calendar-scroll {
    flex-grow: 1;
    display: flex;
    gap: 0.25rem; /* small gap between days */
    overflow-x: hidden; /* hide horizontal scrollbar */
    overflow-y: hidden; /* hide vertical scrollbar */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    border-radius: 6px;
    background-color: #f8f9fa;
    padding: 0.2rem 0;
}

.calendar-month {
    font-size: 1.2rem;
    color: #495057;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
}

.calendar-day {
    flex: 1 1 0;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
    min-width: 0;
    padding: 0.5rem 0;
    scroll-snap-align: center;
    border: 1px dashed #fff;
}

    .calendar-day:hover {
        background-color: #e9ecef;
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .calendar-day.active {
        border-bottom: 5px solid #0d6efd;
        font-weight: bold;
        background-color: #dbe5ff;
        box-shadow: inset 0 -2px 0 #0d6efd;
    }
    .calendar-day.weekend {
        background-color: #eeeeee; /* light gray for weekends */
    }

        .calendar-day.weekend:hover {
            background-color: #e9ecef; /* keep hover consistent */
        }

        .calendar-day.weekend.active {
            background-color: #dbe5ff; /* active still overrides */
            border-bottom: 5px solid #0d6efd;
            box-shadow: inset 0 -2px 0 #0d6efd;
        }
    .calendar-day.today:not(.active) {
        border: 1px dashed #0d6efd;
    }


.scroll-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border: 1px solid #0d6efd;
    color: #0d6efd;
}

    .scroll-btn:hover {
        background-color: #e2e6ea;
    }

#calendarLoading {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 1rem;
    border-radius: 6px;
}


@media (max-width: 767px) {
    .calendar-scroll {
        gap: 0.2rem;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-day {
        padding: 0.2rem 0;
        font-size: 0.8rem;
    }
    /* Make weekday font smaller and only first letter */
    .calendar-day .calendar-weekday {
        font-size: 0.65rem; /* smaller font */
        text-transform: uppercase; /* optional for consistency */
    }

        .calendar-day .calendar-weekday::after {
            content: attr(data-first); /* fallback if using data attribute */
        }

        /* Show only the first letter of the weekday */
        .calendar-day .calendar-weekday::before {
            content: attr(data-first);
        }

        .calendar-day .calendar-weekday span {
            display: none;
        }

    /* Shrink the day number */
    .calendar-day .calendar-day-number {
        font-size: 0.85rem;
    }

    .scroll-btn {
        width: 28px;
        height: 28px;
    }

}

.nofixtures{
    text-align:center;
}