/* Tutor LMS Pro Suite — Leaderboard Styles */

.tlps-lb-wrap {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tlps-lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.tlps-lb-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B4332;
    margin: 0;
}

.tlps-lb-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.tlps-lb-filter label { color: #6B7280; }

.tlps-lb-filter select {
    border: 1.5px solid #C3E8D8;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

/* Empty state */
.tlps-lb-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9CA3AF;
    font-size: 15px;
}
.tlps-lb-empty span { font-size: 48px; display: block; margin-bottom: 12px; }

/* Table wrapper */
.tlps-lb-table-wrap {
    background: #fff;
    border: 1.5px solid #C3E8D8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(5,150,105,.08);
}

.tlps-lb-table {
    width: 100%;
    border-collapse: collapse;
}

.tlps-lb-table thead tr {
    background: linear-gradient(90deg, #059669, #0891B2);
}

.tlps-lb-table thead th {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}

.tlps-lb-table tbody tr {
    border-bottom: 1px solid #F0FDF4;
    transition: background .15s;
}

.tlps-lb-table tbody tr:last-child { border-bottom: none; }
.tlps-lb-table tbody tr:hover { background: #F0FDF4; }

.tlps-lb-table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    vertical-align: middle;
}

/* Top 3 rows */
.tlps-lb-top3 { background: linear-gradient(90deg, #F0FDF4, #fff) !important; }

/* "You" row */
.tlps-lb-me {
    background: #ECFDF5 !important;
    font-weight: 600;
}

/* Rank column */
.tlps-rank-col { width: 70px; text-align: center !important; }

.tlps-rank-badge {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    font-size: 18px;
}

.tlps-rank-badge.rank-1,
.tlps-rank-badge.rank-2,
.tlps-rank-badge.rank-3 { font-size: 22px; }

/* Student name cell */
.tlps-lb-name {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.tlps-lb-name img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.tlps-me-badge {
    background: #059669;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Percentage bar */
.tlps-pct-bar-wrap {
    background: #E5E7EB;
    border-radius: 20px;
    height: 6px;
    width: 80px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.tlps-pct-bar {
    background: linear-gradient(90deg, #059669, #0891B2);
    border-radius: 20px;
    height: 100%;
    min-width: 4px;
    transition: width .4s ease;
}

.tlps-pct-num {
    font-weight: 600;
    color: #065F46;
}

/* My rank footer */
.tlps-lb-myrank {
    text-align: center;
    color: #059669;
    font-weight: 600;
    font-size: 15px;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 600px) {
    .tlps-lb-table thead th:nth-child(3),
    .tlps-lb-table tbody td:nth-child(3) { display: none; }

    .tlps-pct-bar-wrap { width: 50px; }
}
