.month-delimiter {
    display: flex;
    align-items: center;
    margin: 0 3rem 0.7rem 3rem;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.month-delimiter::before,
.month-delimiter::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.month-delimiter::before {
    margin-right: 4px;
}

.month-delimiter::after {
    margin-left: 4px;
}

.month-delimiter-text {
    white-space: nowrap;
}

/* Month matches container styling */
.month-events-container {
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow flex item to shrink */
}

.month-matches-header {
    flex-shrink: 0;
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    border-bottom: 1px solid #f1f1f1;
    margin-bottom: 0;
}

.month-events-content {
    flex: 1;
    overflow-y: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: 30vh;
}

.month-event-link {
    display: flex; /* Change to flex for better layout control */
    padding: 0.5rem 0.75rem;
    padding-left: 0; /* Remove left padding since handle will provide spacing */
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.15s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.month-event-link:hover {
    background-color: #f8f9fa;
}

.month-event-date {
    font-size: 0.8rem;
    line-height: 1.1;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.month-event-title {
    font-size: 0.9rem;
    font-weight: 390;
}

.event-color-indicator {
    display: block; /* Change to block for full height */
    width: 10px; /* Wider handle */
    min-width: 5px; /* Ensure it doesn't shrink */
    flex-shrink: 0; /* Prevent shrinking */
    margin-right: 0.75rem; /* Space between handle and content */
    align-self: stretch; /* Stretch to full height of parent */
    border-radius: 0; /* Remove border radius for cleaner look */
}

.month-event-content {
    flex: 1; /* Take up remaining space */
    min-width: 0; /* Allow content to shrink if needed */
}

/* Custom scrollbar for month events */
.month-events-content::-webkit-scrollbar {
    width: 6px;
}

.month-events-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.month-events-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.month-events-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

@media (min-width: 992px) {
    .month-events-container {
        flex: none;
        height: 30%;
        min-height: 0;
        overflow: hidden;
    }

    .month-events-content {
        height: 100%;
        min-height: 0;
        overflow-y: auto;
    }
}
