body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #1e1e1e;
    margin: 0;
    color: #d1d1d1;
}

.chat-container {
    width: 100%;
    max-width: 600px;
    height: 90vh;
    background-color: #2b2b2b;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.chat-header {
    padding: 20px;
    background-color: #3c3c3c;
    color: #d1d1d1;
    text-align: center;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #1e1e1e;
}

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

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

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

.message .text {
    padding: 12px 15px;
    border-radius: 20px;
    max-width: 80%;
    line-height: 1.4;
    white-space: pre-wrap;
    font-size: 1em;
}

.message.user .text {
    background-color: #007BFF;
    color: white;
}

.message.bot .text {
    background-color: #3c3c3c;
    color: #d1d1d1;
}

.chat-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 0;
    padding: 20px;
    background-color: #3c3c3c;
    border-top: 1px solid #2b2b2b;
}

.chat-footer input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #2b2b2b;
    border-radius: 20px;
    font-size: 1em;
    margin-right: 10px;
    background-color: #1e1e1e;
    color: #d1d1d1;
}

.chat-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: #007BFF;
    color: white;
    font-size: 1em;
    cursor: pointer;
    flex: 0 0 100%;
}

.chat-footer button:hover {
    background-color: #0056b3;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading .dot {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background-color: #d1d1d1;
    border-radius: 50%;
    animation: loading 0.8s infinite alternate;
}

.loading .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.5);
    }
}
