142 lines
2.5 KiB
CSS
142 lines
2.5 KiB
CSS
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
background-color: #F3F4F6;
|
|
}
|
|
|
|
.chat-widget-button {
|
|
position: fixed;
|
|
bottom: 2rem;
|
|
right: 2rem;
|
|
background-color: #4F46E5;
|
|
color: white;
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
|
transition: transform 0.2s ease-in-out;
|
|
}
|
|
|
|
.chat-widget-button:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.chat-widget-button svg {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.chat-popup {
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 6.5rem;
|
|
right: 2rem;
|
|
width: 375px;
|
|
max-width: 90vw;
|
|
height: 70vh;
|
|
max-height: 600px;
|
|
background: #FFFFFF;
|
|
border-radius: 0.75rem;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
transform: translateY(20px);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
}
|
|
|
|
.chat-popup.show {
|
|
display: flex;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.chat-header {
|
|
background: #4F46E5;
|
|
color: white;
|
|
padding: 1rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.chat-header h5 {
|
|
margin: 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-header .btn-close {
|
|
filter: invert(1) grayscale(100%) brightness(200%);
|
|
}
|
|
|
|
.chat-area {
|
|
flex-grow: 1;
|
|
padding: 1rem;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.chat-message {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 0.5rem;
|
|
max-width: 85%;
|
|
}
|
|
|
|
.chat-message .avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.chat-message .message-content {
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 0.5rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.user-message {
|
|
align-self: flex-end;
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.user-message .message-content {
|
|
background-color: #4F46E5;
|
|
color: white;
|
|
}
|
|
|
|
.bot-message {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.bot-message .message-content {
|
|
background-color: #E5E7EB;
|
|
color: #111827;
|
|
}
|
|
|
|
.chat-input-area {
|
|
padding: 1rem;
|
|
border-top: 1px solid #E5E7EB;
|
|
}
|
|
|
|
.chat-input-area .form-control:focus {
|
|
border-color: #4F46E5;
|
|
box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
|
|
}
|
|
|
|
.hero {
|
|
background-size: cover;
|
|
background-position: center;
|
|
color: white;
|
|
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
|
|
}
|