bodysara {
font-family: 'Inter', sans-serif;
margin: 0;
background-color: #fefae0;
} #chatbot-container {
position: fixed;
bottom: 20px;
right: 20px;
width: 350px;
height: 450px;
background-color: #ffffff;
border: none;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
overflow: hidden;
display: none;
flex-direction: column;
z-index: 1000;
} #chatbot-header {
background-color: #e76f51;
background-image: linear-gradient(to right, #e76f51, #f4a261);
color: white;
padding: 15px;
text-align: center;
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#chatbot-header button {
background: none;
border: none;
color: white;
font-size: 1.2em;
cursor: pointer;
padding: 5px;
} #chatbot-body {
flex-grow: 1;
padding: 10px;
overflow-y: auto;
background-color: #fefae0;
}
.message {
margin-bottom: 10px;
padding: 8px 12px;
border-radius: 15px;
max-width: 80%;
line-height: 1.4;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.user-message {
background-color: #f4a261;
margin-left: auto;
text-align: right;
border-bottom-right-radius: 2px;
animation: fadeIn 0.5s ease-in-out;
}
.bot-message {
background-color: #fef8f0;
margin-right: auto;
border-bottom-left-radius: 2px;
animation: fadeIn 0.5s ease-in-out;
} #chatbot-footer {
padding: 10px;
border-top: 1px solid #eee;
display: flex;
align-items: center;
background-color: #fff;
}
#chat-input {
flex-grow: 1;
padding: 10px;
border: 1px solid #ddd;
border-radius: 20px;
margin-right: 10px;
font-family: 'Inter', sans-serif;
transition: border-color 0.3s;
}
#chat-input:focus {
outline: none;
border-color: #e76f51;
} #send-button, #voice-button {
width: 40px;
height: 40px;
border-radius: 50%;
border: none;
color: white;
cursor: pointer;
font-size: 1.2em;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
#send-button {
background-color: #e76f51;
margin-right: 5px;
}
#send-button:hover {
background-color: #d95b41;
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#voice-button {
background-color: #2a9d8f;
}
#voice-button:hover {
background-color: #218579;
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#voice-button.listening {
background-color: #dc3545;
transform: scale(1.1);
} #floating-button {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
border-radius: 50%;
background-color: #e76f51;
color: white;
border: none;
cursor: pointer;
font-size: 1.5em;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
z-index: 1001;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s, box-shadow 0.2s;
}
#floating-button:hover {
transform: scale(1.05);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
} @keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
} @media (max-width: 600px) {
#chatbot-container {
width: 90%;
height: 80vh;
bottom: 5%;
right: 5%;
}
#floating-button {
width: 50px;
height: 50px;
}
.message {
max-width: 90%;
}
}