*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: system-ui, -apple-system, sans-serif;
    background: #f8f9fa;
}

#chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 14px;
}

.message.user {
    align-self: flex-end;
    background: #007bff;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message.bot {
    align-self: flex-start;
    background: #e9ecef;
    color: #333;
    border-bottom-left-radius: 4px;
}

#chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #dee2e6;
    background: #fff;
}

#chat-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ced4da;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

#chat-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

#chat-form button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
}

#chat-form button:hover {
    background: #0056b3;
}
