/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
}

table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    color: #666;
    font-size: 14px;
}

table tbody tr:hover {
    background: #f8f9fa;
}

/* Leaderboard */
.leaderboard {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.leaderboard-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    background: #f8f9fa;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item.first {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border-bottom: 2px solid #ffd700 !important;
}

.leaderboard-item.first .rank {
    background: #ffd700;
    color: #333;
}

.leaderboard-item.second {
    background: linear-gradient(135deg, #f5f5f5 0%, #f9f9f9 100%);
}

.leaderboard-item.second .rank {
    background: #c0c0c0;
    color: white;
}

.leaderboard-item.third {
    background: linear-gradient(135deg, #fef5f0 0%, #fffaf8 100%);
}

.leaderboard-item.third .rank {
    background: #cd7f32;
    color: white;
}

.rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    margin-right: 20px;
    background: #e0e0e0;
    color: white;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.player-score {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    text-align: right;
}

.score-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

/* Scores List */
.scores-list {
    max-height: 200px;
    overflow-y: auto;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
}

.score-item:last-child {
    border-bottom: none;
}

.score-player {
    color: #333;
    font-weight: 500;
}

.score-points {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

/* Steps/Questions Table */
.steps-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.steps-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.steps-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steps-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    color: #666;
    font-size: 14px;
}

.steps-table tbody tr:hover {
    background: #f8f9fa;
}

.step-question {
    font-weight: 500;
    color: #333;
}
