th:nth-child(2) {
    text-align: left;
}

td:nth-child(2) {
    text-align: left;
}

tr:nth-child(even) {
    background-color: #fff;
}

tr:nth-child(odd) {
    background-color: #fafafa;
}

.rank-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 13px;
}

.rank-higher { background-color: #4CAF50; }  /* Green */
.rank-lower { background-color: #f44336; }   /* Red */
.rank-same { background-color: #ff9800; }    /* Orange */

.team-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.expected-cell {
    text-align: center;
    font-size: 1em;
}

.column-header {
    border-bottom: none;
    color: inherit;
    font-weight: bold;
    text-align: center;
    padding: 12px;
}

.bottom-border {
    border-bottom: 1px solid #0a0a0a;
}



/* Add width control for specific columns */
#standingsTable th:nth-child(2),
#standingsTable td:nth-child(2) {
    text-align: left;
    width: 100px;  /* Reduced from 160px */
}

/* Make other columns more compact */
#standingsTable th:not(:nth-child(2)),
#standingsTable td:not(:nth-child(2)) {
    width: 35px;
    padding-left: 4px;
    padding-right: 4px;
}

/* Update header color */
th {
    background-color: white;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
}

.rank-lower {
    background-color: #dc3545;
}

#standingsTable th:hover {
    background-color: #e9ecef;
}

#standingsTable tbody tr:hover {
    background-color: #e9ecef !important;
    cursor: pointer;
}

.divider {
    border-left: 2px solid #0b0b0b;
} 

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.download-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #35b0ab;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.download-button:hover {
    background-color: #2a8f8a;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

#standingsTable {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: white;
    font-size: 14px;
}

#standingsTable th {
    padding: 8px 10px;
    text-align: center;
   
}

#standingsTable td {
    padding: 7px 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
   
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.historical-link {
        text-align: center;
        margin: 20px 0 30px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }

.historical-link p {
    margin-bottom: 12px;
    color: #666;
    font-size: 1.1em;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #15607A;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #0f4559;
}

.date-control {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 20px;
    width: 100%;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 800px;
}

.range-wrapper {
    position: relative;
    width: 500px;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.date-slider {
    position: absolute;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 5px;
    border-radius: 5px;
    outline: none;
    opacity: 1;
    pointer-events: none;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 2;
}

/* Chrome */
.date-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #15607A;
    cursor: pointer;
    pointer-events: all;
    border: none;
    box-shadow: 0 0 0 3px white;
    position: relative;
    z-index: 3;
}

/* Firefox */
.date-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #15607A;
    cursor: pointer;
    pointer-events: all;
    border: none;
    box-shadow: 0 0 0 3px white;
    position: relative;
    z-index: 3;
}

#startSlider {
    background: transparent;
}

#endSlider {
    background: transparent;
}

.range-wrapper::before {
    content: '';
    position: absolute;
    height: 5px;
    background: #ddd;
    left: 0;
    right: 0;
    z-index: 0;
}

#startDateLabel, #selectedDate {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    min-width: 85px;
}

#startDateLabel {
    text-align: right;
}

#selectedDate {
    text-align: left;
}

.league-select {
    margin-bottom: 20px;
    text-align: center;
}

select {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 16px;
}

.date-nav-btn {
    padding: 8px 16px;
    background: #15607A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
}

.date-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sortable {
    cursor: pointer;
}

.sortable.asc::after {
    content: " ↑";
    color: #15607A;
}

.sortable.desc::after {
    content: " ↓";
    color: #15607A;
}

th.bottom-border {
    cursor: pointer;
    position: relative;
    user-select: none;
}

th.bottom-border:hover {
    background-color: #f5f5f5;
}

tbody[data-sort-order="asc"] th.bottom-border::after {
    content: " ↑";
    color: #15607A;
}

tbody[data-sort-order="desc"] th.bottom-border::after {
    content: " ↓";
    color: #15607A;
}

/* Voeg een nieuwe pseudo-element toe voor het geselecteerde bereik */
.range-wrapper::after {
    content: '';
    position: absolute;
    height: 5px;
    background: #15607A;
    left: var(--start-pos, 0%);
    right: var(--end-pos, 0%);
    z-index: 1;
}