body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
    background: #111;
    color: #eee;
}

#chat-root {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Top bar */
#top-bar {
    background: #1b1b1b;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 600;
    border-bottom: 1px solid #333;
}

#memory-toggle {
    background: #2c8b2c;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

#memory-toggle.off {
    background: #8b2c2c;
}

/* Chat container */
#chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-width: 800px;      /* ← tilføj dette */
    margin: 0 auto;        /* ← og dette for centrering */
}

/* Messages */
.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    line-height: 1.45;
    font-size: 16px;
    color: #1a1a1a;   /* ← MØRK TEKST, TYDELIG! */
}

/* User bubble */
.user {
    background: #cfe6ff;
    margin-left: auto;
    margin-right: 10px;
}

/* Bot bubble */
.bot {
    background: #d4f5d4;
    margin-right: auto;
    margin-left: 10px;
}

/* Thinking indicator */
#thinking {
    display: none;
    text-align: center;
    padding: 10px;
    color: #ccc;
    font-style: italic;
}

/* Input section */
#input-section {
    padding: 12px;
    background: #1b1b1b;
    border-top: 1px solid #333;
}

#input-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    width: 100%;
}

#message-input {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
}

#send-btn {
    padding: 12px 18px;
    font-size: 16px;
    background: #276bd8;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 600px) {
    .message {
        max-width: 85%;
        font-size: 15px;
    }

    #input-inner {
        max-width: 100%;
    }

    #send-btn {
        padding: 10px 14px;
    }
}
/* --- MOBILVENLIGT LAYOUT --- */

.chat-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.message {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 14px;
}

/* Mobiltilpasning */
@media (max-width: 600px) {
    .chat-container {
        padding: 10px;
        max-width: 100%;
    }

    .message {
        font-size: 18px;
        padding: 16px;
        border-radius: 16px;
    }

    input, button {
        font-size: 18px;
    }
}
