body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--theme-background, #fff);
}

.chat-container {
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    background-color: var(--chat-container-bg, #f5f5f5);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 80vh; /* Adjust height for responsiveness */
}

.chat-header {
    background-color: var(--chat-header-bg, #3f51b5);
    color: var(--chat-header-color, #fff);
    padding: 10px;
    text-align: center; /* This can be removed because we use flex now */
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: 1.2em;
    height: 60px;
    line-height: 60px; /* Set this to match the height for vertical centering */
    box-sizing: border-box;
}


.chat-log {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    background-color: #f0f0f1;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    height: 60vh; /* Fixed height for chat log (adjust this as needed) */
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    display: block;
    max-width: 100%;
    word-wrap: break-word;
}

.bot {
    background-color: var(--bot-message-bg, #eee);
    color: var(--bot-message-color, #000);
}

.user {
    background-color: var(--user-message-bg, #3f51b5);
    color: var(--user-message-color, #fff);
    text-align: right;
}

.chat-input {
    display: flex;
    align-items: center;
    background-color: var(--chat-input-bg, #fff);
    padding: 5px;
    border-top: 1px solid #ccc;
    box-sizing: border-box;
    height: 60px;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    margin-right: 5px;
    height: 40px;
    box-sizing: border-box;
}

.chat-input button {
    border: none;
    background-color: transparent;
    color: var(--chat-input-btn-color, #3f51b5);
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.chat-input button:hover {
    color: var(--chat-input-btn-hover-color, #2c387e);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .chat-container {
        width: 95%;
        margin: 10px auto;
    }

    .chat-header {
        font-size: 1em;
        height: 50px;
    }

    .chat-input {
        height: 50px;
    }

    .chat-input input {
        height: 35px;
    }

    .chat-input button {
        height: 35px;
        width: 35px;
    }
}
