/* styles.css */

body {
    font-family: Arial, sans-serif;
}

.floating-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.floating-icon img {
    width: 50px;
	border-radius: 50%;
}

.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 86%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hidden {
    display: none;
}

.chatbot-header {
    background-color: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 10px;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chatbot-name {
    flex-grow: 1;
    font-size: 1.2em;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    border-top: 1px solid #ddd;
    xborder-bottom: 1px solid #ddd;
}

.chatbot-input-area {
    display: flex;
    align-items: center;
    padding: 10px;
}

#chatbot-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    resize: vertical;
    height: 40px;
    max-height: 100px; /* Limit the height */
    overflow-y: auto;
}

.send-button {
    background-color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.send-button img {
    width: 30px;
    height: 30px;
	border-radius: 50%
}

.mic-button {
    background-color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.mic-button img {
    width: 35px;
    height: 35px;
	border-radius: 50%
}

.user-message, .bot-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}

.user-message {
    background-color: #f1f1f1;
    align-self: flex-end;
}

.bot-message {
    align-self: flex-start;
}


.waiting-icon {
    text-align: center;
    margin: 10px 0;
    width: auto;
    height: 40px;
}

.waiting-icon img {
    width: auto;
    height: 100px;
}

.speaker-icon {
    width: 30px;
    height: 30px;
	border-radius: 50%
}

.pre-questions {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 5px;
    height: 50px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.pre-questions button {
    font-size: 1em;
    border-width: 0px;
    padding: 5px;
    margin-right: 5px;
}

@media only screen and (max-width: 768px) {
    body {
     margin: 0px;   
    }
    
    .floating-icon {
     display: none;
    }
    
    .chatbot-container {
     bottom: unset;
     right: unset;
     width: 100%;
     height: 100%;
    }
}