@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Arial', sans-serif;
    background-color: #EFF2F4;  /* Gray background */
    text-align: center;
}

#chat-box {
    width: 90vw;
    max-width: 500px;
    margin: 20px auto;
    background-color: #fff;  /* White background for chat box */
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); */
}

p {
    margin: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    max-width: 70%;
    clear: both;
}

.usermsg {
    background-color: #d6f3f7;  /* User message background def eaf7ff */
    float: right;
    margin-right: 20px;
    /* box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); */
    text-align: right;
    padding: 10px;
}


.botmsg::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 16px;  /* Icon width */
    height: 16px;  /* Icon height */
    background: url('/static/favicon.png') no-repeat;
    background-size: contain;
    margin-right: 10px;
}

.botmsg {
    background-color: #ecd8ff;  /* Assistant message background def fff7e2 */
    float: left;
    margin-left: 20px;
    /* box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); */
    text-align: left;
    padding-left: 26px;  /* Make room for the icon */
    padding: 10px;    
}

#user-input, #send-button {
    display: inline-block;
    vertical-align: top;
}

#user-input {
    width: 70vw;
    max-width: 355px;
    margin-right: 20px;
    padding: 10px;
    border: none;
    border-top: 1px solid #ccc;
}

#send-button {
    width: 20vw;
    max-width: 100px;
    padding: 10px;
    border: none;
    border-top: 1px solid #ccc;
    background-color: #7024BD;  /* Red background for send button def E1080D*/
    color: white;
    border-radius: 5px;
}

#loader {
    text-align: center;
}

#error-message {
    text-align: center;
    background-color: #E1080D;  /* Red background for error message */
    color: white;
    padding: 14px 20px;
    margin: 14px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#loader::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 10px;  /* Loader width */
    height: 10px;  /* Loader height */
    border-radius: 50%;
    border: 2px solid #ccc;
    border-top-color: #7024BD;
    border-left-color: #7024BD;
    animation: spin .7s infinite linear;
    margin-left: 10px;
}

.audio {
    background-color: transparent !important;
}