/* Apply the same styling to clb-tabs, clb-tabs-leaderboard, and clb-tabs-winners */
.clb-tabs,
.clb-tabs-leaderboard,
.clb-tabs-winners {
    list-style: none;
    display: flex;
    padding: 0;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow tabs to wrap into multiple rows */
    gap: 10px;
}

.clb-tabs .clb-tab,
.clb-tabs-leaderboard .clb-tab,
.clb-tabs-winners .clb-tab {
    flex: 1 1 calc(50% - 10px); /* Two tabs per row */
    padding: 12px 10px;
    cursor: pointer;
    border: 1px solid transparent; /* Full border around the tab */
    background-color: #3BA1DA; /* Default tab background color */
    color: #fff; /* Font color */
    border-radius: 8px; /* Fully rounded corners for the tab */
    text-align: center;
    font-size: 14px;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
    font-weight: bold;
}

.clb-tabs .clb-tab:hover,
.clb-tabs-leaderboard .clb-tab:hover,
.clb-tabs-winners .clb-tab:hover {
    background-color: #FF6F00; /* Hover tab background color */
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

.clb-tabs .clb-tab.active,
.clb-tabs-leaderboard .clb-tab.active,
.clb-tabs-winners .clb-tab.active {
    background-color: #FF6F00; /* Active tab color */
    color: #fff; /* Font color for active tab */
    border: 1px solid #3BA1DA; /* Active tab border */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for active tabs */
    z-index: 1; /* Ensure the active tab is above the content */
}









/* =========================================
   Leaderboard Styling (Orange and Blue)
========================================= */

/* Leaderboard Tabs Styling */
.clb-container.custom-leaderboard .clb-tabs {
    list-style: none;
    display: flex;
    padding: 0;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow tabs to wrap into multiple rows */
    gap: 10px; /* Add spacing between tabs */
}

.clb-container.custom-leaderboard .clb-tab {
    flex: 1 1 calc(50% - 10px); /* Two tabs per row */
    padding: 12px 10px;
    cursor: pointer;
    border: 1px solid transparent; /* Full border around the tab */
    background-color: #3BA1DA; /* Default tab background color */
    color: #fff; /* Font color */
    border-radius: 8px; /* Fully rounded corners for the tab */
    text-align: center;
    font-size: 14px;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
    font-weight: bold;
}

.clb-container.custom-leaderboard .clb-tab:hover {
    background-color: #FF6F00; /* Hover tab background color */
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

.clb-container.custom-leaderboard .clb-tab.active {
    background-color: #FF6F00; /* Active tab color */
    color: #fff; /* Font color for active tab */
    border: 1px solid #3BA1DA; /* Active tab border */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for active tabs */
    z-index: 1; /* Ensure the active tab is above the content */
}

/* Leaderboard Table Visibility */
.clb-container.custom-leaderboard .clb-table {
    display: none;
}

.clb-container.custom-leaderboard .clb-table.active {
    display: block;
}

/* Leaderboard Table Styling */
.clb-container.custom-leaderboard .clb-table-wrapper {
    overflow-x: auto; /* Enable horizontal scrolling for the table */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
    border: 1px solid #ddd; /* Optional border */
    border-radius: 8px; /* Rounded corners */
    padding: 10px; /* Spacing around the table */
}

/* Leaderboard Table Rows and Columns */
.clb-container.custom-leaderboard .clb-leaderboard-table {
    min-width: 600px; /* Maintain structure on small screens */
    width: 100%; /* Ensure it fits within the wrapper */
    border-collapse: collapse;
}

.clb-container.custom-leaderboard .clb-leaderboard-table th,
.clb-container.custom-leaderboard .clb-leaderboard-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
    font-size: 14px;
}

.clb-container.custom-leaderboard .clb-leaderboard-table th {
    background-color: #333; /* Header background */
    color: #fff; /* Header text color */
    font-weight: bold;
}

.clb-container.custom-leaderboard .clb-leaderboard-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.clb-container.custom-leaderboard .clb-leaderboard-table tr:hover {
    background-color: #f1f1f1;
}

/* Winner Row Styling */
.clb-container.custom-leaderboard .clb-leaderboard-table tbody tr:first-child td:nth-child(8) {
    background-color: #d4f8d4; /* Light green */
    color: #000; /* Black text */
    font-weight: bold;
}










/*Customizes the help icon of the efficiency bonus */
/* Customizes the help icon of the efficiency bonus */

/* Customizes the help icon of the efficiency bonus */
/* Customizes the help icon of the efficiency bonus */

.help-icon {
    display: inline-block;
    margin-left: 5px;
    width: 22px;
    height: 22px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background-color: #FF6F00;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative; /* Ensure proper positioning for tooltip if needed */
}

.help-icon:hover {
    background-color: #3BA1DA;
}

.help-tooltip {
    position: absolute;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    z-index: 1000; /* Ensure it's above other elements */
    max-width: 90vw; /* Prevent tooltip from exceeding viewport width */
    box-sizing: border-box; /* Include padding in width calculations */
    word-wrap: break-word; /* Break long words to prevent overflow */
    /* Removed display: none to handle visibility via JavaScript */
    /* display: block; */
}














/* =========================================
   Latest Winners Styling (Grey, Silver, White)
========================================= */

/* Latest Winners Tabs Styling */
.clb-container.latest-winners .clb-tabs {
    list-style: none;
    display: flex;
    padding: 0;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow tabs to wrap into multiple rows */
    gap: 10px; /* Add spacing between tabs */
}

.clb-container.latest-winners .clb-tab {
    flex: 1 1 calc(50% - 10px); /* Two tabs per row */
    padding: 12px 10px;
    cursor: pointer;
    border: 1px solid #ccc; /* Silver border */
    background-color: #f9f9f9; /* Light grey background */
    color: #333; /* Dark grey text */
    border-radius: 8px; /* Fully rounded corners for the tab */
    text-align: center;
    font-size: 14px;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
    font-weight: bold;
}

.clb-container.latest-winners .clb-tab:hover {
    background-color: #ddd; /* Hover tab background color */
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow for depth */
}

.clb-container.latest-winners .clb-tab.active {
    background-color: #ccc; /* Active tab color */
    color: #000; /* Font color for active tab */
    border: 1px solid #999; /* Active tab border */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for active tabs */
    z-index: 1; /* Ensure the active tab is above the content */
}

/* Latest Winners Table Visibility */
.clb-container.latest-winners .clb-table {
    display: none;
}

.clb-container.latest-winners .clb-table.active {
    display: block;
}

/* Latest Winners Table Styling */
.clb-container.latest-winners .clb-table-wrapper {
    overflow-x: auto; /* Enable horizontal scrolling for the table */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
    border: 1px solid #ccc; /* Optional border */
    border-radius: 8px; /* Rounded corners */
    padding: 10px; /* Spacing around the table */
}

/* Latest Winners Table Rows and Columns */
.clb-container.latest-winners .clb-leaderboard-table {
    min-width: 600px; /* Maintain structure on small screens */
    width: 100%; /* Ensure it fits within the wrapper */
    border-collapse: collapse;
}

.clb-container.latest-winners .clb-leaderboard-table th,
.clb-container.latest-winners .clb-leaderboard-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
    font-size: 14px;
}

.clb-container.latest-winners .clb-leaderboard-table th {
    background-color: #eee; /* Header background */
    color: #333; /* Header text color */
    font-weight: bold;
}

.clb-container.latest-winners .clb-leaderboard-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.clb-container.latest-winners .clb-leaderboard-table tr:hover {
    background-color: #ddd;
}

/* Winner Row Styling for Latest Winners */
.clb-container.latest-winners .clb-leaderboard-table tbody tr:first-child td:last-child {
    background-color: #e2e3e5; /* Light grey */
    color: #212529; /* Dark grey text */
    font-weight: bold;
}

/* =========================================
   Responsive Adjustments for Both Tables
========================================= */
@media screen and (max-width: 767px) {
    .clb-tab {
        font-size: 12px; /* Smaller font size for tabs */
    }

    .clb-leaderboard-table th,
    .clb-leaderboard-table td {
        font-size: 12px; /* Adjust font size for smaller screens */
        padding: 6px; /* Reduce padding */
    }

    .clb-table-wrapper {
        padding: 5px; /* Reduce padding for smaller screens */
    }
}















