.weekrooster {
    width: 90%;
    margin-top: 40px !important;
    color: #fff;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Josefin Sans', sans-serif;
    border: 1px solid #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px 5px #607D5C;
}

table {
    margin-bottom: 0 !important;
}

.rooster-table * {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

.rooster-table tbody td::selection,
.rooster-table tbody td::-moz-selection {
    background-color: rgba(96, 125, 92, 0.3) !important;
    color: #fff !important;
}

.rooster-table tbody td,
.rooster-table tbody th,
.rooster-table tbody tr td,
.weekrooster table tbody td {
    pointer-events: none;
    cursor: default;
}

.rooster-table tbody td:hover,
.rooster-table tbody td:focus,
.rooster-table tbody td:active,
.rooster-table tbody td:focus-visible,
.rooster-table tbody tr:hover,
.rooster-table tbody tr:focus,
.rooster-table tbody tr:active {
    background-color: transparent !important;
    background: transparent !important;
    color: #fff !important;
}

.rooster-table {
    width: 100%;
    border-collapse: collapse;
}

.rooster-table thead th {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Josefin Sans', sans-serif;
    color: #000;
    background-color: #f5f5f5;
    padding: 12px 10px;
    text-align: start;
    border: 1px solid white;
}

.rooster-table thead th:first-child {
    width: 15%;
}

.rooster-table thead th:nth-child(2) {
    width: 30%;
}

.rooster-table thead th:nth-child(3) {
    width: 55%;
}

.rooster-table tbody td {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Josefin Sans', sans-serif;
    border: 1px solid white;
    padding: 12px 16px;
    word-wrap: break-word;
    vertical-align: top;
}

.kolom-dag {
    font-weight: 600;
}

/* Training en tijdstip items styling */
.training-item,
.tijdstip-item {
    margin-bottom: 8px;
}

.training-item:last-child,
.tijdstip-item:last-child {
    margin-bottom: 0;
}

.kolom-training .training-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.training-naam {
    padding-top: 5px;
    line-height: 1.1;
}

/* Training iconen styling */
.training-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

/* Filter knoppen BUITEN het rooster */
.rooster-filters {
    display: flex;
    gap: 50px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px 0;
}

.filter-btn {
    width: 284px;
    background-color: #4D6D48;
    color: #fff;
    border: 2px solid transparent;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover {
    background-color: #5a8054;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-btn.active {
    background-color: transparent;
    border: 2px solid #fff;
}

.filter-btn .training-icon {
    width: 20px;
    height: 20px;
    margin: 0;
    filter: brightness(0) invert(1);
}

/* Verberg gefilterde rijen */
.rooster-row.hidden {
    display: none;
}

/* Media query voor tablets - schakel naar verticale layout */
@media (max-width: 1024px) {
    .rooster-filters {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .filter-btn {
        width: 284px;
    }
}

/* Responsive voor kleinere schermen */
@media (max-width: 768px) {
    .weekrooster {
        max-width: 90%;
        border-radius: 12px;
    }

    .rooster-filters {
        gap: 12px;
        padding: 40px 20px 0;
    }
    
    .filter-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 320px;
    }
    
    .filter-btn .training-icon {
        width: 18px;
        height: 18px;
    }

    .rooster-table thead {
        display: none;
    }

    .rooster-table,
    .rooster-table tbody,
    .rooster-table tr {
        display: block;
        width: 100%;
    }

    .rooster-table tbody tr {
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .rooster-table tbody td {
        display: block;
        width: 100%;
        padding: 10px 16px;
        font-size: 16px;
        text-align: left;
        border: none;
    }

    .rooster-table tbody td:last-child {
        border-bottom: none;
    }

    /* Dag krijgt speciale styling op mobiel */
    .kolom-dag {
        background-color: #fff;
        color: #000;
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 0;
    }

    /* Training items op mobiel */
    .kolom-training {
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .kolom-training .training-item {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .kolom-training .training-item:last-child {
        margin-bottom: 0;
    }

    .training-icon {
        width: 18px;
        height: 18px;
    }

    /* Tijdstip items op mobiel */
    .kolom-tijdstip {
        padding-left: 42px;
    }

    .kolom-tijdstip .tijdstip-item {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .kolom-tijdstip .tijdstip-item:last-child {
        margin-bottom: 0;
    }

    .kolom-tijdstip .tijdstip-item::before {
        content: "Tijdstip: ";
        font-weight: 600;
        display: inline;
    }
}