| 1 |
.mxchat-agents-banner { |
| 2 |
background-color: #fff; |
| 3 |
margin-bottom: 20px; |
| 4 |
border-radius: 4px; |
| 5 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
| 6 |
position: relative; |
| 7 |
margin-left: auto; |
| 8 |
margin-right: auto; |
| 9 |
padding: 0px 15px; |
| 10 |
} |
| 11 |
|
| 12 |
.mxchat-agents-banner::before { |
| 13 |
content: ''; |
| 14 |
position: absolute; |
| 15 |
top: 0; |
| 16 |
left: 0px; |
| 17 |
width: 10px; /* Matches border-left width */ |
| 18 |
height: 100%; |
| 19 |
background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); /* Gradient */ |
| 20 |
border-radius: 4px 0 0 4px; /* Match overall border radius */ |
| 21 |
} |
| 22 |
|
| 23 |
.mxchat-agents-banner p { |
| 24 |
font-size: 14px; |
| 25 |
line-height: 1.6; |
| 26 |
color: #444; /* Dark gray text */ |
| 27 |
margin: 0; |
| 28 |
padding: 15px 10px; |
| 29 |
} |
| 30 |
|
| 31 |
.mxchat-agents-banner a { |
| 32 |
background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); /* Gradient text */ |
| 33 |
-webkit-background-clip: text; |
| 34 |
-webkit-text-fill-color: transparent; /* Makes gradient visible */ |
| 35 |
font-weight: bold; |
| 36 |
text-decoration: none; |
| 37 |
transition: opacity 0.2s ease; |
| 38 |
} |
| 39 |
|
| 40 |
.mxchat-agents-banner a:hover { |
| 41 |
opacity: 0.8; /* Subtle fade on hover */ |
| 42 |
text-decoration: underline; /* Underline for accessibility */ |
| 43 |
} |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
.mxchat-transcript { |
| 48 |
display: flex; |
| 49 |
flex-wrap: wrap; |
| 50 |
gap: 20px; |
| 51 |
justify-content: flex-start; |
| 52 |
} |
| 53 |
|
| 54 |
.mxchat-session { |
| 55 |
border: 1px solid #ddd; |
| 56 |
padding: 15px; |
| 57 |
width: calc(33.333% - 20px); |
| 58 |
box-sizing: border-box; |
| 59 |
background-color: #f9f9f9; |
| 60 |
display: flex; |
| 61 |
flex-direction: column; |
| 62 |
max-height: 500px; |
| 63 |
overflow: auto; |
| 64 |
border-radius: 6px; |
| 65 |
padding: 12px; |
| 66 |
box-shadow: 0 1px 2px rgba(0,0,0,0.05); |
| 67 |
max-width: 300px; |
| 68 |
} |
| 69 |
|
| 70 |
.mxchat-session-header { |
| 71 |
display: flex; |
| 72 |
align-items: center; |
| 73 |
gap: 8px; |
| 74 |
margin-bottom: 10px; |
| 75 |
padding-bottom: 8px; |
| 76 |
border-bottom: 1px solid #dcdcde; |
| 77 |
font-size: 12px; |
| 78 |
color: #50575e; |
| 79 |
} |
| 80 |
|
| 81 |
.mxchat-messages { |
| 82 |
display: flex; |
| 83 |
flex-direction: column; |
| 84 |
gap: 8px; |
| 85 |
max-height: 400px; |
| 86 |
overflow-y: auto; |
| 87 |
} |
| 88 |
|
| 89 |
.mxchat-message { |
| 90 |
display: flex; |
| 91 |
flex-direction: column; |
| 92 |
max-width: 85%; |
| 93 |
} |
| 94 |
|
| 95 |
.mxchat-messages .user-message { |
| 96 |
align-self: flex-end; |
| 97 |
} |
| 98 |
|
| 99 |
.mxchat-messages .bot-message, |
| 100 |
.mxchat-messages .agent-message { |
| 101 |
align-self: flex-start; |
| 102 |
} |
| 103 |
|
| 104 |
.mxchat-message-header { |
| 105 |
font-size: 11px; |
| 106 |
color: #666; |
| 107 |
margin-bottom: 2px; |
| 108 |
padding: 0 8px; |
| 109 |
} |
| 110 |
|
| 111 |
.mxchat-message-content { |
| 112 |
padding: 8px 12px; |
| 113 |
border-radius: 12px; |
| 114 |
font-size: 13px; |
| 115 |
line-height: 1.4; |
| 116 |
word-wrap: break-word; |
| 117 |
} |
| 118 |
|
| 119 |
.mxchat-messages .user-message .mxchat-message-content { |
| 120 |
background: #0073aa; |
| 121 |
color: #fff; |
| 122 |
border-bottom-right-radius: 4px; |
| 123 |
} |
| 124 |
|
| 125 |
.mxchat-messages .bot-message .mxchat-message-content { |
| 126 |
background: #f0f0f1; |
| 127 |
color: #1d2327; |
| 128 |
border-bottom-left-radius: 4px; |
| 129 |
} |
| 130 |
|
| 131 |
.mxchat-messages .agent-message .mxchat-message-content { |
| 132 |
background: #2271b1; |
| 133 |
color: #fff; |
| 134 |
border-bottom-left-radius: 4px; |
| 135 |
} |
| 136 |
|
| 137 |
.mxchat-timestamp { |
| 138 |
font-size: 10px; |
| 139 |
color: #8c8f94; |
| 140 |
margin-top: 2px; |
| 141 |
padding: 0 8px; |
| 142 |
} |
| 143 |
|
| 144 |
.mxchat-messages::-webkit-scrollbar { |
| 145 |
width: 6px; |
| 146 |
} |
| 147 |
|
| 148 |
.mxchat-messages::-webkit-scrollbar-track { |
| 149 |
background: #f1f1f1; |
| 150 |
} |
| 151 |
|
| 152 |
.mxchat-messages::-webkit-scrollbar-thumb { |
| 153 |
background: #888; |
| 154 |
border-radius: 3px; |
| 155 |
} |
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
.mxchat-process-status { |
| 166 |
margin-top: 20px; |
| 167 |
padding: 15px; |
| 168 |
background: #fff; |
| 169 |
border: 1px solid #ddd; |
| 170 |
border-radius: 4px; |
| 171 |
box-shadow: 0 1px 3px rgba(0,0,0,0.1); |
| 172 |
} |
| 173 |
|
| 174 |
.mxchat-process-status h3 { |
| 175 |
margin: 0 0 15px 0; |
| 176 |
color: #23282d; |
| 177 |
font-size: 14px; |
| 178 |
font-weight: 600; |
| 179 |
} |
| 180 |
|
| 181 |
.mxchat-process-status p { |
| 182 |
margin: 8px 0; |
| 183 |
color: #555; |
| 184 |
font-size: 13px; |
| 185 |
} |
| 186 |
|
| 187 |
.mxchat-process-status .status-complete { |
| 188 |
color: #46b450; |
| 189 |
font-weight: 500; |
| 190 |
} |
| 191 |
|
| 192 |
.mxchat-process-status.complete { |
| 193 |
border-color: #46b450; |
| 194 |
} |
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
/* Toggle Switch Styles */ |
| 201 |
.mxchat-switch { |
| 202 |
position: relative; |
| 203 |
display: inline-block; |
| 204 |
width: 60px; |
| 205 |
height: 34px; |
| 206 |
margin-right: 10px; |
| 207 |
} |
| 208 |
|
| 209 |
.mxchat-switch input { |
| 210 |
opacity: 0; |
| 211 |
width: 0; |
| 212 |
height: 0; |
| 213 |
} |
| 214 |
|
| 215 |
.mxchat-slider { |
| 216 |
position: absolute; |
| 217 |
cursor: pointer; |
| 218 |
top: 0; |
| 219 |
left: 0; |
| 220 |
right: 0; |
| 221 |
bottom: 0; |
| 222 |
background-color: #ccc; |
| 223 |
transition: .4s; |
| 224 |
border-radius: 34px; |
| 225 |
} |
| 226 |
|
| 227 |
.mxchat-slider:before { |
| 228 |
position: absolute; |
| 229 |
content: ""; |
| 230 |
height: 26px; |
| 231 |
width: 26px; |
| 232 |
left: 4px; |
| 233 |
bottom: 4px; |
| 234 |
background-color: white; |
| 235 |
transition: .4s; |
| 236 |
border-radius: 50%; |
| 237 |
} |
| 238 |
|
| 239 |
input:checked + .mxchat-slider { |
| 240 |
background-color: #2196F3; |
| 241 |
} |
| 242 |
|
| 243 |
input:disabled + .mxchat-slider { |
| 244 |
opacity: 0.5; |
| 245 |
cursor: not-allowed; |
| 246 |
} |
| 247 |
|
| 248 |
input:checked + .mxchat-slider:before { |
| 249 |
transform: translateX(26px); |
| 250 |
} |
| 251 |
|
| 252 |
.mxchat-status-label { |
| 253 |
display: inline-block; |
| 254 |
vertical-align: middle; |
| 255 |
margin-left: 10px; |
| 256 |
} |
| 257 |
|
| 258 |
.status-text { |
| 259 |
font-weight: 500; |
| 260 |
} |
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
.mxchat-question-row { |
| 266 |
margin-bottom: 10px; |
| 267 |
} |
| 268 |
|
| 269 |
.mxchat-similarity-threshold .mxchat-slider-container { |
| 270 |
display: flex; |
| 271 |
align-items: center; |
| 272 |
gap: 15px; |
| 273 |
margin-top: 10px; |
| 274 |
} |
| 275 |
|
| 276 |
.mxchat-similarity-threshold input[type="range"] { |
| 277 |
flex: 1; |
| 278 |
margin: 0; |
| 279 |
} |
| 280 |
|
| 281 |
.mxchat-similarity-threshold .button-primary { |
| 282 |
white-space: nowrap; |
| 283 |
} |
| 284 |
|
| 285 |
.mxchat-similarity-threshold label { |
| 286 |
font-weight: bold; |
| 287 |
display: block; |
| 288 |
margin-bottom: 5px; |
| 289 |
} |
| 290 |
|
| 291 |
.mxchat-similarity-threshold { |
| 292 |
max-width: 600px; |
| 293 |
} |
| 294 |
|
| 295 |
#threshold_value_display { |
| 296 |
font-weight: normal; |
| 297 |
margin-left: 10px; |
| 298 |
color: #0073aa; |
| 299 |
} |
| 300 |
|
| 301 |
.mxchat-form-group { |
| 302 |
margin-bottom: 20px; |
| 303 |
} |
| 304 |
|
| 305 |
.mxchat-form-group input[type="range"] { |
| 306 |
width: 100%; |
| 307 |
margin-top: 10px; |
| 308 |
} |
| 309 |
|
| 310 |
.mxchat-form-group label { |
| 311 |
font-weight: bold; |
| 312 |
display: block; |
| 313 |
margin-bottom: 5px; |
| 314 |
} |
| 315 |
|
| 316 |
.mxchat-form-group .description { |
| 317 |
font-size: 0.9em; |
| 318 |
color: #666; |
| 319 |
} |
| 320 |
|
| 321 |
#threshold_value_display { |
| 322 |
font-weight: normal; |
| 323 |
margin-left: 10px; |
| 324 |
color: #0073aa; |
| 325 |
} |
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
.mxchat-product-image, .mxchat-generated-image, .mxchat-image-thumbnail { |
| 331 |
max-width: 100%; |
| 332 |
} |
| 333 |
.description { |
| 334 |
margin-top: -10px; |
| 335 |
} |
| 336 |
.mxchat-search-group { |
| 337 |
margin-top: 20px; |
| 338 |
} |
| 339 |
|
| 340 |
.tablenav .tablenav-pages { |
| 341 |
display: flex; |
| 342 |
align-items: center; |
| 343 |
margin-left: 20px; |
| 344 |
gap: 5px; |
| 345 |
} |
| 346 |
|
| 347 |
/* General Styles */ |
| 348 |
.mxchat-admin body, .mxchat-admin html { |
| 349 |
font-family: Arial, sans-serif; |
| 350 |
background-color: #fff; |
| 351 |
color: #212121; |
| 352 |
margin: 0; |
| 353 |
padding: 0; |
| 354 |
} |
| 355 |
|
| 356 |
/* Main Wrapper */ |
| 357 |
.mxchat-admin .wrap { |
| 358 |
max-width: 1200px; |
| 359 |
margin: 0 auto; |
| 360 |
padding: 20px; |
| 361 |
background: #f9f9f9; |
| 362 |
box-shadow: 0 2px 4px rgba(0, 0, 0, .1); |
| 363 |
} |
| 364 |
|
| 365 |
/* Header */ |
| 366 |
.mxchat-admin .wrap h2 { |
| 367 |
border-bottom: 2px solid #ddd; |
| 368 |
padding-bottom: 10px; |
| 369 |
margin-bottom: 20px; |
| 370 |
color: #212121; |
| 371 |
} |
| 372 |
|
| 373 |
.wrap.mxchat-admin .admin-title { |
| 374 |
text-shadow: 0 2px 0 #c6c6c6; |
| 375 |
font-weight: bold; |
| 376 |
letter-spacing: 5px; |
| 377 |
color: #212121; |
| 378 |
font-size: 2.5rem; |
| 379 |
} |
| 380 |
|
| 381 |
.mxchat-admin .admin-emphasis { |
| 382 |
color: white; |
| 383 |
text-shadow: 2px 1px 0 #000, -1px -1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, 0px 0 0 #000, 4px 0 0 #000, 0 0px 0 #000, 0 0px 0 #000; |
| 384 |
font-weight: bold; |
| 385 |
letter-spacing: 5px; |
| 386 |
font-size: 2.5rem; |
| 387 |
} |
| 388 |
/* Grid Layout */ |
| 389 |
.mxchat-admin .mxchat-grid-container { |
| 390 |
display: grid; |
| 391 |
grid-template-columns: repeat(2, 1fr); |
| 392 |
grid-gap: 20px; |
| 393 |
} |
| 394 |
|
| 395 |
.mxchat-admin .mxchat-grid-item { |
| 396 |
background: #fff; |
| 397 |
border: 1px solid #ddd; |
| 398 |
box-shadow: 0 2px 4px rgba(0, 0, 0, .1); |
| 399 |
padding: 20px; |
| 400 |
} |
| 401 |
|
| 402 |
/* Full Width for Submit Content */ |
| 403 |
.mxchat-admin .mxchat-grid-item.full-width { |
| 404 |
grid-column: span 2; |
| 405 |
} |
| 406 |
|
| 407 |
/* Form Styles */ |
| 408 |
.mxchat-admin .mxchat-form-group { |
| 409 |
display: flex; |
| 410 |
flex-direction: column; |
| 411 |
margin-bottom: 20px; |
| 412 |
} |
| 413 |
|
| 414 |
.mxchat-admin .mxchat-form-group label { |
| 415 |
margin-bottom: 10px; |
| 416 |
font-weight: bold; |
| 417 |
color: #212121; |
| 418 |
} |
| 419 |
|
| 420 |
.mxchat-admin .mxchat-form-group input[type="url"], |
| 421 |
.mxchat-admin .mxchat-form-group input[type="text"], |
| 422 |
.mxchat-admin .mxchat-form-group textarea { |
| 423 |
padding: 10px; |
| 424 |
border: 1px solid #ddd; |
| 425 |
border-radius: 4px; |
| 426 |
font-size: 1rem; |
| 427 |
width: 100%; |
| 428 |
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); |
| 429 |
} |
| 430 |
|
| 431 |
/* Larger Textarea for Content Submission */ |
| 432 |
.mxchat-admin .mxchat-form-group textarea { |
| 433 |
min-height: 200px; |
| 434 |
} |
| 435 |
|
| 436 |
/* Button Styles */ |
| 437 |
.mxchat-admin .button.button-primary { |
| 438 |
color: #fff; |
| 439 |
background: #212121; |
| 440 |
border-radius: 20px; |
| 441 |
padding: 0px 30px; |
| 442 |
font-size: 1rem; |
| 443 |
font-weight: 700; |
| 444 |
text-decoration: none; |
| 445 |
transition: all .2s; |
| 446 |
display: inline-flex; |
| 447 |
justify-content: center; |
| 448 |
align-items: center; |
| 449 |
max-width: 200px; |
| 450 |
width: auto; |
| 451 |
box-shadow: 4px 4px #14141499; |
| 452 |
border: none; |
| 453 |
cursor: pointer; |
| 454 |
} |
| 455 |
|
| 456 |
.mxchat-admin .button.button-primary:hover, |
| 457 |
.mxchat-admin .button.button-primary:active { |
| 458 |
background: #444; |
| 459 |
} |
| 460 |
|
| 461 |
.submit-content-button { |
| 462 |
margin-top: 10px !important; |
| 463 |
} |
| 464 |
|
| 465 |
/* Search and Sitemap Group */ |
| 466 |
.mxchat-admin .mxchat-search-group { |
| 467 |
display: flex; |
| 468 |
align-items: center; |
| 469 |
gap: 10px; |
| 470 |
} |
| 471 |
|
| 472 |
.mxchat-admin .mxchat-search-group input[type="text"], |
| 473 |
.mxchat-admin .mxchat-search-group input[type="url"] { |
| 474 |
flex-grow: 1; |
| 475 |
} |
| 476 |
|
| 477 |
.mxchat-admin .mxchat-search-group input[type="submit"] { |
| 478 |
background: #212121; |
| 479 |
color: #fff; |
| 480 |
border-radius: 20px; |
| 481 |
padding: 0px 30px; |
| 482 |
font-size: 1rem; |
| 483 |
font-weight: 700; |
| 484 |
box-shadow: 4px 4px #14141499; |
| 485 |
border: none; |
| 486 |
transition: background-color .2s; |
| 487 |
cursor: pointer; |
| 488 |
} |
| 489 |
|
| 490 |
.mxchat-admin .mxchat-search-group input[type="submit"]:hover { |
| 491 |
background-color: #444; |
| 492 |
} |
| 493 |
|
| 494 |
.mxchat-admin .mxchat-delete-all { |
| 495 |
background: #e74c3c; |
| 496 |
color: #fff; |
| 497 |
border-radius: 20px; |
| 498 |
padding: 10px 20px !important; |
| 499 |
font-size: 1rem; |
| 500 |
font-weight: 700; |
| 501 |
text-decoration: none; |
| 502 |
transition: all .2s; |
| 503 |
justify-content: center; |
| 504 |
align-items: center; |
| 505 |
box-shadow: 4px 4px #c0392b; |
| 506 |
cursor: pointer; |
| 507 |
margin-top: 10px; |
| 508 |
border: none; |
| 509 |
} |
| 510 |
|
| 511 |
.mxchat-admin .mxchat-delete-all:hover { |
| 512 |
color: #fff; |
| 513 |
background-color: #c0392b; |
| 514 |
box-shadow: 4px 4px #a93226 |
| 515 |
} |
| 516 |
|
| 517 |
.mxchat-admin .mxchat-intents-table .mxchat-delete-all { |
| 518 |
background: #e74c3c; |
| 519 |
color: #fff; |
| 520 |
border-radius: 20px; |
| 521 |
padding: 0px 20px !important; |
| 522 |
font-size: 1rem; |
| 523 |
font-weight: 700; |
| 524 |
text-decoration: none; |
| 525 |
transition: all .2s; |
| 526 |
justify-content: center; |
| 527 |
align-items: center; |
| 528 |
box-shadow: 4px 4px #c0392b; |
| 529 |
cursor: pointer; |
| 530 |
margin-top: 10px; |
| 531 |
border: none; |
| 532 |
} |
| 533 |
|
| 534 |
.mxchat-admin .mxchat-intents-table .mxchat-delete-all:hover { |
| 535 |
color: #fff; |
| 536 |
background-color: #c0392b; |
| 537 |
box-shadow: 4px 4px #a93226; |
| 538 |
} |
| 539 |
|
| 540 |
|
| 541 |
|
| 542 |
/* Table Styles */ |
| 543 |
.mxchat-admin .wp-list-table { |
| 544 |
width: 100%; |
| 545 |
margin-top: 20px; |
| 546 |
border-collapse: collapse; |
| 547 |
background: #fff; |
| 548 |
box-shadow: 0 2px 4px rgba(0, 0, 0, .1); |
| 549 |
} |
| 550 |
|
| 551 |
.mxchat-admin .wp-list-table th, |
| 552 |
.mxchat-admin .wp-list-table td { |
| 553 |
padding: 15px; |
| 554 |
border-bottom: 1px solid #ddd; |
| 555 |
text-align: left; |
| 556 |
} |
| 557 |
|
| 558 |
.mxchat-admin .wp-list-table th { |
| 559 |
background: #f0f2f5; |
| 560 |
color: #212121; |
| 561 |
} |
| 562 |
|
| 563 |
.mxchat-admin .wp-list-table tr:nth-child(even) { |
| 564 |
background: #f9f9f9; |
| 565 |
} |
| 566 |
|
| 567 |
.mxchat-admin .mxchat-pro-banner { |
| 568 |
background-color: #fff; |
| 569 |
padding: 0px 15px; |
| 570 |
margin-bottom: 20px; |
| 571 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */ |
| 572 |
position: relative; /* Required for the ::before pseudo-element */ |
| 573 |
} |
| 574 |
|
| 575 |
.mxchat-admin .mxchat-pro-banner::before { |
| 576 |
content: ''; |
| 577 |
position: absolute; |
| 578 |
top: 0; |
| 579 |
left: 0px; |
| 580 |
width: 10px; /* Matches the border-left width in your original CSS */ |
| 581 |
height: 100%; |
| 582 |
background-color: #212121; /* Dark bar color */ |
| 583 |
border-radius: 4px 0 0 4px; /* Rounded corners on the left */ |
| 584 |
} |
| 585 |
|
| 586 |
|
| 587 |
.mxchat-admin .mxchat-pro-banner p { |
| 588 |
margin: 0; |
| 589 |
font-size: 16px; |
| 590 |
color: #212121; |
| 591 |
padding: 15px 10px; |
| 592 |
} |
| 593 |
|
| 594 |
.mxchat-admin .mxchat-pro-banner a { |
| 595 |
color: #212121; |
| 596 |
text-decoration: none; |
| 597 |
font-weight: bold; |
| 598 |
} |
| 599 |
|
| 600 |
.mxchat-admin .mxchat-pro-banner a:hover { |
| 601 |
text-decoration: underline; |
| 602 |
} |
| 603 |
|
| 604 |
/* Toggle Switch Styles */ |
| 605 |
.mxchat-admin .toggle-switch { |
| 606 |
position: relative; |
| 607 |
display: inline-block; |
| 608 |
width: 60px; |
| 609 |
height: 34px; |
| 610 |
} |
| 611 |
|
| 612 |
.mxchat-admin .toggle-switch input { |
| 613 |
opacity: 0; |
| 614 |
width: 0; |
| 615 |
height: 0; |
| 616 |
} |
| 617 |
|
| 618 |
.mxchat-admin .slider { |
| 619 |
position: absolute; |
| 620 |
cursor: pointer; |
| 621 |
top: 0; |
| 622 |
left: 0; |
| 623 |
right: 0; |
| 624 |
bottom: 0; |
| 625 |
background-color: #ccc; |
| 626 |
transition: .4s; |
| 627 |
border-radius: 34px; |
| 628 |
} |
| 629 |
|
| 630 |
.mxchat-admin .slider:before { |
| 631 |
position: absolute; |
| 632 |
content: ""; |
| 633 |
height: 26px; |
| 634 |
width: 26px; |
| 635 |
left: 4px; |
| 636 |
bottom: 4px; |
| 637 |
background-color: white; |
| 638 |
transition: .4s; |
| 639 |
border-radius: 50%; |
| 640 |
} |
| 641 |
|
| 642 |
.mxchat-admin input:checked + .slider { |
| 643 |
background-color: #212121; |
| 644 |
} |
| 645 |
|
| 646 |
.mxchat-admin input:checked + .slider:before { |
| 647 |
transform: translateX(26px); |
| 648 |
} |
| 649 |
|
| 650 |
/* Toggle Switch Label */ |
| 651 |
.mxchat-admin .toggle-switch-label { |
| 652 |
display: flex; |
| 653 |
align-items: center; |
| 654 |
font-weight: 600; |
| 655 |
color: #212121; |
| 656 |
margin-bottom: 20px; |
| 657 |
} |
| 658 |
|
| 659 |
.mxchat-loading-text { |
| 660 |
display: none; |
| 661 |
margin-top: 10px; |
| 662 |
color: #333; |
| 663 |
} |
| 664 |
|
| 665 |
.mxchat-spinner { |
| 666 |
border: 8px solid #f3f3f3; |
| 667 |
border-top: 8px solid #333; |
| 668 |
border-radius: 50%; |
| 669 |
width: 30px; |
| 670 |
height: 30px; |
| 671 |
animation: mxchat-spin 1s linear infinite; |
| 672 |
display: flex; |
| 673 |
justify-content: center; |
| 674 |
align-items: center; |
| 675 |
} |
| 676 |
|
| 677 |
#mxchat-content-loading-text { |
| 678 |
display: none; |
| 679 |
margin-top: 10px; |
| 680 |
color: #333; |
| 681 |
} |
| 682 |
|
| 683 |
.mxchat-content-spinner { |
| 684 |
border: 8px solid #f3f3f3; |
| 685 |
border-top: 8px solid #333; |
| 686 |
border-radius: 50%; |
| 687 |
width: 30px; |
| 688 |
height: 30px; |
| 689 |
animation: mxchat-spin 1s linear infinite; |
| 690 |
display: flex; |
| 691 |
justify-content: center; |
| 692 |
align-items: center; |
| 693 |
} |
| 694 |
|
| 695 |
#mxchat-intent-loading { |
| 696 |
border: 8px solid #f3f3f3; |
| 697 |
border-top: 8px solid #333; |
| 698 |
border-radius: 50%; |
| 699 |
width: 30px; |
| 700 |
height: 30px; |
| 701 |
animation: mxchat-spin 1s linear infinite; |
| 702 |
display: inline-block; /* Display as inline for better alignment */ |
| 703 |
margin-left: 10px; |
| 704 |
vertical-align: middle; |
| 705 |
} |
| 706 |
|
| 707 |
#mxchat-intent-loading-text { |
| 708 |
display: none; |
| 709 |
margin-top: 10px; |
| 710 |
color: #333; |
| 711 |
} |
| 712 |
|
| 713 |
#mxchat-activation-spinner { |
| 714 |
border: 4px solid #f3f3f3; |
| 715 |
border-top: 4px solid #007cba; /* Match the WordPress primary button color */ |
| 716 |
border-radius: 50%; |
| 717 |
width: 20px; |
| 718 |
height: 20px; |
| 719 |
animation: mxchat-spin 1s linear infinite; |
| 720 |
display: inline-block; |
| 721 |
vertical-align: middle; |
| 722 |
margin-left: 10px; |
| 723 |
} |
| 724 |
|
| 725 |
@keyframes mxchat-spin { |
| 726 |
0% { transform: rotate(0deg); } |
| 727 |
100% { transform: rotate(360deg); } |
| 728 |
} |
| 729 |
|
| 730 |
|
| 731 |
|
| 732 |
|
| 733 |
.pro-feature-wrapper { |
| 734 |
position: relative; |
| 735 |
display: inline-block; |
| 736 |
} |
| 737 |
|
| 738 |
.pro-feature-wrapper.active select, |
| 739 |
.pro-feature-wrapper.active textarea { |
| 740 |
opacity: 1; /* Fully opaque when active */ |
| 741 |
} |
| 742 |
|
| 743 |
.pro-feature-wrapper.inactive select, |
| 744 |
.pro-feature-wrapper.inactive textarea { |
| 745 |
opacity: 0.5; /* Grayed out when inactive */ |
| 746 |
} |
| 747 |
|
| 748 |
.pro-feature-overlay { |
| 749 |
position: absolute; |
| 750 |
top: 0; |
| 751 |
left: 0; |
| 752 |
width: 100%; |
| 753 |
height: 100%; |
| 754 |
display: flex; |
| 755 |
justify-content: center; |
| 756 |
align-items: center; |
| 757 |
pointer-events: none; |
| 758 |
} |
| 759 |
|
| 760 |
.pro-feature-overlay img { |
| 761 |
max-width: 100px; |
| 762 |
pointer-events: auto; /* Allow clicking the image */ |
| 763 |
} |
| 764 |
|
| 765 |
.pro-feature-wrapper a { |
| 766 |
text-decoration: none; |
| 767 |
position: absolute; |
| 768 |
top: 0; |
| 769 |
left: 0; |
| 770 |
width: 100%; |
| 771 |
height: 100%; |
| 772 |
z-index: 10; /* Ensure the link is above everything else */ |
| 773 |
} |
| 774 |
|
| 775 |
|
| 776 |
.mxchat-admin .chat-session { |
| 777 |
border: 1px solid #ddd; |
| 778 |
padding: 15px; |
| 779 |
width: calc(33.333% - 20px); |
| 780 |
box-sizing: border-box; |
| 781 |
background-color: #f9f9f9; |
| 782 |
display: flex; |
| 783 |
flex-direction: column; |
| 784 |
max-height: 500px; |
| 785 |
overflow: auto; |
| 786 |
} |
| 787 |
|
| 788 |
.mxchat-admin .chat-message { |
| 789 |
border-bottom: 1px solid #eee; |
| 790 |
padding-bottom: 10px; |
| 791 |
margin-bottom: 10px; |
| 792 |
} |
| 793 |
|
| 794 |
.mxchat-admin .chat-session h4 { |
| 795 |
margin-bottom: 15px; |
| 796 |
font-size: 1.1em; |
| 797 |
font-weight: 700; |
| 798 |
} |
| 799 |
|
| 800 |
.mxchat-controls { |
| 801 |
display: flex; |
| 802 |
align-items: center; |
| 803 |
margin-bottom: 15px; |
| 804 |
} |
| 805 |
|
| 806 |
.mxchat-select-all-label { |
| 807 |
margin-right: 15px; |
| 808 |
display: flex; |
| 809 |
align-items: center; |
| 810 |
} |
| 811 |
|
| 812 |
.mxchat-select-all-label input[type="checkbox"] { |
| 813 |
margin-right: 5px; |
| 814 |
} |
| 815 |
|
| 816 |
.mxchat-controls .delete-chats-button.button { |
| 817 |
padding: 6px 12px; |
| 818 |
font-size: 14px; |
| 819 |
background: #e74c3c; |
| 820 |
color: #fff; |
| 821 |
border-radius: 20px; |
| 822 |
font-weight: 700; |
| 823 |
text-decoration: none; |
| 824 |
transition: all .2s; |
| 825 |
justify-content: center; |
| 826 |
align-items: center; |
| 827 |
box-shadow: 4px 4px #c0392b; |
| 828 |
cursor: pointer; |
| 829 |
margin-top: 10px; |
| 830 |
border: none; |
| 831 |
} |
| 832 |
|
| 833 |
|
| 834 |
.mxchat-controls .delete-chats-button.button:hover { |
| 835 |
color: #fff; |
| 836 |
background-color: #c0392b; |
| 837 |
box-shadow: 4px 4px #a93226 |
| 838 |
} |
| 839 |
|
| 840 |
|
| 841 |
.mxchat-license-status.active { |
| 842 |
color: green; |
| 843 |
font-weight: bold; |
| 844 |
} |
| 845 |
|
| 846 |
.mxchat-license-status.inactive { |
| 847 |
color: red; |
| 848 |
font-weight: bold; |
| 849 |
} |
| 850 |
.mxchat-nav-tab-wrapper { |
| 851 |
margin: 0px 0px; |
| 852 |
padding: 0px 0px; |
| 853 |
display: flex; |
| 854 |
} |
| 855 |
|
| 856 |
.mxchat-nav-tab { |
| 857 |
font-size: 14px; |
| 858 |
padding: 10px 20px; |
| 859 |
margin-right: 10px; |
| 860 |
background: #f1f1f1; |
| 861 |
border: 1px solid #ddd; |
| 862 |
border-bottom: none; |
| 863 |
cursor: pointer; |
| 864 |
box-shadow: none; |
| 865 |
color: #333; |
| 866 |
text-decoration: none; |
| 867 |
} |
| 868 |
|
| 869 |
.mxchat-nav-tab:hover, .mxchat-nav-tab:focus { |
| 870 |
background: #fff; |
| 871 |
color: #0073aa; |
| 872 |
box-shadow: none; |
| 873 |
} |
| 874 |
|
| 875 |
.mxchat-nav-tab-active { |
| 876 |
background: #fff; |
| 877 |
border-bottom: 1px solid #fff; |
| 878 |
color: #0073aa; |
| 879 |
} |
| 880 |
|
| 881 |
.mxchat-tab-content { |
| 882 |
display: none; |
| 883 |
padding: 20px; |
| 884 |
background: #fff; |
| 885 |
border: 1px solid #ddd; |
| 886 |
} |
| 887 |
|
| 888 |
.mxchat-tab-content.active { |
| 889 |
display: block; |
| 890 |
} |
| 891 |
|
| 892 |
|
| 893 |
.mxchat-settings-section { |
| 894 |
padding: 20px 0; |
| 895 |
} |
| 896 |
|
| 897 |
.mxchat-settings-section h2 { |
| 898 |
font-size: 1.2em; |
| 899 |
margin-bottom: 10px; |
| 900 |
color: #333; |
| 901 |
font-weight: bold; |
| 902 |
} |
| 903 |
|
| 904 |
.section-divider { |
| 905 |
width: 95%; |
| 906 |
height: 2px; |
| 907 |
background-color: #e0e0e0; |
| 908 |
margin: 20px auto; |
| 909 |
border-radius: 1px; |
| 910 |
} |
| 911 |
|
| 912 |
.form-table th { |
| 913 |
padding: 10px 0; |
| 914 |
vertical-align: top; |
| 915 |
width: 220px; |
| 916 |
} |
| 917 |
|
| 918 |
.form-table td { |
| 919 |
padding: 10px 0; |
| 920 |
} |
| 921 |
|
| 922 |
|
| 923 |
|
| 924 |
|
| 925 |
.mxchat-table { |
| 926 |
width: 100%; |
| 927 |
table-layout: fixed; |
| 928 |
border-collapse: collapse; |
| 929 |
border: 1px solid #ccc; /* Adds a border around the table */ |
| 930 |
} |
| 931 |
|
| 932 |
/* Header styling to match theme */ |
| 933 |
.mxchat-table th { |
| 934 |
background-color: #212121; /* Dark gray/black background */ |
| 935 |
color: #fff; /* White text */ |
| 936 |
font-weight: bold; |
| 937 |
padding: 10px; |
| 938 |
border-bottom: 3px solid #ccc; /* Thicker divider for the header */ |
| 939 |
} |
| 940 |
|
| 941 |
/* General cell styling */ |
| 942 |
.mxchat-table th, .mxchat-table td { |
| 943 |
padding: 8px 10px; |
| 944 |
text-align: left; |
| 945 |
vertical-align: top; /* Aligns content to the top of the cell */ |
| 946 |
border-bottom: 2px solid #ddd; /* Adds prominent dividers between rows */ |
| 947 |
} |
| 948 |
|
| 949 |
/* Alternate row background for better readability */ |
| 950 |
.mxchat-table tbody tr:nth-child(odd) { |
| 951 |
background-color: #f9f9f9; |
| 952 |
} |
| 953 |
|
| 954 |
.mxchat-table tbody tr:nth-child(even) { |
| 955 |
background-color: #fff; |
| 956 |
} |
| 957 |
|
| 958 |
/* ID column should be small */ |
| 959 |
.mxchat-table td:nth-child(1), |
| 960 |
.mxchat-table th:nth-child(1) { |
| 961 |
width: 15%; /* ID column */ |
| 962 |
text-align: center; |
| 963 |
} |
| 964 |
|
| 965 |
/* Content column should be wide */ |
| 966 |
.mxchat-table td:nth-child(2), |
| 967 |
.mxchat-table th:nth-child(2) { |
| 968 |
width: 50%; /* Content column */ |
| 969 |
} |
| 970 |
|
| 971 |
/* URL column */ |
| 972 |
.mxchat-table td:nth-child(3), |
| 973 |
.mxchat-table th:nth-child(3) { |
| 974 |
width: 20%; /* URL column */ |
| 975 |
text-align: left; |
| 976 |
overflow-x: auto; /* Allow the URL to scroll horizontally if it's too long */ |
| 977 |
white-space: nowrap; |
| 978 |
} |
| 979 |
|
| 980 |
/* Actions column */ |
| 981 |
.mxchat-table td:nth-child(4), |
| 982 |
.mxchat-table th:nth-child(4) { |
| 983 |
width: 15%; /* Edit/Delete column */ |
| 984 |
text-align: center; |
| 985 |
} |
| 986 |
|
| 987 |
.mxchat-intents-table { |
| 988 |
width: 100%; |
| 989 |
table-layout: fixed; |
| 990 |
border-collapse: collapse; |
| 991 |
border: 1px solid #ccc; |
| 992 |
} |
| 993 |
|
| 994 |
.mxchat-intents-table th { |
| 995 |
background-color: #212121; |
| 996 |
color: #fff; |
| 997 |
font-weight: bold; |
| 998 |
padding: 10px; |
| 999 |
border-bottom: 3px solid #ccc; |
| 1000 |
} |
| 1001 |
|
| 1002 |
.mxchat-intents-table th, |
| 1003 |
.mxchat-intents-table td { |
| 1004 |
padding: 8px 10px; |
| 1005 |
text-align: left; |
| 1006 |
vertical-align: top; |
| 1007 |
border-bottom: 2px solid #ddd; |
| 1008 |
} |
| 1009 |
|
| 1010 |
.mxchat-intents-table tbody tr:nth-child(odd) { |
| 1011 |
background-color: #f9f9f9; |
| 1012 |
} |
| 1013 |
|
| 1014 |
.mxchat-intents-table tbody tr:nth-child(even) { |
| 1015 |
background-color: #fff; |
| 1016 |
} |
| 1017 |
|
| 1018 |
/* Intent Label column */ |
| 1019 |
.mxchat-intents-table td:nth-child(1), |
| 1020 |
.mxchat-intents-table th:nth-child(1) { |
| 1021 |
width: 20%; |
| 1022 |
} |
| 1023 |
|
| 1024 |
/* Phrases column */ |
| 1025 |
.mxchat-intents-table td:nth-child(2), |
| 1026 |
.mxchat-intents-table th:nth-child(2) { |
| 1027 |
width: 30%; |
| 1028 |
overflow-x: auto; |
| 1029 |
} |
| 1030 |
|
| 1031 |
/* Callback Function column */ |
| 1032 |
.mxchat-intents-table td:nth-child(3), |
| 1033 |
.mxchat-intents-table th:nth-child(3) { |
| 1034 |
width: 20%; |
| 1035 |
} |
| 1036 |
|
| 1037 |
/* Similarity Threshold column */ |
| 1038 |
.mxchat-intents-table td:nth-child(4), |
| 1039 |
.mxchat-intents-table th:nth-child(4) { |
| 1040 |
width: 15%; |
| 1041 |
text-align: center; |
| 1042 |
} |
| 1043 |
|
| 1044 |
/* Actions column */ |
| 1045 |
.mxchat-intents-table td:nth-child(5), |
| 1046 |
.mxchat-intents-table th:nth-child(5) { |
| 1047 |
width: 15%; |
| 1048 |
text-align: center; |
| 1049 |
} |
| 1050 |
|
| 1051 |
/* Style the threshold range slider */ |
| 1052 |
.mxchat-intents-threshold-form input[type="range"] { |
| 1053 |
width: 100%; |
| 1054 |
margin: 5px 0; |
| 1055 |
} |
| 1056 |
|
| 1057 |
.mxchat-intents-threshold-form button { |
| 1058 |
margin-top: 5px; |
| 1059 |
} |
| 1060 |
|
| 1061 |
|
| 1062 |
|
| 1063 |
/* Edit content textarea styling */ |
| 1064 |
.content-edit { |
| 1065 |
width: 100%; /* Make textarea fill the column */ |
| 1066 |
height: 100px; /* Adjust height as needed */ |
| 1067 |
box-sizing: border-box; /* Ensure padding and border are included in the width/height */ |
| 1068 |
} |
| 1069 |
|
| 1070 |
/* Button styling to match theme */ |
| 1071 |
.mxchat-table td .button { |
| 1072 |
display: inline-block; |
| 1073 |
margin-right: 5px; |
| 1074 |
background-color: #212121; |
| 1075 |
color: #fff; |
| 1076 |
border: none; |
| 1077 |
padding: 5px 10px; |
| 1078 |
text-decoration: none; |
| 1079 |
border-radius: 3px; |
| 1080 |
cursor: pointer; |
| 1081 |
box-shadow: 4px 4px #14141499; |
| 1082 |
} |
| 1083 |
|
| 1084 |
/* Hover state */ |
| 1085 |
.mxchat-table td .button:hover { |
| 1086 |
display: inline-block; |
| 1087 |
margin-right: 5px; |
| 1088 |
background-color: #444; |
| 1089 |
color: #fff; |
| 1090 |
border: none; |
| 1091 |
padding: 5px 10px; |
| 1092 |
text-decoration: none; |
| 1093 |
border-radius: 3px; |
| 1094 |
cursor: pointer; |
| 1095 |
box-shadow: 4px 4px #14141499; |
| 1096 |
} |
| 1097 |
|
| 1098 |
/* Active state */ |
| 1099 |
.mxchat-table td .button:active { |
| 1100 |
display: inline-block; |
| 1101 |
margin-right: 5px; |
| 1102 |
background-color: #444; |
| 1103 |
color: #fff; |
| 1104 |
border: none; |
| 1105 |
padding: 5px 10px; |
| 1106 |
text-decoration: none; |
| 1107 |
border-radius: 3px; |
| 1108 |
cursor: pointer; |
| 1109 |
box-shadow: 4px 4px #14141499; |
| 1110 |
} |
| 1111 |
|
| 1112 |
/* Focus state */ |
| 1113 |
.mxchat-table td .button:focus { |
| 1114 |
display: inline-block; |
| 1115 |
margin-right: 5px; |
| 1116 |
background-color: #444; |
| 1117 |
color: #fff; |
| 1118 |
border: none; |
| 1119 |
padding: 5px 10px; |
| 1120 |
text-decoration: none; |
| 1121 |
border-radius: 3px; |
| 1122 |
cursor: pointer; |
| 1123 |
box-shadow: 4px 4px #14141499; |
| 1124 |
outline: none; /* Removes default outline */ |
| 1125 |
} |
| 1126 |
|
| 1127 |
|
| 1128 |
|
| 1129 |
/* Responsive Design */ |
| 1130 |
@media (max-width: 1024px) { |
| 1131 |
.mxchat-admin .mxchat-grid-container { |
| 1132 |
grid-template-columns: 1fr; |
| 1133 |
} |
| 1134 |
|
| 1135 |
.mxchat-admin .mxchat-grid-item.full-width { |
| 1136 |
grid-column: span 1; |
| 1137 |
} |
| 1138 |
|
| 1139 |
.mxchat-admin .chat-session { |
| 1140 |
width: calc(100% - 0px); |
| 1141 |
} |
| 1142 |
|
| 1143 |
.mxchat-nav-tab { |
| 1144 |
padding: 10px 12px; |
| 1145 |
} |
| 1146 |
|
| 1147 |
/* Search and Sitemap Group */ |
| 1148 |
.mxchat-admin .mxchat-search-group { |
| 1149 |
align-items: normal; |
| 1150 |
flex-direction: column; |
| 1151 |
} |
| 1152 |
|
| 1153 |
.mxchat-admin .mxchat-nav-tab-wrapper, |
| 1154 |
.mxchat-admin .wrap h2.mxchat-nav-tab-wrapper, |
| 1155 |
.mxchat-admin h1.mxchat-nav-tab-wrapper { |
| 1156 |
border-bottom: 0; |
| 1157 |
justify-content: space-evenly; |
| 1158 |
display: flex; |
| 1159 |
} |
| 1160 |
|
| 1161 |
.mxchat-admin .mxchat-nav-tab-wrapper .mxchat-nav-tab { |
| 1162 |
margin: 0; |
| 1163 |
} |
| 1164 |
|
| 1165 |
|
| 1166 |
} |
| 1167 |
|