body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f9;
    color: #222;
    font-size: 1.2rem;
}

/* Optional page wrapper if you use it elsewhere */
.page {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
}

/* ====== BRAND HEADER MET LOGO'S ====== */
.brand-header {
    text-align: center;
    padding: 25px 10px 16px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 12px;
    background-color: #f7f7f9;
}

.brand-logos {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.brand-logos img {
    max-height: 60px;
    object-fit: contain;
    opacity: 0.95;
}

.brand-divider {
    font-size: 24px;
    font-weight: 300;
    color: #777;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #444;
    margin: 0;
}

.brand-caption {
    text-align: center;
    color: #555;
    margin: 6px 0 10px;
}

/* Oude header-logos klasse kun je laten staan als je die nog ergens gebruikt */
.header-logos {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.header-logos img {
    max-height: 80px;
    object-fit: contain;
}

/* ====== TITEL EN CAPTION (fallback) ====== */
h1 {
    text-align: center;
    margin: 8px 0 4px;
}

.caption {
    text-align: center;
    color: #555;
    margin-bottom: 16px;
}

/* ====== CHAT CONTAINER ====== */
.chat-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;

    max-width: 800px;
    width: 100%;
    margin: 0 auto 20px;

    height: 80vh;
    max-height: 400px;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

/* ====== CHAT BUBBLES ====== */
.message-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

/* User message: avatar right */
.message-row.user {
    flex-direction: row-reverse;
}

/* Assistant message: avatar left */
.message-row.assistant {
    flex-direction: row;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 8px;
    object-fit: cover;
    background-color: #ddd;
    flex-shrink: 0;
}

.message {
    margin-bottom: 12px;
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 10px;
    line-height: 1.4;
    white-space: pre-wrap;
    font-size: 1rem;
}

/* User bubble: zacht blauw */
.message.user {
    background: #e3f2fd;
    align-self: flex-end;
    border-left: 4px solid #6daedb;
}

/* Assistant bubble: Pureti groen tint */
.message.assistant {
    background: #f0f9f0;
    align-self: flex-start;
    border-left: 4px solid #7bcf72;
}

/* Markdown in assistant berichten */
.message.assistant ul {
    margin: 0 0 0.5rem 1.2rem;
    padding: 0;
}

.message.assistant li {
    margin-bottom: 0.25rem;
}

/* Algemene markdown-list cleanup */
.message ul {
    margin-top: 4px;
    padding-left: 20px;
}

/* ====== INPUT BAR ====== */
.chat-input-container {
    border-top: 1px solid #eee;
    padding: 10px;
    display: flex;
    gap: 8px;
}

.chat-input-container input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1.1rem;
}

.chat-input-container button {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background-color: #7bcf72;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.chat-input-container button:hover:not(:disabled) {
    background-color: #6ab764;
}

.chat-input-container button:disabled {
    background-color: #b7e3b3;
    cursor: default;
}

/* ====== STATUS ====== */
.status {
    font-size: 0.85rem;
    color: #777;
    padding: 4px 16px;
}

/* ====== FOOTER ====== */
.brand-footer {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    padding: 20px 0;
}