
.leaderboard {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f7f7f7 0%, #e8e8e8 100%);
}

#leaderboard-container {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;

}

/* Let the table grow as wide as needed */
table.leaderboard {
    width: 100%;
    min-width: auto;
    table-layout: auto;
}

/* Allow the full leaderboard to become wider than the screen
table.leaderboard {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

*/


.leaderboard th,
.leaderboard td {
    padding: 12px 20px;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}



.leaderboard th {
    background-color: #2a2a2a;
    color: white;
    font-weight: 600;
}

.leaderboard td {
    background-color: #fff;
    color: #333;
}

.leaderboard tr:hover td {
    background-color: #2184b3;
    color: white; /* added for better contrast on hover */
}

.leaderboard td:first-child {
    font-weight: 700;
    background-color: #e8e8e8;
}

/* Correct / Incorrect Answer Styles */
.leaderboard .correct {
    background-color: green;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

.leaderboard .incorrect {
    background-color: #f1142b;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

/* Pending Answer Style */
.leaderboard .pending {
    background-color: yellow;
    color: black;
    font-weight: bold;
    border-radius: 4px;
}

/* Inconclusive Answer Style */
.leaderboard .inconclusive {
    background-color: green;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

/* No response style */
.leaderboard .no-response {
    background-color: #f5f5f5;
    color: #6c757d;
    font-weight: bold;
    border-radius: 4px;
}

/* Optional: style for smaller header text if needed */
.leaderboard th span {
    font-size: 12px;
    display: block;
    color: #ccc;
}
#leaderboard {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #1565c0; /* matches your accent, change as you like */
    letter-spacing: 0.08em;
    font-family: "Agency FB";
}
tr.current-user-row td {
    font-weight: bold;

    position: relative;
    z-index: 10;
    transition: box-shadow 0.2s, background 0.2s;
}

/* Shimmer/Glisten effect */
tr.current-user-row {
    position: relative;
    overflow: hidden;
}
tr.current-user-row::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 60%; height: 100%;
    pointer-events: none;
    background: linear-gradient(
            120deg,
            rgba(255,255,255, 0) 0%,
            rgba(255,255,255, 0.90) 45%,
            rgba(255,255,255, 1.0) 55%,
            rgba(255,255,255, 0) 100%
    );
    opacity: 0.8;
    z-index: 20;
    animation: glisten 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 1.8s;
}
@keyframes glisten {
    0%   { left: -80%; opacity: 0; }
    8%   { opacity: 0.92; }
    65%  { left: 110%; opacity: 1; }
    90%  { opacity: 0.2; }
    100% { left: 110%; opacity: 0; }
}
.current-user-name {
    font-weight: bold;
    letter-spacing: 0.7px;
    color: #1400ff; /* Change text color to red */
}




.pagination {
    margin: 24px 0;
    text-align: center;
    font-size: 1.08em;
    letter-spacing: 0.01em;
}

.pagination a {
    display: inline-block;
    color: #1565c0;
    background: #f4f7fa;
    border-radius: 5px;
    padding: 6px 14px;
    margin: 0 4px;
    text-decoration: none;
    border: 1px solid #c8def3;
    transition: background 0.18s, color 0.18s;
    font-weight: 600;
}
.pagination a:hover, .pagination a:focus {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
}


.result-with-points {
    min-width: 82px;
    padding: 7px 8px !important;

    text-align: center;
    white-space: nowrap;
}

.result-symbol {
    display: inline-block;

    margin-right: 5px;

    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.result-points {
    display: inline-block;

    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.result-points.positive {
    color: #ffffff;
}

.result-points.negative {
    color: #ffffff;
}

.result-points.neutral {
    color: #666666;
}

.result-confidence {
    display: block;

    margin-top: 4px;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0.75;
}

