body {
    background: #f5f6fa;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.chat-container {
    max-width: 900px;
    width: 90vw;
    min-height: 90vh;
    height: 95vh;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 24px 18px 18px 18px;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    color: #222;
    margin-bottom: 18px;
}

.chat-box {
    flex: 1 1 auto;
    min-height: 0;
    max-height: unset;
    height: 100%;
    overflow-y: auto;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 12px;
    background: #fafbfc;
    margin-bottom: 16px;
}

.message {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-end;
}

.message.bot {
    align-items: flex-start;
}

.message .bubble {
    padding: 10px 16px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 1rem;
    line-height: 1.4;
}

.message.user .bubble {
    background: #d1e7ff;
    color: #1a237e;
}

.message.bot .bubble {
    background: #e8f5e9;
    color: #256029;
}

img.generated-image {
    margin-top: 8px;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}

#chat-form {
    display: flex;
    gap: 8px;
}

#user-input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #bdbdbd;
    font-size: 1rem;
}

button[type="submit"] {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: #1565c0;
}
