/* BmPoints Leaderboards - Light & Dark Theme */

/* LIGHT THEME */
html.light-mode .bmps-leaderboards {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 20px !important;
    color: #1f2937 !important;
}

html.light-mode .bmps-tabs {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #e5e7eb !important;
    flex-wrap: wrap !important;
}

html.light-mode .bmps-tab {
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    padding: 10px 15px !important;
    cursor: pointer !important;
    color: #6b7280 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    margin-bottom: -1px !important;
}

html.light-mode .bmps-tab:hover {
    color: #1f2937 !important;
    border-bottom-color: #d1d5db !important;
}

html.light-mode .bmps-tab.active {
    color: #2d7c2d !important;
    border-bottom-color: #2d7c2d !important;
}

html.light-mode .bmps-tab-content {
    display: none !important;
}

html.light-mode .bmps-tab-content.active {
    display: block !important;
}

html.light-mode .bmps-leaderboard-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: white !important;
}

html.light-mode .bmps-leaderboard-table thead {
    background: #f3f4f6 !important;
}

html.light-mode .bmps-leaderboard-table th {
    padding: 12px 15px !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 13px !important;
}

html.light-mode .bmps-leaderboard-table td {
    padding: 12px 15px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

html.light-mode .bmps-leaderboard-table tbody tr:hover {
    background: #f9fafb !important;
}

html.light-mode .bmps-rank {
    text-align: center !important;
    width: 80px !important;
}

html.light-mode .rank-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

html.light-mode .bmps-leaderboard-table tr.first-place .rank-number {
    background: #fcd34d !important;
    color: #78350f !important;
}

html.light-mode .bmps-leaderboard-table tr.second-place .rank-number {
    background: #d1d5db !important;
    color: #1f2937 !important;
}

html.light-mode .bmps-leaderboard-table tr.third-place .rank-number {
    background: #fed7aa !important;
    color: #7c2d12 !important;
}

html.light-mode .bmps-user {
    flex: 1 !important;
}

html.light-mode .bmps-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

html.light-mode .bmps-avatar {
    flex-shrink: 0 !important;
}

html.light-mode .bmps-avatar img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: block !important;
}

html.light-mode .bmps-user-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

html.light-mode .bmps-username {
    font-weight: 600 !important;
    color: #1f2937 !important;
}

html.light-mode .bmps-profile-link {
    font-size: 12px !important;
    color: #2d7c2d !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

html.light-mode .bmps-profile-link:hover {
    color: #1f5f1f !important;
    text-decoration: underline !important;
}

html.light-mode .bmps-points {
    text-align: right !important;
    font-weight: 600 !important;
    color: #2d7c2d !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
}

html.light-mode .bmps-points-icon {
    color: #f59e0b !important;
    font-size: 16px !important;
}

html.light-mode .bmps-no-data {
    text-align: center !important;
    color: #6b7280 !important;
    padding: 30px 15px !important;
    font-style: italic !important;
}

/* DARK THEME */
html.dark-mode .bmps-leaderboards {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 6px !important;
    padding: 20px !important;
    color: #e0e0e0 !important;
}

html.dark-mode .bmps-tabs {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #333 !important;
    flex-wrap: wrap !important;
}

html.dark-mode .bmps-tab {
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    padding: 10px 15px !important;
    cursor: pointer !important;
    color: #a0a0a0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    margin-bottom: -1px !important;
}

html.dark-mode .bmps-tab:hover {
    color: #e0e0e0 !important;
    border-bottom-color: #555 !important;
}

html.dark-mode .bmps-tab.active {
    color: #3d9d3d !important;
    border-bottom-color: #3d9d3d !important;
}

html.dark-mode .bmps-tab-content {
    display: none !important;
}

html.dark-mode .bmps-tab-content.active {
    display: block !important;
}

html.dark-mode .bmps-leaderboard-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #1a1a1a !important;
}

html.dark-mode .bmps-leaderboard-table thead {
    background: #2a2a2a !important;
}

html.dark-mode .bmps-leaderboard-table th {
    padding: 12px 15px !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #e0e0e0 !important;
    border-bottom: 1px solid #333 !important;
    font-size: 13px !important;
}

html.dark-mode .bmps-leaderboard-table td {
    padding: 12px 15px !important;
    border-bottom: 1px solid #333 !important;
}

html.dark-mode .bmps-leaderboard-table tbody tr:hover {
    background: #252525 !important;
}

html.dark-mode .bmps-rank {
    text-align: center !important;
    width: 80px !important;
}

html.dark-mode .rank-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

html.dark-mode .bmps-leaderboard-table tr.first-place .rank-number {
    background: #fcd34d !important;
    color: #78350f !important;
}

html.dark-mode .bmps-leaderboard-table tr.second-place .rank-number {
    background: #737373 !important;
    color: #e0e0e0 !important;
}

html.dark-mode .bmps-leaderboard-table tr.third-place .rank-number {
    background: #c35a2d !important;
    color: #e0e0e0 !important;
}

html.dark-mode .bmps-user {
    flex: 1 !important;
}

html.dark-mode .bmps-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

html.dark-mode .bmps-avatar {
    flex-shrink: 0 !important;
}

html.dark-mode .bmps-avatar img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: block !important;
}

html.dark-mode .bmps-user-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

html.dark-mode .bmps-username {
    font-weight: 600 !important;
    color: #e0e0e0 !important;
}

html.dark-mode .bmps-profile-link {
    font-size: 12px !important;
    color: #3d9d3d !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

html.dark-mode .bmps-profile-link:hover {
    color: #5ab85a !important;
    text-decoration: underline !important;
}

html.dark-mode .bmps-points {
    text-align: right !important;
    font-weight: 600 !important;
    color: #3d9d3d !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
}

html.dark-mode .bmps-points-icon {
    color: #ffc107 !important;
    font-size: 16px !important;
}

html.dark-mode .bmps-no-data {
    text-align: center !important;
    color: #a0a0a0 !important;
    padding: 30px 15px !important;
    font-style: italic !important;
}
