body {
    font-family: 'Arial', sans-serif;
    background-color: #111111;
    color: #f1f1f1;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    height: 100vh;
}

.chat-container {
    background-color: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 8px;
    width: 60%;
    height: 100%;
    margin-left: 20%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.chat-header {
    background-color: #2c2c2c;
    padding: 15px;
    border-bottom: 1px solid #333333;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.bot-message {
    background-color: #2c2c2c;
    color: #f1f1f1;
    padding: 10px;
    border-radius: 4px;
    margin: 5px 30% 5px 0; 
    align-self: flex-start;
}

.user-message {
    background-color: #4a4a4a;
    color: #f1f1f1;
    padding: 10px;
    border-radius: 4px;
    margin: 5px 0;
    align-self: flex-end;
}

.chat-input {
    display: flex;
    border-top: 1px solid #333333;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 0 0 0 8px;
    background-color: #2c2c2c;
    color: #f1f1f1;
}

.chat-input input::placeholder {
    color: #999999;
}

.chat-input button {
    padding: 10px 15px;
    border: none;
    background-color: #4a4a4a;
    color: #f1f1f1;
    cursor: pointer;
    border-radius: 0 0 8px 0;
}

.chat-input button:hover {
    background-color: #666666;
}

#spinner {
    border: 4px solid rgba(255, 255, 255, 0.59);
    border-left-color: #000000;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
