|
|
|
.chat-container {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
width: 350px;
|
|
max-height: 500px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.chat-container.minimized {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
box-shadow: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-container.minimized .chat-header,
|
|
.chat-container.minimized .chat-content {
|
|
display: none;
|
|
}
|
|
|
|
.chat-container.minimized .chat-minimized {
|
|
display: flex;
|
|
}
|
|
|
|
.chat-minimized {
|
|
display: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
}
|
|
|
|
.chat-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: linear-gradient(to bottom, #0083bf, #0083bf);
|
|
color: #fff;
|
|
padding: 10px;
|
|
border-top-left-radius: 10px;
|
|
border-top-right-radius: 10px;
|
|
}
|
|
|
|
.chat-header img {
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
|
|
.chat-title {
|
|
flex-grow: 1;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.minimize-btn, .close-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #fff;
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
|
|
.minimize-btn:hover, .close-btn:hover {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
|
|
.chat-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 10px;
|
|
height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
|
|
.message {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
margin: 10px;
|
|
}
|
|
|
|
|
|
.bot-message .message-text {
|
|
background-color: #e0e0e0;
|
|
color: #000;
|
|
border-radius: 10px;
|
|
padding: 10px;
|
|
max-width: 70%;
|
|
}
|
|
|
|
|
|
.user-message .message-text {
|
|
background-color: #1056ecee;
|
|
color: #fff;
|
|
border-radius: 10px;
|
|
padding: 10px;
|
|
max-width: 70%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.user-message {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
|
|
.answers {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-start;
|
|
margin: 10px;
|
|
}
|
|
|
|
|
|
.answers button {
|
|
background-color: #1056ecee;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 20px;
|
|
padding: 10px 20px;
|
|
margin: 5px;
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
|
|
.answers button:hover {
|
|
background-color: #0c83e4;
|
|
}
|
|
|
|
|
|
.user-input {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
margin: 0px;
|
|
}
|
|
|
|
|
|
.input-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
|
|
.user-input input {
|
|
flex: 1;
|
|
padding: 10px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 20px;
|
|
margin-right: 10px;
|
|
outline: none;
|
|
}
|
|
|
|
|
|
.user-input button {
|
|
background-color: #4CAF50;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 20px;
|
|
padding: 10px 20px;
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
|
|
.user-input button:hover {
|
|
background-color: #45a049;
|
|
}
|
|
|
|
|
|
.error-message {
|
|
color: red;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.error-alert {
|
|
background: #ffcccc;
|
|
color: #a94442;
|
|
padding: 0px;
|
|
border: 1px solid #a94442;
|
|
border-radius: 5px;
|
|
margin: 2px;
|
|
position: absolute;
|
|
top: 50px;
|
|
width: calc(95% - 25px);
|
|
left: 10px;
|
|
}
|
|
|
|
@keyframes fadeOut {
|
|
0% { opacity: 1; }
|
|
100% { opacity: 0; }
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
.chat-container {
|
|
width: 100%;
|
|
border-radius: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
max-height: 100%;
|
|
}
|
|
|
|
.chat-minimized {
|
|
bottom: 10px;
|
|
right: 10px;
|
|
}
|
|
}
|
|
|