body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
}

#chat-container {
    display: flex;
    flex-direction: column;

    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    background: rgba(255, 255, 255, 0.99);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: hidden;
}

#chat-window {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
}

.message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 20px;
    max-width: 70%;
    display: inline-block;
    word-wrap: break-word;
}

.user-message {
    background-color: #007bff;
    color: #fff;
    text-align: left;
    float: right;
    clear: both;
}

.bot-message {
    background-color: #f1f1f1;
    color: #000;
    text-align: left;
    float: left;
    clear: both;
}

#typing-indicator {
    display: none;
    font-style: italic;
    color: #656565;
    min-height: 20px;
    margin: 10px 0;
}

#input-container {
    display: flex;
    gap: 10px;
    box-sizing: border-box;
    margin-top: 10px;
}

#user-input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

#send-button {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}

#send-button:hover {
    background-color: #0056b3;
}

#send-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}