PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 1.5.9
MxChat – AI Chatbot & Content Generation for WordPress v1.5.9
3.2.21 3.2.20 3.2.19 3.2.18 3.2.17 3.2.16 3.2.15 3.2.14 3.2.12 3.2.13 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 2.0.3 2.0.4 2.0.5 2.0.6 All 152 releases
mxchat-basic / css / admin-style.css

admin-style.css in MxChat – AI Chatbot & Content Generation for WordPress 1.5.9, at css/admin-style.css

1,794 lines 34.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1
2
3 .mxchat-modal {
4 display: none;
5 position: fixed;
6 z-index: 1000;
7 left: 0;
8 top: 0;
9 width: 100%;
10 height: 100%;
11 background-color: rgba(0,0,0,0.4);
12 }
13
14 .mxchat-modal-content {
15 background-color: #fefefe;
16 margin: 15% auto;
17 padding: 20px;
18 border: 1px solid #ddd;
19 width: 70%;
20 max-width: 600px;
21 border-radius: 4px;
22 }
23
24 .mxchat-modal-close {
25 color: #aaa;
26 float: right;
27 font-size: 28px;
28 font-weight: bold;
29 cursor: pointer;
30 }
31
32 .mxchat-modal-close:hover {
33 color: black;
34 }
35
36
37
38
39 .mxchat-admin .button.button-secondary.mxchat-edit-button {
40 background: #3498db;
41 color: #fff;
42 border-radius: 20px;
43 padding: 0px 20px !important;
44 font-size: 1rem;
45 font-weight: 700;
46 text-decoration: none;
47 transition: all .2s;
48 justify-content: center;
49 align-items: center;
50 box-shadow: 4px 4px #2980b9;
51 cursor: pointer;
52 margin-top: 10px;
53 border: none;
54 width: 100%;
55 }
56
57
58 .mxchat-admin .mxchat-intents-table .mxchat-delete-all {
59 width: 100%;
60 }
61
62 .mxchat-admin .mxchat-intents-table .mxchat-save-button {
63 max-width: 100% !important;
64 width: 100% !important;
65 }
66
67 .mxchat-agents-banner {
68 background-color: #fff;
69 margin-bottom: 20px;
70 border-radius: 4px;
71 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
72 position: relative;
73 margin-left: auto;
74 margin-right: auto;
75 padding: 0px 15px;
76 }
77
78 .mxchat-agents-banner::before {
79 content: '';
80 position: absolute;
81 top: 0;
82 left: 0px;
83 width: 10px; /* Matches border-left width */
84 height: 100%;
85 background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); /* Gradient */
86 border-radius: 4px 0 0 4px; /* Match overall border radius */
87 }
88
89 .mxchat-agents-banner p {
90 font-size: 14px;
91 line-height: 1.6;
92 color: #444; /* Dark gray text */
93 margin: 0;
94 padding: 15px 10px;
95 }
96
97 .mxchat-agents-banner a {
98 background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); /* Gradient text */
99 -webkit-background-clip: text;
100 -webkit-text-fill-color: transparent; /* Makes gradient visible */
101 font-weight: bold;
102 text-decoration: none;
103 transition: opacity 0.2s ease;
104 }
105
106 .mxchat-agents-banner a:hover {
107 opacity: 0.8; /* Subtle fade on hover */
108 text-decoration: underline; /* Underline for accessibility */
109 }
110
111
112
113 .mxchat-timestamp {
114 font-size: 10px;
115 color: #8c8f94;
116 margin-top: 2px;
117 padding: 0 8px;
118 }
119
120 .mxchat-messages::-webkit-scrollbar {
121 width: 6px;
122 }
123
124 .mxchat-messages::-webkit-scrollbar-track {
125 background: #f1f1f1;
126 }
127
128 .mxchat-messages::-webkit-scrollbar-thumb {
129 background: #888;
130 border-radius: 3px;
131 }
132
133
134
135
136
137
138
139
140
141 .mxchat-process-status {
142 margin-top: 20px;
143 padding: 15px;
144 background: #fff;
145 border: 1px solid #ddd;
146 border-radius: 4px;
147 box-shadow: 0 1px 3px rgba(0,0,0,0.1);
148 }
149
150 .mxchat-process-status h3 {
151 margin: 0 0 15px 0;
152 color: #23282d;
153 font-size: 14px;
154 font-weight: 600;
155 }
156
157 .mxchat-process-status p {
158 margin: 8px 0;
159 color: #555;
160 font-size: 13px;
161 }
162
163 .mxchat-process-status .status-complete {
164 color: #46b450;
165 font-weight: 500;
166 }
167
168 .mxchat-process-status.complete {
169 border-color: #46b450;
170 }
171
172
173
174
175
176 /* Toggle Switch Styles */
177 .mxchat-switch {
178 position: relative;
179 display: inline-block;
180 width: 60px;
181 height: 34px;
182 margin-right: 10px;
183 }
184
185 .mxchat-switch input {
186 opacity: 0;
187 width: 0;
188 height: 0;
189 }
190
191 .mxchat-slider {
192 position: absolute;
193 cursor: pointer;
194 top: 0;
195 left: 0;
196 right: 0;
197 bottom: 0;
198 background-color: #ccc;
199 transition: .4s;
200 border-radius: 34px;
201 }
202
203 .mxchat-slider:before {
204 position: absolute;
205 content: "";
206 height: 26px;
207 width: 26px;
208 left: 4px;
209 bottom: 4px;
210 background-color: white;
211 transition: .4s;
212 border-radius: 50%;
213 }
214
215 input:checked + .mxchat-slider {
216 background-color: #2196F3;
217 }
218
219 input:disabled + .mxchat-slider {
220 opacity: 0.5;
221 cursor: not-allowed;
222 }
223
224 input:checked + .mxchat-slider:before {
225 transform: translateX(26px);
226 }
227
228 .mxchat-status-label {
229 display: inline-block;
230 vertical-align: middle;
231 margin-left: 10px;
232 }
233
234 .status-text {
235 font-weight: 500;
236 }
237
238
239
240
241 .mxchat-question-row {
242 margin-bottom: 10px;
243 }
244
245 .mxchat-similarity-threshold .mxchat-slider-container {
246 display: flex;
247 align-items: center;
248 gap: 15px;
249 margin-top: 10px;
250 }
251
252 .mxchat-similarity-threshold input[type="range"] {
253 flex: 1;
254 margin: 0;
255 }
256
257 .mxchat-similarity-threshold .button-primary {
258 white-space: nowrap;
259 }
260
261 .mxchat-similarity-threshold label {
262 font-weight: bold;
263 display: block;
264 margin-bottom: 5px;
265 }
266
267 .mxchat-similarity-threshold {
268 max-width: 600px;
269 }
270
271 #threshold_value_display {
272 font-weight: normal;
273 margin-left: 10px;
274 color: #0073aa;
275 }
276
277 .mxchat-form-group {
278 margin-bottom: 20px;
279 }
280
281 .mxchat-form-group input[type="range"] {
282 width: 100%;
283 margin-top: 10px;
284 }
285
286 .mxchat-form-group label {
287 font-weight: bold;
288 display: block;
289 margin-bottom: 5px;
290 }
291
292 .mxchat-form-group .description {
293 font-size: 0.9em;
294 color: #666;
295 }
296
297 #threshold_value_display {
298 font-weight: normal;
299 margin-left: 10px;
300 color: #0073aa;
301 }
302
303
304
305
306 .mxchat-product-image, .mxchat-generated-image, .mxchat-image-thumbnail {
307 max-width: 100%;
308 }
309 .description {
310 margin-top: -10px;
311 }
312 .mxchat-search-group {
313 margin-top: 20px;
314 }
315
316 .tablenav .tablenav-pages {
317 display: flex;
318 align-items: center;
319 margin-left: 20px;
320 gap: 5px;
321 }
322
323 /* General Styles */
324 .mxchat-admin body, .mxchat-admin html {
325 font-family: Arial, sans-serif;
326 background-color: #fff;
327 color: #212121;
328 margin: 0;
329 padding: 0;
330 }
331
332 /* Main Wrapper */
333 .mxchat-admin .wrap {
334 max-width: 1200px;
335 margin: 0 auto;
336 padding: 20px;
337 background: #f9f9f9;
338 box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
339 }
340
341 /* Header */
342 .mxchat-admin .wrap h2 {
343 border-bottom: 2px solid #ddd;
344 padding-bottom: 10px;
345 margin-bottom: 20px;
346 color: #212121;
347 }
348
349 .wrap.mxchat-admin .admin-title {
350 text-shadow: 0 2px 0 #c6c6c6;
351 font-weight: bold;
352 letter-spacing: 5px;
353 color: #212121;
354 font-size: 2.5rem;
355 }
356
357 .mxchat-admin .admin-emphasis {
358 color: white;
359 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;
360 font-weight: bold;
361 letter-spacing: 5px;
362 font-size: 2.5rem;
363 }
364 /* Grid Layout */
365 .mxchat-admin .mxchat-grid-container {
366 display: grid;
367 grid-template-columns: repeat(2, 1fr);
368 grid-gap: 20px;
369 }
370
371 .mxchat-admin .mxchat-grid-item {
372 background: #fff;
373 border: 1px solid #ddd;
374 box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
375 padding: 20px;
376 }
377
378 /* Full Width for Submit Content */
379 .mxchat-admin .mxchat-grid-item.full-width {
380 grid-column: span 2;
381 }
382
383 /* Form Styles */
384 .mxchat-admin .mxchat-form-group {
385 display: flex;
386 flex-direction: column;
387 margin-bottom: 20px;
388 }
389
390 .mxchat-admin .mxchat-form-group label {
391 margin-bottom: 10px;
392 font-weight: bold;
393 color: #212121;
394 }
395
396 .mxchat-admin .mxchat-form-group input[type="url"],
397 .mxchat-admin .mxchat-form-group input[type="text"],
398 .mxchat-admin .mxchat-form-group textarea {
399 padding: 10px;
400 border: 1px solid #ddd;
401 border-radius: 4px;
402 font-size: 1rem;
403 width: 100%;
404 box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
405 }
406
407 /* Larger Textarea for Content Submission */
408 .mxchat-admin .mxchat-form-group textarea {
409 min-height: 200px;
410 }
411
412 /* Button Styles */
413 .mxchat-admin .button.button-primary {
414 color: #fff;
415 background: #212121;
416 border-radius: 20px;
417 padding: 0px 30px;
418 font-size: 1rem;
419 font-weight: 700;
420 text-decoration: none;
421 transition: all .2s;
422 display: inline-flex;
423 justify-content: center;
424 align-items: center;
425 max-width: 200px;
426 width: auto;
427 box-shadow: 4px 4px #14141499;
428 border: none;
429 cursor: pointer;
430 }
431
432 .mxchat-admin .button.button-primary:hover,
433 .mxchat-admin .button.button-primary:active {
434 background: #444;
435 }
436
437 .submit-content-button {
438 margin-top: 10px !important;
439 }
440
441 /* Search and Sitemap Group */
442 .mxchat-admin .mxchat-search-group {
443 display: flex;
444 align-items: center;
445 gap: 10px;
446 }
447
448 .mxchat-admin .mxchat-search-group input[type="text"],
449 .mxchat-admin .mxchat-search-group input[type="url"] {
450 flex-grow: 1;
451 }
452
453 .mxchat-admin .mxchat-search-group input[type="submit"] {
454 background: #212121;
455 color: #fff;
456 border-radius: 20px;
457 padding: 0px 30px;
458 font-size: 1rem;
459 font-weight: 700;
460 box-shadow: 4px 4px #14141499;
461 border: none;
462 transition: background-color .2s;
463 cursor: pointer;
464 }
465
466 .mxchat-admin .mxchat-search-group input[type="submit"]:hover {
467 background-color: #444;
468 }
469
470 .mxchat-admin .mxchat-delete-all {
471 background: #e74c3c;
472 color: #fff;
473 border-radius: 20px;
474 padding: 10px 20px !important;
475 font-size: 1rem;
476 font-weight: 700;
477 text-decoration: none;
478 transition: all .2s;
479 justify-content: center;
480 align-items: center;
481 box-shadow: 4px 4px #c0392b;
482 cursor: pointer;
483 margin-top: 10px;
484 border: none;
485 }
486
487 .mxchat-admin .mxchat-delete-all:hover {
488 color: #fff;
489 background-color: #c0392b;
490 box-shadow: 4px 4px #a93226
491 }
492
493 .mxchat-admin .mxchat-intents-table .mxchat-delete-all {
494 background: #e74c3c;
495 color: #fff;
496 border-radius: 20px;
497 padding: 0px 20px !important;
498 font-size: 1rem;
499 font-weight: 700;
500 text-decoration: none;
501 transition: all .2s;
502 justify-content: center;
503 align-items: center;
504 box-shadow: 4px 4px #c0392b;
505 cursor: pointer;
506 margin-top: 10px;
507 border: none;
508 }
509
510 .mxchat-admin .mxchat-intents-table .mxchat-delete-all:hover {
511 color: #fff;
512 background-color: #c0392b;
513 box-shadow: 4px 4px #a93226;
514 }
515
516
517
518 /* Table Styles */
519 .mxchat-admin .wp-list-table {
520 width: 100%;
521 margin-top: 20px;
522 border-collapse: collapse;
523 background: #fff;
524 box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
525 }
526
527 .mxchat-admin .wp-list-table th,
528 .mxchat-admin .wp-list-table td {
529 padding: 15px;
530 border-bottom: 1px solid #ddd;
531 text-align: left;
532 }
533
534 .mxchat-admin .wp-list-table th {
535 background: #f0f2f5;
536 color: #212121;
537 }
538
539 .mxchat-admin .wp-list-table tr:nth-child(even) {
540 background: #f9f9f9;
541 }
542
543 .mxchat-admin .mxchat-pro-banner {
544 background-color: #fff;
545 padding: 0px 15px;
546 margin-bottom: 20px;
547 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
548 position: relative; /* Required for the ::before pseudo-element */
549 }
550
551 .mxchat-admin .mxchat-pro-banner::before {
552 content: '';
553 position: absolute;
554 top: 0;
555 left: 0px;
556 width: 10px; /* Matches the border-left width in your original CSS */
557 height: 100%;
558 background-color: #212121; /* Dark bar color */
559 border-radius: 4px 0 0 4px; /* Rounded corners on the left */
560 }
561
562
563 .mxchat-admin .mxchat-pro-banner p {
564 margin: 0;
565 font-size: 16px;
566 color: #212121;
567 padding: 15px 10px;
568 }
569
570 .mxchat-admin .mxchat-pro-banner a {
571 color: #212121;
572 text-decoration: none;
573 font-weight: bold;
574 }
575
576 .mxchat-admin .mxchat-pro-banner a:hover {
577 text-decoration: underline;
578 }
579
580 /* Toggle Switch Styles */
581 .mxchat-admin .toggle-switch {
582 position: relative;
583 display: inline-block;
584 width: 60px;
585 height: 34px;
586 }
587
588 .mxchat-admin .toggle-switch input {
589 opacity: 0;
590 width: 0;
591 height: 0;
592 }
593
594 .mxchat-admin .slider {
595 position: absolute;
596 cursor: pointer;
597 top: 0;
598 left: 0;
599 right: 0;
600 bottom: 0;
601 background-color: #ccc;
602 transition: .4s;
603 border-radius: 34px;
604 }
605
606 .mxchat-admin .slider:before {
607 position: absolute;
608 content: "";
609 height: 26px;
610 width: 26px;
611 left: 4px;
612 bottom: 4px;
613 background-color: white;
614 transition: .4s;
615 border-radius: 50%;
616 }
617
618 .mxchat-admin input:checked + .slider {
619 background-color: #212121;
620 }
621
622 .mxchat-admin input:checked + .slider:before {
623 transform: translateX(26px);
624 }
625
626 /* Toggle Switch Label */
627 .mxchat-admin .toggle-switch-label {
628 display: flex;
629 align-items: center;
630 font-weight: 600;
631 color: #212121;
632 margin-bottom: 20px;
633 }
634
635 .mxchat-loading-text {
636 display: none;
637 margin-top: 10px;
638 color: #333;
639 }
640
641 .mxchat-spinner {
642 border: 8px solid #f3f3f3;
643 border-top: 8px solid #333;
644 border-radius: 50%;
645 width: 30px;
646 height: 30px;
647 animation: mxchat-spin 1s linear infinite;
648 display: flex;
649 justify-content: center;
650 align-items: center;
651 }
652
653 #mxchat-content-loading-text {
654 display: none;
655 margin-top: 10px;
656 color: #333;
657 }
658
659 .mxchat-content-spinner {
660 border: 8px solid #f3f3f3;
661 border-top: 8px solid #333;
662 border-radius: 50%;
663 width: 30px;
664 height: 30px;
665 animation: mxchat-spin 1s linear infinite;
666 display: flex;
667 justify-content: center;
668 align-items: center;
669 }
670
671 #mxchat-intent-loading {
672 border: 8px solid #f3f3f3;
673 border-top: 8px solid #333;
674 border-radius: 50%;
675 width: 30px;
676 height: 30px;
677 animation: mxchat-spin 1s linear infinite;
678 display: inline-block; /* Display as inline for better alignment */
679 margin-left: 10px;
680 vertical-align: middle;
681 }
682
683 #mxchat-intent-loading-text {
684 display: none;
685 margin-top: 10px;
686 color: #333;
687 }
688
689 #mxchat-activation-spinner {
690 border: 4px solid #f3f3f3;
691 border-top: 4px solid #007cba; /* Match the WordPress primary button color */
692 border-radius: 50%;
693 width: 20px;
694 height: 20px;
695 animation: mxchat-spin 1s linear infinite;
696 display: inline-block;
697 vertical-align: middle;
698 margin-left: 10px;
699 }
700
701 @keyframes mxchat-spin {
702 0% { transform: rotate(0deg); }
703 100% { transform: rotate(360deg); }
704 }
705
706
707
708 .pro-feature-wrapper.active select,
709 .pro-feature-wrapper.active textarea {
710 opacity: 1; /* Fully opaque when active */
711 }
712
713 .pro-feature-wrapper.inactive select,
714 .pro-feature-wrapper.inactive textarea {
715 opacity: 0.5; /* Grayed out when inactive */
716 }
717
718 .pro-feature-overlay {
719 position: absolute;
720 top: 0;
721 left: 0;
722 width: 100%;
723 height: 100%;
724 display: flex;
725 justify-content: center;
726 align-items: center;
727 pointer-events: none;
728 }
729
730 .pro-feature-overlay img {
731 max-width: 100px;
732 pointer-events: auto; /* Allow clicking the image */
733 }
734
735 .pro-feature-wrapper a {
736 text-decoration: none;
737 position: absolute;
738 top: 0;
739 left: 0;
740 width: 100%;
741 height: 100%;
742 z-index: 10; /* Ensure the link is above everything else */
743 }
744
745
746 .mxchat-admin .chat-session {
747 border: 1px solid #ddd;
748 padding: 15px;
749 width: calc(33.333% - 20px);
750 box-sizing: border-box;
751 background-color: #f9f9f9;
752 display: flex;
753 flex-direction: column;
754 max-height: 500px;
755 overflow: auto;
756 }
757
758 .mxchat-admin .chat-message {
759 border-bottom: 1px solid #eee;
760 padding-bottom: 10px;
761 margin-bottom: 10px;
762 }
763
764 .mxchat-admin .chat-session h4 {
765 margin-bottom: 15px;
766 font-size: 1.1em;
767 font-weight: 700;
768 }
769
770 .mxchat-controls {
771 display: flex;
772 align-items: center;
773 margin-bottom: 15px;
774 }
775
776 .mxchat-select-all-label {
777 margin-right: 15px;
778 display: flex;
779 align-items: center;
780 }
781
782 .mxchat-select-all-label input[type="checkbox"] {
783 margin-right: 5px;
784 }
785
786 .mxchat-controls .delete-chats-button.button {
787 padding: 6px 12px;
788 font-size: 14px;
789 background: #e74c3c;
790 color: #fff;
791 border-radius: 20px;
792 font-weight: 700;
793 text-decoration: none;
794 transition: all .2s;
795 justify-content: center;
796 align-items: center;
797 cursor: pointer;
798 border: none;
799 line-height: 1;
800 }
801
802
803 .mxchat-controls .delete-chats-button.button:hover {
804 color: #fff;
805 background-color: #c0392b;
806 box-shadow: 4px 4px #a93226
807 }
808
809
810 .mxchat-license-status.active {
811 color: green;
812 font-weight: bold;
813 }
814
815 .mxchat-license-status.inactive {
816 color: red;
817 font-weight: bold;
818 }
819 .mxchat-nav-tab-wrapper {
820 margin: 0px 0px;
821 padding: 0px 0px;
822 display: flex;
823 padding-left: 20px;
824 }
825
826 .mxchat-nav-tab {
827 font-size: 14px;
828 padding: 10px 20px;
829 margin-right: 10px;
830 background: #f1f1f1;
831 border: 1px solid #ddd;
832 border-bottom: none;
833 cursor: pointer;
834 box-shadow: none;
835 color: #333;
836 text-decoration: none;
837 }
838
839 .mxchat-nav-tab:hover, .mxchat-nav-tab:focus {
840 background: #fff;
841 color: #0073aa;
842 box-shadow: none;
843 }
844
845 .mxchat-nav-tab-active {
846 background: #fff;
847 border-bottom: 1px solid #fff;
848 color: #0073aa;
849 }
850
851 .mxchat-tab-content {
852 display: none;
853 padding: 20px;
854 background: #fff;
855 border: 1px solid #ddd;
856 }
857
858 .mxchat-tab-content.active {
859 display: block;
860 }
861
862
863 .mxchat-settings-section {
864 padding: 20px 0;
865 }
866
867 .mxchat-settings-section h2 {
868 font-size: 1.2em;
869 margin-bottom: 10px;
870 color: #333;
871 font-weight: bold;
872 }
873
874 .section-divider {
875 width: 95%;
876 height: 2px;
877 background-color: #e0e0e0;
878 margin: 20px auto;
879 border-radius: 1px;
880 }
881
882 .form-table th {
883 padding: 10px 0;
884 vertical-align: top;
885 width: 220px;
886 }
887
888 .form-table td {
889 padding: 10px 0;
890 }
891
892
893
894
895 .mxchat-table {
896 width: 100%;
897 table-layout: fixed;
898 border-collapse: collapse;
899 border: 1px solid #ccc; /* Adds a border around the table */
900 }
901
902 /* Header styling to match theme */
903 .mxchat-table th {
904 background-color: #212121; /* Dark gray/black background */
905 color: #fff; /* White text */
906 font-weight: bold;
907 padding: 10px;
908 border-bottom: 3px solid #ccc; /* Thicker divider for the header */
909 }
910
911 /* General cell styling */
912 .mxchat-table th, .mxchat-table td {
913 padding: 8px 10px;
914 text-align: left;
915 vertical-align: top; /* Aligns content to the top of the cell */
916 border-bottom: 2px solid #ddd; /* Adds prominent dividers between rows */
917 }
918
919 /* Alternate row background for better readability */
920 .mxchat-table tbody tr:nth-child(odd) {
921 background-color: #f9f9f9;
922 }
923
924 .mxchat-table tbody tr:nth-child(even) {
925 background-color: #fff;
926 }
927
928 /* ID column should be small */
929 .mxchat-table td:nth-child(1),
930 .mxchat-table th:nth-child(1) {
931 width: 15%; /* ID column */
932 text-align: center;
933 }
934
935 /* Content column should be wide */
936 .mxchat-table td:nth-child(2),
937 .mxchat-table th:nth-child(2) {
938 width: 50%; /* Content column */
939 }
940
941 /* URL column */
942 .mxchat-table td:nth-child(3),
943 .mxchat-table th:nth-child(3) {
944 width: 20%; /* URL column */
945 text-align: left;
946 overflow-x: auto; /* Allow the URL to scroll horizontally if it's too long */
947 white-space: nowrap;
948 }
949
950 /* Actions column */
951 .mxchat-table td:nth-child(4),
952 .mxchat-table th:nth-child(4) {
953 width: 15%; /* Edit/Delete column */
954 text-align: center;
955 }
956
957 .mxchat-intents-table {
958 width: 100%;
959 table-layout: fixed;
960 border-collapse: collapse;
961 border: 1px solid #ccc;
962 }
963
964 .mxchat-intents-table th {
965 background-color: #212121;
966 color: #fff;
967 font-weight: bold;
968 padding: 10px;
969 border-bottom: 3px solid #ccc;
970 }
971
972 .mxchat-intents-table th,
973 .mxchat-intents-table td {
974 padding: 8px 10px;
975 text-align: left;
976 vertical-align: top;
977 border-bottom: 2px solid #ddd;
978 }
979
980 .mxchat-intents-table tbody tr:nth-child(odd) {
981 background-color: #f9f9f9;
982 }
983
984 .mxchat-intents-table tbody tr:nth-child(even) {
985 background-color: #fff;
986 }
987
988 /* Intent Label column */
989 .mxchat-intents-table td:nth-child(1),
990 .mxchat-intents-table th:nth-child(1) {
991 width: 20%;
992 }
993
994 /* Phrases column */
995 .mxchat-intents-table td:nth-child(2),
996 .mxchat-intents-table th:nth-child(2) {
997 width: 30%;
998 overflow-x: auto;
999 }
1000
1001 /* Callback Function column */
1002 .mxchat-intents-table td:nth-child(3),
1003 .mxchat-intents-table th:nth-child(3) {
1004 width: 20%;
1005 }
1006
1007 /* Similarity Threshold column */
1008 .mxchat-intents-table td:nth-child(4),
1009 .mxchat-intents-table th:nth-child(4) {
1010 width: 15%;
1011 text-align: center;
1012 }
1013
1014 /* Actions column */
1015 .mxchat-intents-table td:nth-child(5),
1016 .mxchat-intents-table th:nth-child(5) {
1017 width: 15%;
1018 text-align: center;
1019 }
1020
1021 /* Style the threshold range slider */
1022 .mxchat-intents-threshold-form input[type="range"] {
1023 width: 100%;
1024 margin: 5px 0;
1025 }
1026
1027 .mxchat-intents-threshold-form button {
1028 margin-top: 5px;
1029 }
1030
1031
1032
1033 /* Edit content textarea styling */
1034 .content-edit {
1035 width: 100%; /* Make textarea fill the column */
1036 height: 100px; /* Adjust height as needed */
1037 box-sizing: border-box; /* Ensure padding and border are included in the width/height */
1038 }
1039
1040 /* Button styling to match theme */
1041 .mxchat-table td .button {
1042 display: inline-block;
1043 margin-right: 5px;
1044 background-color: #212121;
1045 color: #fff;
1046 border: none;
1047 padding: 5px 10px;
1048 text-decoration: none;
1049 border-radius: 3px;
1050 cursor: pointer;
1051 box-shadow: 4px 4px #14141499;
1052 }
1053
1054 /* Hover state */
1055 .mxchat-table td .button:hover {
1056 display: inline-block;
1057 margin-right: 5px;
1058 background-color: #444;
1059 color: #fff;
1060 border: none;
1061 padding: 5px 10px;
1062 text-decoration: none;
1063 border-radius: 3px;
1064 cursor: pointer;
1065 box-shadow: 4px 4px #14141499;
1066 }
1067
1068 /* Active state */
1069 .mxchat-table td .button:active {
1070 display: inline-block;
1071 margin-right: 5px;
1072 background-color: #444;
1073 color: #fff;
1074 border: none;
1075 padding: 5px 10px;
1076 text-decoration: none;
1077 border-radius: 3px;
1078 cursor: pointer;
1079 box-shadow: 4px 4px #14141499;
1080 }
1081
1082 /* Focus state */
1083 .mxchat-table td .button:focus {
1084 display: inline-block;
1085 margin-right: 5px;
1086 background-color: #444;
1087 color: #fff;
1088 border: none;
1089 padding: 5px 10px;
1090 text-decoration: none;
1091 border-radius: 3px;
1092 cursor: pointer;
1093 box-shadow: 4px 4px #14141499;
1094 outline: none; /* Removes default outline */
1095 }
1096
1097
1098
1099 /* Responsive Design */
1100 @media (max-width: 1024px) {
1101 .mxchat-admin .mxchat-grid-container {
1102 grid-template-columns: 1fr;
1103 }
1104
1105 .mxchat-admin .mxchat-grid-item.full-width {
1106 grid-column: span 1;
1107 }
1108
1109 .mxchat-admin .chat-session {
1110 width: calc(100% - 0px);
1111 }
1112
1113 .mxchat-nav-tab {
1114 padding: 10px 12px;
1115 }
1116
1117 /* Search and Sitemap Group */
1118 .mxchat-admin .mxchat-search-group {
1119 align-items: normal;
1120 flex-direction: column;
1121 }
1122
1123 .mxchat-admin .mxchat-nav-tab-wrapper,
1124 .mxchat-admin .wrap h2.mxchat-nav-tab-wrapper,
1125 .mxchat-admin h1.mxchat-nav-tab-wrapper {
1126 border-bottom: 0;
1127 justify-content: space-evenly;
1128 display: flex;
1129 }
1130
1131 .mxchat-admin .mxchat-nav-tab-wrapper .mxchat-nav-tab {
1132 margin: 0;
1133 }
1134 .mxchat-nav-tab-wrapper {
1135 padding-left: 0px;
1136 }
1137
1138 .mxchat-session {
1139 width: 100%;
1140 }
1141
1142
1143 }
1144
1145
1146 /* Basic responsive table styles */
1147 @media screen and (max-width: 782px) {
1148 .mxchat-intents-table {
1149 display: block;
1150 width: 100%;
1151 }
1152
1153 .mxchat-intents-table thead {
1154 display: none; /* Hide header on mobile */
1155 }
1156
1157 .mxchat-intents-table tbody,
1158 .mxchat-intents-table tr,
1159 .mxchat-intents-table td {
1160 display: block;
1161 width: 100%;
1162 }
1163
1164 .mxchat-intents-table tr {
1165 margin-bottom: 1.5rem;
1166 background: #fff;
1167 padding: 1rem;
1168 border-radius: 8px;
1169 box-shadow: 0 1px 3px rgba(0,0,0,0.1);
1170 max-width: 300px;
1171 }
1172
1173 /* Add labels before content */
1174 .mxchat-intents-table td:before {
1175 content: attr(data-label);
1176 font-weight: 600;
1177 display: block;
1178 margin-bottom: 0.5rem;
1179 color: #1d2327;
1180 }
1181
1182 /* Spacing between cells */
1183 .mxchat-intents-table td {
1184 padding: 0.5rem 0;
1185 border: none;
1186 }
1187
1188 /* Handle the slider container */
1189 .mxchat-intents-table td:nth-child(4) {
1190 margin: 1rem 0;
1191 }
1192
1193 /* Style the range input */
1194 .mxchat-intents-table input[type="range"] {
1195 width: 100%;
1196 margin: 0.5rem 0;
1197 }
1198
1199 /* Style the actions column */
1200 .mxchat-intents-table td:last-child {
1201 display: flex;
1202 flex-direction: column;
1203 gap: 0.5rem;
1204 margin-top: 1rem;
1205 }
1206
1207 /* Make buttons full width on mobile */
1208 .mxchat-intents-table .mxchat-save-button,
1209 .mxchat-intents-table .mxchat-edit-button,
1210 .mxchat-intents-table .mxchat-delete-all {
1211 width: 100%;
1212 margin: 0;
1213 }
1214
1215 /* Adjust output display */
1216 .mxchat-intents-table output {
1217 display: block;
1218 text-align: center;
1219 margin-top: 0.25rem;
1220 }
1221
1222 /* Additional spacing for forms */
1223 .mxchat-intents-table form {
1224 margin: 0;
1225 }
1226 }
1227
1228 /* Filter section responsive styles */
1229 @media screen and (max-width: 782px) {
1230 .mxchat-search-group {
1231 display: flex;
1232 flex-direction: column;
1233 gap: 0.5rem;
1234 }
1235
1236 .mxchat-search-group input,
1237 .mxchat-search-group select,
1238 .mxchat-search-group button {
1239 width: 100%;
1240 margin: 0;
1241 }
1242 }
1243
1244
1245 /* Stats Grid */
1246 .mxchat-stats-grid {
1247 display: grid;
1248 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
1249 gap: 20px;
1250 margin-bottom: 30px;
1251 margin-top: 20px;
1252 }
1253
1254 .mxchat-stat-card {
1255 background: white;
1256 padding: 20px;
1257 border-radius: 10px;
1258 box-shadow: 0 2px 4px rgba(0,0,0,0.1);
1259 display: flex;
1260 align-items: center;
1261 gap: 15px;
1262 }
1263
1264 .stat-icon {
1265 font-size: 24px;
1266 background: #f0f0f1;
1267 width: 50px;
1268 height: 50px;
1269 display: flex;
1270 align-items: center;
1271 justify-content: center;
1272 border-radius: 10px;
1273 }
1274
1275 .stat-content {
1276 display: flex;
1277 flex-direction: column;
1278 }
1279
1280 .stat-value {
1281 font-size: 24px;
1282 font-weight: bold;
1283 color: #1d2327;
1284 }
1285
1286 .stat-label {
1287 color: #50575e;
1288 font-size: 14px;
1289 }
1290
1291 /* Controls Section */
1292 .mxchat-controls-wrapper {
1293 background: white;
1294 padding: 20px;
1295 border-radius: 10px;
1296 box-shadow: 0 2px 4px rgba(0,0,0,0.1);
1297 margin-bottom: 20px;
1298 display: flex;
1299 justify-content: space-between;
1300 align-items: center;
1301 flex-wrap: wrap;
1302 gap: 15px;
1303 }
1304
1305 .mxchat-controls {
1306 display: flex;
1307 gap: 15px;
1308 align-items: center;
1309 }
1310
1311 .mxchat-search-box input {
1312 padding: 8px 12px;
1313 border-radius: 5px;
1314 border: 1px solid #dcdcde;
1315 width: 300px;
1316 }
1317
1318 /* Select/Delete Buttons */
1319 .mxchat-select-button {
1320 display: flex;
1321 align-items: center;
1322 gap: 8px;
1323 padding: 8px 16px;
1324 background: #fff;
1325 border: 1px solid #0073aa;
1326 border-radius: 4px;
1327 color: #0073aa;
1328 cursor: pointer;
1329 transition: all 0.2s ease;
1330 }
1331
1332 .mxchat-select-button:hover {
1333 background: #f0f7ff;
1334 }
1335
1336 .mxchat-select-button.selected {
1337 background: #0073aa;
1338 color: #fff;
1339 }
1340
1341 .mxchat-select-button .dashicons {
1342 font-size: 18px;
1343 width: 18px;
1344 height: 18px;
1345 transition: transform 0.2s ease;
1346 }
1347
1348 .mxchat-select-button.selected .dashicons {
1349 transform: scale(1.2);
1350 }
1351
1352 .delete-chats-button {
1353 display: flex !important;
1354 align-items: center;
1355 gap: 8px;
1356 background: #dc3232 !important;
1357 color: #fff !important;
1358 border: none !important;
1359 padding: 8px 16px !important;
1360 border-radius: 4px !important;
1361 cursor: pointer;
1362 transition: all 0.2s ease !important;
1363 }
1364
1365 .delete-chats-button:hover {
1366 background: #b32d2e !important;
1367 }
1368
1369 .delete-chats-button .dashicons {
1370 font-size: 18px;
1371 width: 18px;
1372 height: 18px;
1373 }
1374
1375 /* Transcript Grid */
1376 .mxchat-transcript {
1377 display: grid;
1378 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
1379 gap: 20px;
1380 }
1381
1382 /* Session Cards */
1383 .mxchat-session {
1384 background: white;
1385 border-radius: 10px;
1386 box-shadow: 0 2px 4px rgba(0,0,0,0.1);
1387 overflow: hidden;
1388 border: 1px solid #dcdcde;
1389 display: flex;
1390 flex-direction: column;
1391 }
1392
1393 .mxchat-session-header {
1394 background: #f0f0f1;
1395 padding: 15px;
1396 border-bottom: 1px solid #dcdcde;
1397 }
1398
1399 .mxchat-messages {
1400 padding: 15px;
1401 max-height: 400px;
1402 overflow-y: auto;
1403 flex-grow: 1;
1404 overflow-x: hidden;
1405 }
1406
1407 /* Message Styling */
1408 .mxchat-message {
1409 margin-bottom: 15px;
1410 max-width: 85%;
1411 }
1412
1413 .mxchat-message.user-message {
1414 margin-left: auto;
1415 }
1416
1417 .mxchat-message-content {
1418 padding: 10px 15px;
1419 border-radius: 15px;
1420 margin: 5px 0;
1421 }
1422
1423 .user-message .mxchat-message-content {
1424 background: #0073aa;
1425 color: white;
1426 border-radius: 18px 0 18px 18px;
1427 }
1428
1429 .bot-message .mxchat-message-content {
1430 background: #f0f0f1;
1431 border-radius: 0 18px 18px;
1432 }
1433
1434 .mxchat-timestamp {
1435 font-size: 12px;
1436 color: #50575e;
1437 }
1438
1439 /* Responsive Design */
1440 @media (max-width: 782px) {
1441 .mxchat-controls-wrapper {
1442 flex-direction: column;
1443 align-items: stretch;
1444 }
1445
1446 .mxchat-controls {
1447 flex-direction: column;
1448 width: 100%;
1449 }
1450
1451 .mxchat-search-box input {
1452 width: 100%;
1453 }
1454
1455 .mxchat-transcript {
1456 grid-template-columns: 1fr;
1457 }
1458
1459 .mxchat-select-button,
1460 .delete-chats-button {
1461 width: 100%;
1462 justify-content: center;
1463 }
1464 }
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480 /* Settings Page Container */
1481 .mxchat-tab-content {
1482 background: white;
1483 padding: 25px;
1484 border-radius: 10px;
1485 box-shadow: 0 2px 15px rgba(0,0,0,0.05);
1486 }
1487
1488 /* Form Table Layout */
1489 .form-table {
1490 border-collapse: separate;
1491 border-spacing: 0 20px;
1492 margin-top: -20px; /* Compensate for border-spacing */
1493 width: 100%;
1494 }
1495
1496 .form-table th {
1497 padding: 20px 10px 20px 0;
1498 width: 200px;
1499 vertical-align: top;
1500 font-weight: 600;
1501 color: #1d2327;
1502 }
1503
1504 .form-table td {
1505 padding: 15px 10px;
1506 vertical-align: top;
1507 }
1508
1509 /* Input Styling */
1510 .form-table input[type="text"],
1511 .form-table input[type="password"],
1512 .form-table textarea,
1513 .form-table select {
1514 width: 100%;
1515 max-width: 500px;
1516 padding: 8px 12px;
1517 border: 1px solid #dcdcde;
1518 border-radius: 4px;
1519 background-color: #fff;
1520 transition: all 0.2s ease;
1521 }
1522
1523 .form-table input[type="text"]:focus,
1524 .form-table input[type="password"]:focus,
1525 .form-table textarea:focus,
1526 .form-table select:focus {
1527 border-color: #2271b1;
1528 box-shadow: 0 0 0 1px #2271b1;
1529 outline: none;
1530 }
1531
1532 /* Range Input Styling */
1533 input[type="range"] {
1534 -webkit-appearance: none;
1535 width: 200px;
1536 height: 4px;
1537 background: #dcdcde;
1538 border-radius: 2px;
1539 vertical-align: middle;
1540 }
1541
1542 input[type="range"]::-webkit-slider-thumb {
1543 -webkit-appearance: none;
1544 height: 16px;
1545 width: 16px;
1546 border-radius: 50%;
1547 background: #2271b1;
1548 cursor: pointer;
1549 transition: all 0.2s ease;
1550 }
1551
1552 input[type="range"]::-webkit-slider-thumb:hover {
1553 transform: scale(1.1);
1554 }
1555
1556 #mxchat_threshold_value {
1557 display: inline-block;
1558 padding: 4px 8px;
1559 background: #2271b1;
1560 color: white;
1561 border-radius: 4px;
1562 margin-left: 10px;
1563 font-size: 12px;
1564 min-width: 30px;
1565 text-align: center;
1566 }
1567
1568 /* Toggle Switch */
1569 .toggle-switch {
1570 position: relative;
1571 display: inline-block;
1572 width: 50px;
1573 height: 24px;
1574 }
1575
1576 .toggle-switch input {
1577 opacity: 0;
1578 width: 0;
1579 height: 0;
1580 }
1581
1582 .slider {
1583 position: absolute;
1584 cursor: pointer;
1585 top: 0;
1586 left: 0;
1587 right: 0;
1588 bottom: 0;
1589 background-color: #ccc;
1590 transition: .4s;
1591 border-radius: 24px;
1592 }
1593
1594 .slider:before {
1595 position: absolute;
1596 content: "";
1597 height: 18px;
1598 width: 18px;
1599 left: 3px;
1600 bottom: 3px;
1601 background-color: white;
1602 transition: .4s;
1603 border-radius: 50%;
1604 }
1605
1606 input:checked + .slider {
1607 background-color: #2271b1;
1608 }
1609
1610 input:checked + .slider:before {
1611 transform: translateX(26px);
1612 }
1613
1614 /* Description Text */
1615 .description {
1616 margin-top: 8px;
1617 color: #646970;
1618 font-style: italic;
1619 font-size: 13px;
1620 }
1621
1622 /* Show/Hide Password Button */
1623 button[id^="toggleApiKey"],
1624 button[id^="toggleXaiKey"],
1625 button[id^="toggleClaudeKey"] {
1626 margin-left: 10px;
1627 padding: 4px 12px;
1628 background: #f0f0f1;
1629 border: 1px solid #c3c4c7;
1630 border-radius: 3px;
1631 cursor: pointer;
1632 transition: all 0.2s ease;
1633 }
1634
1635 button[id^="toggleApiKey"]:hover,
1636 button[id^="toggleXaiKey"]:hover,
1637 button[id^="toggleClaudeKey"]:hover {
1638 background: #e5e5e5;
1639 }
1640
1641 /* Additional Questions Section */
1642 .mxchat-question-row {
1643 display: flex;
1644 gap: 10px;
1645 margin-bottom: 10px;
1646 align-items: center;
1647 }
1648
1649 .mxchat-question-row input {
1650 flex: 1;
1651 }
1652
1653 .mxchat-remove-question,
1654 .mxchat-add-question {
1655 padding: 4px 12px !important;
1656 height: auto !important;
1657 }
1658
1659 .mxchat-remove-question {
1660 background: #dc3232 !important;
1661 color: white !important;
1662 border: none !important;
1663 }
1664
1665 .mxchat-add-question {
1666 background: #2271b1 !important;
1667 color: white !important;
1668 border: none !important;
1669 margin-top: 10px;
1670 }
1671
1672 /* Pro Feature Wrapper */
1673 .pro-feature-wrapper {
1674 position: relative;
1675 }
1676
1677 .pro-feature-wrapper.inactive {
1678 opacity: 0.7;
1679 }
1680
1681 /* Responsive Design */
1682 @media screen and (max-width: 782px) {
1683 .form-table td {
1684 padding-left: 0;
1685 }
1686
1687 .form-table input[type="text"],
1688 .form-table input[type="password"],
1689 .form-table textarea,
1690 .form-table select {
1691 max-width: 100%;
1692 }
1693
1694 .form-table th {
1695 padding-bottom: 5px;
1696 }
1697
1698 .mxchat-question-row {
1699 flex-direction: column;
1700 gap: 5px;
1701 }
1702
1703 input[type="range"] {
1704 width: 100%;
1705 max-width: 300px;
1706 }
1707 }
1708
1709 /* Section Headers */
1710 .mxchat-tab-content h2 {
1711 font-size: 1.5em;
1712 padding-bottom: 15px;
1713 margin-bottom: 25px;
1714 border-bottom: 2px solid #f0f0f1;
1715 color: #1d2327;
1716 }
1717
1718 /* Grouped Settings */
1719 .form-table tr:not(:last-child) {
1720 border-bottom: 1px solid #f0f0f1;
1721 }
1722
1723 /* Show/Hide Button - Universal Selector for all toggle buttons */
1724 button[id^="toggle"] {
1725 padding: 8px 16px;
1726 background: #f0f0f1;
1727 border: 1px solid #dcdcde;
1728 border-radius: 4px;
1729 cursor: pointer;
1730 color: #1d2327;
1731 font-size: 13px;
1732 font-weight: 500;
1733 transition: all 0.2s ease;
1734 white-space: nowrap;
1735 height: 36px;
1736 min-width: 80px;
1737 margin-left: 10px;
1738 }
1739
1740 /* Specific selectors for backward compatibility */
1741 button[id^="toggleApiKey"],
1742 button[id^="toggleXaiApiKey"],
1743 button[id^="toggleClaudeApiKey"],
1744 button[id^="toggleWooCommerceSecretVisibility"],
1745 button[id^="toggleBraveApiKeyVisibility"],
1746 button[id^="toggleLoopsApiKeyVisibility"],
1747 button[id^="toggleWebhookUrlVisibility"],
1748 button[id^="toggleSecretKeyVisibility"],
1749 button[id^="toggleBotTokenVisibility"] {
1750 padding: 8px 16px;
1751 background: #f0f0f1;
1752 border: 1px solid #dcdcde;
1753 border-radius: 4px;
1754 cursor: pointer;
1755 color: #1d2327;
1756 font-size: 13px;
1757 font-weight: 500;
1758 transition: all 0.2s ease;
1759 white-space: nowrap;
1760 height: 36px;
1761 min-width: 80px;
1762 margin-left: 10px;
1763 }
1764
1765 /* Hover state for all toggle buttons */
1766 button[id^="toggle"]:hover {
1767 background: #e5e5e5;
1768 border-color: #c3c4c7;
1769 }
1770
1771 /* Active state for all toggle buttons */
1772 button[id^="toggle"]:active {
1773 background: #dcdcde;
1774 border-color: #c3c4c7;
1775 transform: translateY(1px);
1776 }
1777
1778 /* Responsive Design */
1779 @media screen and (max-width: 782px) {
1780 .pro-feature-wrapper {
1781 flex-wrap: wrap;
1782 }
1783
1784 /* Make all toggle buttons full width on mobile */
1785 button[id^="toggle"] {
1786 width: 100%;
1787 margin-left: 0;
1788 margin-top: 10px;
1789 }
1790 .mxchat-remove-question {
1791 width: 100%;
1792 }
1793 }
1794