@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&display=swap');

#aspire-calendar-mount {
    font-family: 'Geist', sans-serif;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    border: 1px solid #EDEDED;
}

.aspire-calendar-main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 56px;
    background: #0079A0;
    font-weight: 600;
    font-size: 18px;
    color: #FFFFFF;
}

.aspire-calendar-controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
}

.aspire-course-filter-wrapper {
    width: 100%;
}

.aspire-course-filter {
    width: 100%;
    height: 48px;
    padding: 12px;
    border: 1px solid #EDEDED;
    border-radius: 0;
    background: #FFFFFF;
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    color: #191919;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4%206L8%2010L12%206%22%20stroke%3D%22%23929292%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    line-height: 1;
}

.aspire-calendar-nav-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.aspire-calendar-month-title {
    font-size: 18px;
    font-weight: 600;
    color: #191919;
}

.aspire-nav-buttons {
    display: flex;
}

.aspire-nav-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #F3F3F3;
    background: #FFFFFF;
    margin: 0 -1px;
    cursor: pointer;
    border-radius: 0;
    font-family: monospace;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aspire-nav-btn:hover {
    background: #FAFAFA;
}

.aspire-nav-btn:disabled {
    color: #CCC;
    cursor: default;
    background: #FEFEFE;
}

#aspire-mobile-tooltip-container {
    display: none;
    margin-top: 16px;
    border: 1px solid #EDEDED;
    background: #FFFFFF;
    width: 100%;
    box-sizing: border-box;
}

#aspire-mobile-tooltip-container.visible {
    display: block;
}

.aspire-calendar-grid-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.aspire-calendar-grid-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.aspire-calendar-grid-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.aspire-calendar-grid-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.aspire-calendar-grid-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.aspire-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
    min-width: 370px;
    border-top: 1px solid #F3F3F3;
    border-left: 1px solid #F3F3F3;
    box-sizing: border-box;
}

.aspire-calendar-header-cell {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    height: 44px;
    background: #F3F3F3;
    box-sizing: border-box;
    border-right: 1px solid #FFF;
    border-bottom: 1px solid #FFF;

    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #626262;
    text-transform: uppercase;
}

.aspire-calendar-cell {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 10px;
    background: #FFFFFF;
    border-right: 1px solid #F3F3F3;
    border-bottom: 1px solid #F3F3F3;
    position: relative;
    border-radius: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.aspire-day-number {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #626262;
}

.aspire-calendar-cell.has-session {
    background-color: #0079A0;
    cursor: pointer;
}

.aspire-calendar-cell.has-session .aspire-day-number {
    font-weight: 600;
    color: #FFFFFF;
}

.aspire-calendar-cell.has-session:hover {
    background-color: #006080;
}

.aspire-calendar-cell.fully-booked {
    background-color: #626262;
    color: #ffffff;
    cursor: pointer;
}

.aspire-calendar-cell.fully-booked .aspire-day-number {
    font-weight: 600;
    color: #FFFFFF;
}

.aspire-calendar-cell.fully-booked:hover {
    background-color: #4a4a4a;
}

.aspire-calendar-cell.empty {
    background: #FAFAFA;
}

.aspire-calendar-tooltip {
    position: absolute;
    z-index: 999999;
    background: #FFFFFF;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    padding: 0;
    width: 350px;
    max-width: 90vw;
    font-family: 'Geist', sans-serif;
    display: none;
    border: 1px solid #EDEDED;
}

.aspire-calendar-tooltip.visible {
    display: block;
}

.aspire-tooltip-header {
    background: #2db6d6;
    padding: 12px 16px;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #EDEDED;
}

.aspire-tooltip-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Geist', sans-serif;
}

.aspire-tooltip-session-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.aspire-tooltip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #F3F3F3;
    transition: background-color 0.2s ease;
    gap: 10px;
}

.aspire-tooltip-item:last-child {
    border-bottom: none;
}

.aspire-tooltip-item:hover {
    background-color: #F0F0F0;
}

.aspire-tooltip-course-title {
    font-size: 14px;
    font-weight: 500;
    color: #191919;
    flex-grow: 1;
}

.aspire-tooltip-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    background: #0079A0;
    color: #FFFFFF;
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.aspire-tooltip-btn:hover {
    background: #006080;
}

.aspire-tooltip-btn.disabled {
    background: rgba(0, 121, 160, 0.12);
    color: rgba(0, 121, 160, 0.24);
    cursor: default;
    pointer-events: none;
}