body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f4f4f9;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#chat-container {
    width: 100%;
    max-width: 600px;
    height: 80vh;
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

header {
    background: #0070f3;
    color: white;
    padding: 1rem;
    text-align: center;
}

#messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.msg {
    padding: 0.8rem;
    border-radius: 12px;
    max-width: 80%;
}

.user {
    align-self: flex-end;
    background: #0070f3;
    color: white;
}

.assistant {
    align-self: flex-start;
    background: #e9e9eb;
    color: black;
}

#chat-form {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #eee;
}

#user-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

button {
    padding: 0.8rem 1.5rem;
    background: #0070f3;
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 0.5rem;
    cursor: pointer;
}