:root {
    --bg: #f0f0f0;
    --primary: #6200ee;
    --text: #333;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    padding: 1rem;
    background: white;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
form {
    display: flex;
    gap: 0.5rem;
}
input, button {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
}
button {
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
}
.error {
    color: red;
    margin-top: 0.5rem;
}
#chat-container {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    margin: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.user, .assistant {
    max-width: 80%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    word-wrap: break-word;
}
.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
}
.assistant {
    align-self: flex-start;
    background: #e0e0e0;
}
#chat-form {
    display: flex;
    padding: 1rem;
    background: white;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
}
#message-input {
    flex: 1;
}