88 lines
1.6 KiB
CSS
88 lines
1.6 KiB
CSS
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.chat-widget-button {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
background-color: #007bff;
|
|
color: white;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.chat-widget-button:hover {
|
|
transform: scale(1.1);
|
|
box-shadow: 0 6px 12px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.chat-widget {
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 100px;
|
|
right: 20px;
|
|
width: 350px;
|
|
max-width: 90%;
|
|
height: 500px;
|
|
background-color: #ffffff;
|
|
border-radius: 0.5rem;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
|
|
flex-direction: column;
|
|
}
|
|
|
|
.chat-header {
|
|
background: linear-gradient(to right, #007bff, #0056b3);
|
|
color: white;
|
|
padding: 1rem;
|
|
border-top-left-radius: 0.5rem;
|
|
border-top-right-radius: 0.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.chat-body {
|
|
flex-grow: 1;
|
|
padding: 1rem;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.chat-message {
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 0.5rem;
|
|
max-width: 80%;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.user-message {
|
|
background-color: #007bff;
|
|
color: white;
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.bot-message {
|
|
background-color: #e9ecef;
|
|
color: #333;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.chat-footer {
|
|
padding: 1rem;
|
|
border-top: 1px solid #dee2e6;
|
|
}
|
|
|
|
.chat-footer .form-control {
|
|
border-radius: 0.5rem;
|
|
}
|