body {
    font-family: Arial, sans-serif;
    background-color: #e0f2f7;
    text-align: center;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h1 {
    color: #004080;
    font-size: 2em;
    margin: 0 auto;
}

button {
    background-color: #004080;
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #0056b3;
}

#main-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
}

#left-panel, #right-panel-buttons {
    flex-basis: 280px;
    flex-shrink: 0;
    padding: 20px;
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    background-color: #f0faff;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#center-panel {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#roosterCanvas {
    border: 2px solid #004080;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.control-group label {
    font-weight: bold;
    color: #333;
}

.control-group label.radio-inline {
    font-weight: normal;
}

.control-group select, .control-group input[type="range"] {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #aaddff;
    font-size: 1em;
    box-sizing: border-box;
}

#right-panel-buttons button {
    width: 100%;
}

/* AANGEPAST: Styling voor de bewerkings- en aantal-keuzes */
#bewerking-keuze, div > div label.radio-inline {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
}

/* AANGEPAST: Layout voor de tafel-keuze */
#tafelKeuze {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

#tafelKeuze label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid transparent;
}
#tafelKeuze label:hover {
    background-color: #e0f2f7;
    border-color: #aaddff;
}

#tafelKeuze input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
}


@media (max-width: 900px) {
    #main-content {
        flex-direction: column;
        align-items: center;
    }
    #left-panel, #right-panel-buttons, #center-panel {
        flex-basis: auto;
        width: 100%;
        max-width: 550px;
    }
}