/* Basis layout + toegankelijkheid */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #222;
    line-height: 1.6;
}

header {
    padding: 20px;
    background: #0055ff;
    color: white;
    text-align: center;
}

nav button {
    margin: 6px;
    padding: 6px 14px;
    cursor: pointer;
}

main {
    padding: 20px;
}

#chat-window {
    height: 60vh;
    overflow-y: auto;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

/* Chat bubbles */
.msg-user {
    text-align: right;
    margin-bottom: 12px;
}

.msg-bot {
    text-align: left;
    margin-bottom: 12px;
}

.msg {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 75%;
}

.msg-user .msg {
    background: #0055ff;
    color: white;
}

.msg-bot .msg {
    background: #e5e5e5;
}

/* Form */
#chat-form {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

#message {
    flex: 1;
    padding: 10px;
    font-size: 18px;
}

/* Voorlezen highlight */
.reading {
    background: yellow !important;
    color: black !important;
}

/* Visually hidden voor screenreaders */
.visually-hidden {
    position: absolute;
    left: -9999px;
}

/* Uitbreidingen toegankelijkheid */
.bigtext body, .bigtext #message, .bigtext .msg {
    font-size: 24px !important;
}

.highcontrast {
    background: black !important;
    color: white !important;
}

.highcontrast #chat-window {
    border-color: white !important;
}

.dyslexia * {
    font-family: "OpenDyslexic", Arial, sans-serif !important;
}
