body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #1e1e2f;
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#chat-container {
    width: 400px;
    max-width: 100%;
    height: 90vh;
    background: #2c2c3c;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 15px #00000050;
}

header {
    padding: 1rem;
    background: #3f3f4f;
    text-align: center;
    border-bottom: 1px solid #555;
}

#chat-log {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    max-width: 80%;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user {
    background: #4a90e2;
    color: white;
    align-self: flex-end;
    text-align: right;
}

.message.bot {
    background: #444;
    align-self: flex-start;
}

form {
    display: flex;
    border-top: 1px solid #555;
}

input[type="text"] {
    flex: 1;
    padding: 1rem;
    background: #1e1e2f;
    border: none;
    color: white;
    font-size: 1rem;
}

button {
    padding: 0 1.5rem;
    background: #4a90e2;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

button:hover {
    background: #357ABD;
}
