/* Sidebar CSS */
.lidom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1200;
    pointer-events: none;
}

.lidom-overlay.active {
    pointer-events: all;
}

/* exported helper class used to toggle states from the component */
.active { --clmc-active: 1; }

.lidom-overlay.active {
    visibility: visible;
    opacity: 1;
}

.lidom-leaderboard-sidebar {
    position: fixed;
    top: 0;
    right: -520px; /* negative of max-width to hide off-screen */
    max-width: 500px; /* larger width for improved table layout */
    height: 100vh;
    background-image: url(	https://www.superbets.com.do/static/images/lidom/body-bkg.webp);
    color: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.45);
    transition: right 0.32s cubic-bezier(.2,.9,.2,1);
    z-index: 1200;
}

.lidom-leaderboard-sidebar.active {
    right: 0;
}

.lidom-open-sidebar-btn {
    position: fixed;
    bottom: 12px;
    right: 20px;
    padding: 12px 20px;
    background-color: #2c2c2c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1200;
    transition: transform 0.2s ease-in-out;
}

.lidom-open-sidebar-btn:hover {
    transform: scale(1.05);
    background-color: #3c3c3c;
}

.lidom-close-sidebar-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}

.lidom-close-sidebar-btn:hover {
    transform: scale(1.1);
    color: #ff4444;
}

.lidom-sidebar-content {
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 40px); /* Full height minus padding */
}

.lidom-sidebar-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.lidom-leaderboard-table {
    border-collapse: collapse;
    margin-top: 20px;
    max-width: 20;
}

.lidom-leaderboard-table th,
.lidom-leaderboard-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #2c2c2c;
}

.lidom-leaderboard-table th {
    background-color: #222;
    font-weight: bold;
}

.lidom-leaderboard-table tr:hover td {
    background-color: #1a1a1a;
}

.lidom-bet-button {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    background-color: #73E706;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.lidom-bet-button:hover {
    transform: scale(1.05);
    background-color: #73E706;
}

@media (max-width: 1110px) {
    .lidom-open-sidebar-btn {
        bottom: 64px;
    }
}

/* Responsive styles */
@media (max-width: 480px) {
    .lidom-leaderboard-sidebar {
        max-width: 100%;
    }
    
    .lidom-open-sidebar-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .lidom-sidebar-content {
        padding: 15px;
    }
    
    .lidom-leaderboard-table th,
    .lidom-leaderboard-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
}