@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: #ffffff;  /* 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;
    word-wrap: break-word;  /* Ensure the text wraps properly */
}

.usermsg {
    background-color: #E3F2FD;  /* Light blue background for user message */
    float: right;
    margin-right: 20px;
    text-align: right;
    padding: 10px;
    border: 1px solid #BBDEFB;  /* Light blue border */
}

.botmsg::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 16px;  /* Icon width */
    height: 16px;  /* Icon height */
    background: url('https://www.chezzen.ch/Site/Skins/default/Favicons/favicon.ico') no-repeat;
    background-size: contain;
    margin-right: 10px;
}

.botmsg {
    background-color: #F3E5F5;  /* Light purple background for assistant message */
    color: #000000;  /* Black text color */
    float: left;
    margin-left: 20px;
    text-align: left;
    padding-left: 26px;  /* Make room for the icon */
    padding: 10px;
    border: 1px solid #E1BEE7;  /* Light purple border */
}

a {
    color: #1E88E5;  /* Blue color for links */
    word-wrap: break-word;  /* Ensure the link wraps properly */
}

#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: #1E88E5;  /* Blue background for send button */
    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: #1E88E5;
    border-left-color: #1E88E5;
    animation: spin .7s infinite linear;
    margin-left: 10px;
}

.audio {
    background-color: transparent !important;
}
