/* Algemene styling */
.makebingo {
    margin: 20px auto 28px;
    padding: 18px 18px 22px;
    max-width: 1200px;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
    border-radius: 16px;
    border: 1px solid rgba(6, 23, 43, 0.08);
    box-shadow: 0 20px 36px rgba(6, 23, 43, 0.16), 0 6px 16px rgba(6, 23, 43, 0.08);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Tabel styling */
.bingo-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: left;
    background-color: transparent;
}

.bingo-table th, .bingo-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(6, 23, 43, 0.08);
    vertical-align: middle;
}

/* Header styling */
.bingo-table thead th {
    background: linear-gradient(135deg, #0da6c8, #16DFF1);
    color: #ffffff;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: none;
}

/* Rijen styling */
.bingo-table tbody tr {
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    background: rgba(255, 255, 255, 0.4);
}

/* Geselecteerde rij: blauwe achtergrond, witte tekst en cover in kleur */
.bingo-table tbody tr.selected {
    background: linear-gradient(120deg, rgba(22, 223, 241, 0.25), rgba(6, 23, 43, 0.08));
    color: #042f45;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bingo-table tbody tr.selected td {
    color: #042f45;
}

/* Zwart-wit effect op de albumhoes (standaard) */
.track-cover {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    filter: grayscale(100%);
}

/* Bij selectie wordt de albumhoes weer in kleur getoond */
.bingo-table tbody tr.selected .track-cover {
    filter: none;
}

/* Tekst standaard lichter maken */
.bingo-table tbody td {
    font-size: 14px;
    color: #888;
}

.bingo-table tbody tr:hover {
    background: rgba(22, 223, 241, 0.08);
}

.bingo-table td:first-child,
.bingo-table th:first-child {
    width: 68px;
    text-align: center;
}

/* Knoppen styling */
button {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Algemene stijl voor alle actieknoppen */
.generate-bingo-btn, .bingo-btn {
    background: linear-gradient(135deg, #06172B, #0f3156);
    color: #f4f7fb;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.25px;
    box-shadow: 0 10px 24px rgba(6, 23, 43, 0.22), 0 2px 6px rgba(6, 23, 43, 0.12);
}

/* Hover effect voor knoppen */
.generate-bingo-btn:hover, .bingo-btn:hover {
    background: linear-gradient(135deg, #0a2948, #143d66);
    transform: translateY(-1px);
}

/* Uitgeschakelde knop (grijs en niet klikbaar) */
.generate-bingo-btn.disabled-btn {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Knoppenbalk boven de tabel (sticky bij scrollen) */
.bingo-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 700;
    position: sticky;
    top: 12px;
    z-index: 1000;
    box-shadow: 0 12px 36px rgba(6, 23, 43, 0.22), 0 4px 12px rgba(6, 23, 43, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(6, 23, 43, 0.08);
    backdrop-filter: blur(10px);
}

#selectedCount {
    font-size: 17px;
    color: #06172B;
}

.bingo-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.bingo-actions--sticky {
    position: sticky;
    bottom: 12px;
    z-index: 900;
    padding: 12px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.95));
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(6, 23, 43, 0.12);
}

.manual-selection .bingo-actions--sticky {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 90%);
}

.manual-selection .makebingo {
    padding-bottom: 110px;
}

.manual-selection .bingo-actions {
    display: none;
}

.bingo-sticky-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 90%);
    display: flex;
    justify-content: center;
    padding: 12px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98));
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(6, 23, 43, 0.12);
    z-index: 1100;
}

.bingo-sticky-bar.hidden {
    display: none;
}

.generate-bingo-btn {
    padding: 14px 24px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, #0d6efd, #2EC4E7);
}

@media (max-width: 768px) {
    .makebingo {
        padding: 12px;
        max-width: 100%;
    }

    .bingo-controls {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        top: 8px;
    }

    .bingo-btn {
        width: 100%;
        font-size: 13px;
        padding: 10px 12px;
    }

    .generate-bingo-btn {
        width: 100%;
        margin-top: 30px;
    }

    .bingo-table th, .bingo-table td {
        font-size: 12px;
        padding: 3px;
    }

    .track-cover {
        width: 30px;
        height: 30px;
    }
}
