.timeboard-search-box {
    margin-bottom: 20px;
}

.timeboard-search-box input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 1px solid var(--light-border-color);
    font-size: 14px;
    transition: border-color 0.3s;
    color: var(--medium-text-color);
}

.timeboard-search-box input:focus {
    outline: none;
    border-color: var(--highlight-color);
}

#timeboard-resultsTable {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#timeboard-resultsTable th {
    padding: 15px;
    text-align: left;    
    text-transform: uppercase;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    font-family: var(--title-font);
}

#timeboard-resultsTable th.timeboard-sortable::after {
    content: ' ⇅';
    opacity: 0.5;
    font-size: 10px;
    display: inline;
}

#timeboard-resultsTable th.timeboard-sorted-asc::after {
    content: ' ▲';
    opacity: 1;
    display: inline;
}

#timeboard-resultsTable th.timeboard-sorted-desc::after {
    content: ' ▼';
    opacity: 1;
    display: inline;
}

#timeboard-resultsTable tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

#timeboard-resultsTable tbody tr:nth-child(even) {
    background-color: #F2F2F2;
}

#timeboard-resultsTable td {
    padding: 12px 15px;
    font-size: 14px;
}

.timeboard-team-name {
    font-weight: 600;
    color: var(--text-color);
}

.timeboard-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-color);
    font-size: 16px;
}

.timeboard-error {
    background-color: #FFEBEE;
    color: #C62828;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #C62828;
    margin-bottom: 20px;
}

.timeboard-puzzle-header{
    display: inline-block;
}

.timeboard-table-wrapper {
    overflow-x: auto;
}

.timeboard-sticky-col {
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 10;
}

#timeboard-resultsTable thead {
    background-color: var(--primary-color);
    color: white;
}

#timeboard-resultsTable thead .timeboard-sticky-col {
    background-color: var(--primary-color);
    z-index: 11;
    position: sticky;
}

#timeboard-resultsTable tbody tr:nth-child(even) .timeboard-sticky-col {
    background-color: #F2F2F2;
}

#timeboard-resultsTable thead .timeboard-puzzle-col {
    background-color: var(--primary-color);
}

.timeboard-puzzle-col {
    min-width: 120px;
    text-align: center;
}

.timeboard-duration {
    font-weight: 600;
}

@media (max-width: 768px) {
    #timeboard-resultsTable {
        font-size: 12px;
        min-width: 600px;
    }
    
    #timeboard-resultsTable th {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    #timeboard-resultsTable td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .timeboard-puzzle-col {
        min-width: 100px;
    }
    
    .timeboard-search-box input {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .timeboard-duration {
        font-size: 11px;
    }
}