/* Overall Performance Table Styles */

.betformatics-performance-wrapper {
    margin-top: 40px;
    padding: 30px;
    background-color: #000000;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 0 10px rgba(126, 217, 87, 0.3);
}

.betformatics-performance-table {
    width: 100%;
    border-collapse: collapse;
    color: #dbdbdb;
    background-color: #000000;
}

.betformatics-performance-table th,
.betformatics-performance-table td {
    width: 16.66%; /* Ensure each column has equal width */
    padding: 12px;
    text-align: left;
}

.betformatics-performance-table th {
    background-color: #7ed957;
    color: #000000;
    font-weight: bold;
    border-bottom: 2px solid #dbdbdb;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.betformatics-performance-table td {
    border-bottom: 1px solid #333;
    font-size: 15px;
}

.betformatics-performance-table td.positive {
    color: #7ed957;
}

.betformatics-performance-table td.negative {
    color: #ffff00;
}

/* Style for the Toggle Buttons (30 days, 365 days, Overall) */
.betformatics-performance-toggle {
    margin-bottom: 30px;
    text-align: left;
}

.betformatics-performance-toggle .button {
    background-color: #ffff00; /* Yellow */
    color: #000000;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    margin-right: 10px;
    text-decoration: none;
    display: inline-block;
}

.betformatics-performance-toggle .button:hover,
.betformatics-performance-toggle .button.active {
    background-color: transparent;
    color: #ffff00; /* Yellow text */
    border: 2px solid #ffff00; /* Yellow border */
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .betformatics-performance-wrapper {
        padding: 20px 15px;
    }

    .betformatics-performance-table td,
    .betformatics-performance-table th {
        font-size: 12px;
        padding: 6px;
    }

    .betformatics-performance-toggle .button {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 10px; /* Add margin for spacing between buttons */
    }

    /* Align table rows horizontally instead of stacking them vertically */
    .betformatics-performance-table td {
        display: flex;
        justify-content: space-between;
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    /* Hide headers on mobile */
    .betformatics-performance-table th {
        display: none;
    }

    /* Show the labels before the data in each column on mobile */
    .betformatics-performance-table td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        margin-right: 5px;
        color: #7ed957;
    }

    /* Display labels for each column */
    .betformatics-performance-table td:nth-child(1):before {
        content: "Spilforslag";
    }

    .betformatics-performance-table td:nth-child(2):before {
        content: "Vundet";
    }

    .betformatics-performance-table td:nth-child(3):before {
        content: "Tabt";
    }

    .betformatics-performance-table td:nth-child(4):before {
        content: "Hitrate";
    }

    .betformatics-performance-table td:nth-child(5):before {
        content: "Samlet profit";
    }

    .betformatics-performance-table td:nth-child(6):before {
        content: "ROI";
    }

    /* Show/hide specific columns based on importance */
    .betformatics-performance-table td:nth-child(6) { /* ROI */
        display: none; /* Hide ROI on mobile for compact view */
    }
}
