Spaces:
Sleeping
Sleeping
File size: 6,427 Bytes
8ee9193 ac5b34a 690f209 e2c425e ac5b34a f268c38 e2c425e f268c38 e2c425e f268c38 ac5b34a e2c425e ac5b34a f268c38 ac5b34a 8ee9193 f268c38 ac5b34a 8ee9193 ac5b34a e2c425e ac5b34a 8ee9193 f268c38 320b579 ac5b34a f268c38 ac5b34a 690f209 ac5b34a e2c425e f268c38 e2c425e ac5b34a f268c38 ac5b34a 8ee9193 ac5b34a 8ee9193 9f0f8c8 e2c425e ac5b34a f268c38 ac5b34a f268c38 690f209 9f0f8c8 f268c38 9f0f8c8 690f209 9f0f8c8 f268c38 9f0f8c8 690f209 9f0f8c8 199e2ca 9f0f8c8 690f209 8ee9193 9f0f8c8 8ee9193 9f0f8c8 ac5b34a 1d3bacf ac5b34a f268c38 8ee9193 f268c38 8ee9193 ac5b34a 8ee9193 ac5b34a 8ee9193 ac5b34a e2c425e ac5b34a 8ee9193 ac5b34a f268c38 8ee9193 f268c38 8ee9193 ac5b34a 8ee9193 ac5b34a 8ee9193 ac5b34a e2c425e ac5b34a 8ee9193 ac5b34a 17e9364 e2c425e 1d3bacf e2c425e 1d3bacf 9f0f8c8 e2c425e 1d3bacf e2c425e 690f209 e2c425e 690f209 e2c425e 690f209 1d3bacf 690f209 1d3bacf e2c425e 9f0f8c8 e2c425e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | * {
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
:root {
--primary: #1a2b49;
--accent: #f0b91f;
}
body {
margin: 0;
background: #f3f6ff;
color: #1a2b49;
}
.demo-page {
padding: 20px;
max-width: 920px;
margin: 0 auto;
}
.container {
background: #fff;
border-radius: 16px;
padding: 24px;
margin: 20px auto 0;
box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.container h1 {
margin-top: 0;
font-size: 1.7rem;
}
.container p {
color: #3a4665;
line-height: 1.5;
margin-bottom: 12px;
}
.badge {
display: inline-block;
background: #f0b91f;
color: #1a2b49;
padding: 6px 10px;
border-radius: 999px;
font-weight: 700;
margin-bottom: 14px;
}
.steps {
text-align: left;
background: #f9fbff;
border: 1px solid #e7ecf7;
border-radius: 12px;
padding: 14px;
margin-top: 10px;
}
.steps h3 { margin: 0 0 6px; }
.steps li { margin-bottom: 6px; }
/* ============================= */
/* LAUNCHER */
/* ============================= */
.launcher {
position: fixed;
right: 18px;
bottom: 18px;
z-index: 9999;
display: flex;
align-items: center;
background: #fff;
border-radius: 999px;
border: 1px solid #dce3f0;
padding: 8px 12px;
box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.launcher-text {
font-size: 0.78rem;
font-weight: 600;
color: #23315f;
margin-right: 6px;
}
.fab-button {
width: 44px;
height: 44px;
border: none;
border-radius: 50%;
background: var(--primary);
color: #fff;
font-size: 1.1rem;
cursor: pointer;
}
/* ============================= */
/* CHAT CONTAINER */
/* ============================= */
.chatbot-container {
position: fixed;
right: 20px;
bottom: 90px;
width: 380px;
height: 560px;
max-width: calc(100vw - 20px);
background: #fff;
border-radius: 20px;
box-shadow: 0 30px 80px rgba(0,0,0,0.25);
display: flex;
flex-direction: column;
overflow: hidden;
opacity: 0;
transform: translateY(20px);
pointer-events: none;
transition: 0.25s ease;
z-index: 10000;
position: fixed;
}
.chatbot-container.open {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
/* ============================= */
/* HEADER */
/* ============================= */
.chat-header {
background: linear-gradient(135deg, #1a2b49, #2e4a7d);
color: white;
padding: 14px 16px;
display: flex;
justify-content: space-between;
align-items: center;
}
.chat-header-left {
display: flex;
flex-direction: column;
}
.chat-header-title {
font-size: 15px;
font-weight: 600;
}
.chat-status {
font-size: 12px;
opacity: 0.8;
}
.close-btn {
cursor: pointer;
font-size: 18px;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
}
.close-btn:hover {
opacity: 0.7;
}
/* ============================= */
/* MESSAGES */
/* ============================= */
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 16px;
background: #f7f9fc;
display: flex;
flex-direction: column;
gap: 14px;
}
.scroll-bottom {
position: absolute;
right: 14px;
bottom: 75px;
width: 36px;
height: 36px;
border: none;
border-radius: 50%;
background: #1a2b49;
color: #fff;
font-size: 16px;
box-shadow: 0 4px 18px rgba(0,0,0,0.2);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 999;
}
.scroll-bottom.hidden {
display: none;
}
.scroll-bottom:hover {
background: #243f72;
}
.suggestions-wrapper {
display: flex;
flex-direction: column;
gap: 8px;
}
.welcome-message {
background: #fff;
border: 1px solid #e5eaf2;
padding: 16px;
border-radius: 14px;
box-shadow: 0 2px 6px rgba(0,0,0,0.04);
line-height: 1.45;
margin-bottom: 4px;
}
.suggestion-divider {
font-size: 12px;
color: #5c637a;
font-weight: 600;
letter-spacing: 0.2px;
text-transform: uppercase;
margin: 0;
}
.suggestion-btn {
padding: 12px;
border-radius: 12px;
border: 1px solid #e2e8f0;
background: white;
font-size: 14px;
cursor: pointer;
text-align: left;
}
.suggestion-btn:hover {
background: #eef3ff;
}
/* ============================= */
/* BUBBLES */
/* ============================= */
.message {
display: flex;
}
.message.user {
justify-content: flex-end;
}
.bubble {
max-width: 75%;
padding: 12px 14px;
border-radius: 16px;
font-size: 14.5px;
line-height: 1.6;
}
.user .bubble {
background: #dbe7ff;
}
.bot .bubble {
background: #fff;
border: 1px solid #e2e8f0;
}
/* ============================= */
/* INPUT */
/* ============================= */
.chat-form {
display: flex;
padding: 12px;
border-top: 1px solid #eee;
background: #fff;
}
#user-input {
flex: 1;
padding: 12px 14px;
border-radius: 22px;
border: 1px solid #ddd;
font-size: 14px;
}
.send {
margin-left: 8px;
padding: 10px 16px;
background: var(--accent);
border: none;
border-radius: 20px;
cursor: pointer;
font-weight: 600;
}
/* ============================= */
/* TYPING */
/* ============================= */
.typing-indicator {
font-size: 13px;
padding: 6px 12px;
color: #666;
}
.hidden {
display: none;
}
/* ============================= */
/* 📱 RESPONSIVE */
/* ============================= */
/* Tablet */
@media (max-width: 768px) {
.chatbot-container {
width: 90%;
right: 5%;
left: auto;
bottom: 80px;
height: 75vh;
border-radius: 16px;
}
}
/* Mobile (widget style, NOT fullscreen) */
@media (max-width: 480px) {
.demo-page .container { padding-top: 70px; }
.chatbot-container {
width: calc(100% - 20px); /* margin both sides */
right: 10px;
left: 10px;
bottom: 85px;
height: 72vh; /* not full screen */
border-radius: 18px;
}
.chat-header {
padding: 12px;
}
.chat-messages {
padding: 12px;
}
.bubble {
max-width: 85%;
font-size: 14px;
}
.launcher {
right: 12px;
bottom: 12px;
}
} |