/* Spinner styles */
.spinner-container {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled state */
body.disabled {
    overflow: hidden;
}

/* Basic styles for the entire page */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6; /* Increase line height for better readability */
}

/* Basic table styles */
#data-table {
    width: 100%;
    border-collapse: collapse;
}

#data-table th,
#data-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

/* Header styles */
#data-table thead {
    background-color: #78A33C;
    color: white;
}

#data-table th {
    position: sticky;
    top: 0;
    background-color: #78A33C; /* Ensure the background color is the same as the header */
    z-index: 1; /* Ensure the header stays on top */
}

/* Alternating row colors */
#data-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Basic dropdown styles */
#season-dropdown {
    padding: 10px;
    border: 1px solid #ddd;
}

#category-dropdown {
    padding: 10px;
    border: 1px solid #ddd;
}

/* Dropdown hover & focus styles */
#category-dropdown:hover,
#category-dropdown:focus {
    border-color: #78A33C;
}

.narrow-column {
    width: 50px;  /* Adjust this value to your needs */
}

/* Right align for Punkte column */
#data-table th.right-align,
#data-table td.right-align {
    text-align: right;
}

/* Tooltip styles */
.tooltip-header {
    position: relative;
    cursor: pointer;
}

.tooltip-header::after {
    content: attr(data-tooltip);
    position: absolute;
    background-color: black;
    color: white;
    font-weight: bold;
    padding: 5px;
    border-radius: 5px;
    top: 100%; /* Position the tooltip below the target */
    left: 100%; /* Align the tooltip's right edge with the target's right edge */
    transform: translateX(-100%); /* Shift the tooltip left to anchor its right side */
    white-space: nowrap;
    display: none;
    z-index: 1;
}

.tooltip-header:hover::after {
    display: block;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    #data-table thead {
        display: none;
    }

    #data-table tr {
        margin-bottom: 10px;
        display: block;
        border-bottom: 2px solid #ddd;
    }

    #data-table td {
        display: block;
        text-align: right;
        border-bottom: 1px dotted #ccc;
    }

    #data-table td::before {
        content: attr(data-label);
        float: left;
        text-transform: uppercase;
        font-weight: bold;
    }
}