.sorted-asc::after {
    content: " ↑";
    color: #666;
}

.sorted-desc::after {
    content: " ↓";
    color: #666;
}

#statsTable th {
    cursor: pointer;
    padding: 12px 8px;
    text-align: center;
    white-space: nowrap;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
    color: #444;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: pre-line;
    height: 60px;
    vertical-align: middle;
    max-width: 80px; /* Limit column width */
}

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

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

#statsTable td {
    padding: 16px 8px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.team-logo {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 10px;
    object-fit: contain;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

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


.subtitle {
    color: #666;
    font-size: 16px;
    margin: 8px 0 24px 0;
    line-height: 1.5;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#statsTable {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.player-cell {
    text-align: left !important;
    display: flex;
    align-items: center;
    padding: 8px 0 8px 16px !important;
    width: 180px;
}

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

.search-container {
    margin: 20px 0;
}

#searchInput {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 16px;
}

#statsTable th:first-child + th {
    padding-left: 0;
}

#statsTable td:first-child + td {
    padding-left: 0;
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
}

.page-btn:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-btn:hover:not(:disabled) {
    background-color: #f8f9fa;
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-number {
    padding: 4px 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.page-number.active {
    color: #000;
    font-weight: 500;
}

.page-ellipsis {
    color: #666;
    padding: 4px 8px;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #35b0ab;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Special widths for specific columns */
#statsTable th:first-child,
#statsTable td:first-child {
  min-width: 150px; /* Player name column */
  max-width: 200px;
  text-align: left;
}

/* Numeric columns */
#statsTable th:not(:first-child),
#statsTable td:not(:first-child) {
  max-width: 80px;
  min-width: 60px;
  text-align: center;
}
@media screen and (max-width: 768px) {
    #statsTable {
        font-size: 12px; /* Verklein de lettergrootte */
    }

    #statsTable th,
    #statsTable td {
        padding: 8px 4px; /* Verklein de padding */
        font-size: 9px;
    }

    #statsTable th:first-child,
    #statsTable td:first-child {
        min-width: 100px; /* Verklein de minimale breedte van de eerste kolom */
        max-width: 150px;
    }

    #statsTable th:not(:first-child),
    #statsTable td:not(:first-child) {
        max-width: 50px; /* Verklein de maximale breedte van de andere kolommen */
        min-width: 40px;
    }

    .player-cell {
        width: 150px; /* Verklein de breedte van de player cell */
    }
}

@media screen and (max-width: 480px) {
    #statsTable {
        font-size: 10px; /* Verklein de lettergrootte nog verder */
    }

    #statsTable th,
    #statsTable td {
        padding: 6px 3px; /* Verklein de padding nog verder */
        font-size: 8px;
    }

    #statsTable th:first-child,
    #statsTable td:first-child {
        min-width: 80px; /* Verklein de minimale breedte van de eerste kolom nog verder */
        max-width: 120px;
    }

    #statsTable th:not(:first-child),
    #statsTable td:not(:first-child) {
        max-width: 40px; /* Verklein de maximale breedte van de andere kolommen nog verder */
        min-width: 30px;
    }

    .player-cell {
        width: 120px; /* Verklein de breedte van de player cell */
    }
}