PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 2.3.0
MxChat – AI Chatbot & Content Generation for WordPress v2.3.0
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 / knowledge-style.css

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

2,502 lines 48.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2 * MxChat Knowledge Base Styles
3 * Consolidated stylesheet for the Knowledge Base Manager
4 */
5
6 #wpcontent, .auto-fold #wpcontent {
7 padding: 0px;
8 }
9 .mxchat-kb-header-note {
10 font-size: 12px;
11 font-weight: normal;
12 color: #666;
13 font-style: italic;
14 }
15 /* ===== Core Layout ===== */
16 .mxchat-wrapper, .mxchat-admin-activation {
17 width: 100%;
18 margin: 0px;
19 padding: 0;
20 background-color: #f8f9ff;
21 min-height: 100vh;
22 }
23
24 /* ===== Hero Section ===== */
25 .mxchat-hero {
26 text-align: center;
27 padding: 3.5rem 2rem;
28 position: relative;
29 background: #212121;
30 border-bottom: 4px solid transparent;
31 border-image: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
32 border-image-slice: 1;
33 }
34
35 .mxchat-hero::before {
36 content: '';
37 position: absolute;
38 top: 0;
39 left: 0;
40 width: 100%;
41 height: 100%;
42 background: radial-gradient(
43 circle at center,
44 rgba(250, 115, 230, 0.08) 0%,
45 rgba(120, 115, 245, 0.08) 50%,
46 rgba(58, 201, 209, 0.08) 100%
47 );
48 z-index: 1;
49 }
50
51 div.mxchat-hero h1.mxchat-main-title {
52 font-size: 3.5rem;
53 margin: 0 0 1.5rem;
54 line-height: 1.2;
55 color: white;
56 position: relative;
57 z-index: 2;
58 }
59
60 .mxchat-gradient-text {
61 background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1);
62 -webkit-background-clip: text;
63 -webkit-text-fill-color: transparent;
64 display: inline-block;
65 font-weight: 700;
66 }
67
68 .mxchat-hero-subtitle {
69 font-size: 1.25rem;
70 color: rgba(255, 255, 255, 0.9);
71 max-width: 800px;
72 margin: 0 auto;
73 position: relative;
74 z-index: 2;
75 line-height: 1.6;
76 }
77
78 /* ===== Content Area ===== */
79 .mxchat-content {
80 padding: 2rem;
81 max-width: 1400px;
82 margin: 0 auto;
83 width: 100%;
84 box-sizing: border-box;
85 }
86
87 /* ===== Card Styles ===== */
88 .mxchat-card {
89 background: #fff;
90 border-radius: 16px;
91 box-shadow: 0 4px 20px rgba(120, 115, 245, 0.08);
92 padding: 30px;
93 margin: 30px auto;
94 transition: all 0.3s ease;
95 }
96
97 .mxchat-card:hover {
98 transform: translateY(-2px);
99 box-shadow: 0 6px 25px rgba(120, 115, 245, 0.12);
100 }
101
102 .mxchat-card h2 {
103 margin: 0 0 1.5rem;
104 color: #333;
105 font-size: 1.5rem;
106 }
107
108 .mxchat-card-header {
109 display: flex;
110 justify-content: space-between;
111 align-items: center;
112 margin-bottom: 20px;
113 }
114
115 .mxchat-header-actions {
116 display: flex;
117 gap: 16px;
118 align-items: center;
119 }
120
121 /* ===== Knowledge Warning ===== */
122 .mxchat-knowledge-warning {
123 padding: 15px;
124 border-radius: 8px;
125 margin-bottom: 20px;
126 }
127
128 .mxchat-knowledge-warning.success {
129 background-color: #eefbe8;
130 border-left: 4px solid #4caf50;
131 }
132
133 .mxchat-knowledge-warning.warning {
134 background-color: #fff9e6;
135 border-left: 4px solid #ff9800;
136 }
137
138 .mxchat-knowledge-warning p {
139 align-items: center;
140 margin: 0;
141 color: #333;
142 }
143
144 .mxchat-knowledge-warning .dashicons {
145 margin-right: 10px;
146 font-size: 20px;
147 }
148
149 .mxchat-knowledge-warning .dashicons-yes-alt {
150 color: #4caf50;
151 }
152
153 .mxchat-knowledge-warning .dashicons-warning {
154 color: #ff9800;
155 }
156
157 /* ===== Import Section ===== */
158 .mxchat-import-section {
159 margin-top: 30px;
160 }
161
162 .mxchat-import-section h3 {
163 margin-top: 0;
164 margin-bottom: 20px;
165 font-size: 18px;
166 color: #333;
167 }
168
169 /* Import Options */
170 .mxchat-import-options {
171 display: grid;
172 grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
173 gap: 16px;
174 margin-bottom: 24px;
175 }
176
177 /* Import Box Styling */
178 .mxchat-import-box {
179 display: flex;
180 align-items: flex-start;
181 padding: 0;
182 background: #fff;
183 border: 1px solid #e5e5e5;
184 border-radius: 10px;
185 cursor: pointer;
186 transition: all 0.2s ease;
187 position: relative;
188 overflow: hidden;
189 text-align: left;
190 width: 100%;
191 }
192
193 .mxchat-import-box:hover {
194 border-color: #7873f5;
195 box-shadow: 0 4px 12px rgba(120, 115, 245, 0.1);
196 transform: translateY(-4px);
197 }
198
199 .mxchat-import-box.active {
200 border-color: #7873f5;
201 box-shadow: 0 4px 12px rgba(120, 115, 245, 0.1);
202 transform: translateY(-4px);
203 }
204
205 .mxchat-import-wordpress {
206 border: 2px solid #7873f5;
207 background-color: #f8f9ff;
208 }
209
210 .mxchat-import-icon {
211 width: 48px;
212 height: 48px;
213 display: flex;
214 align-items: center;
215 justify-content: center;
216 background-color: #f0f0f0;
217 border-radius: 8px;
218 margin: 16px;
219 flex-shrink: 0;
220 }
221
222 .mxchat-import-wordpress .mxchat-import-icon {
223 background-color: #f0e6ff;
224 }
225
226 .mxchat-import-icon .dashicons {
227 font-size: 24px;
228 color: #7873f5;
229 }
230
231 .mxchat-import-content {
232 flex: 1;
233 padding: 18px 18px 18px 0;
234 }
235
236 .mxchat-import-content h4 {
237 margin: 0 0 8px;
238 font-size: 16px;
239 color: #333;
240 }
241
242 .mxchat-import-content p {
243 margin: 0;
244 font-size: 14px;
245 color: #666;
246 line-height: 1.5;
247 }
248
249 .mxchat-recommended-tag {
250 position: absolute;
251 top: 0;
252 right: 0;
253 background-color: #7873f5;
254 color: white;
255 padding: 4px 10px;
256 font-size: 10px;
257 border-bottom-left-radius: 8px;
258 }
259
260 /* Import Input Areas */
261 .mxchat-import-input-area {
262 background-color: #f9f9fd;
263 border-radius: 10px;
264 padding: 24px;
265 margin-bottom: 24px;
266 border: 1px solid #e5e5e5;
267 text-align: center;
268 }
269
270 .mxchat-url-input-group {
271 display: flex;
272 gap: 12px;
273 max-width: 800px;
274 margin: 0 auto;
275 }
276
277 .mxchat-url-input-group input {
278 flex: 1;
279 padding: 12px 16px;
280 border: 1px solid #ddd;
281 border-radius: 8px;
282 font-size: 14px;
283 }
284
285 .mxchat-url-input-group input:focus {
286 border-color: #7873f5;
287 box-shadow: 0 0 0 2px rgba(120, 115, 245, 0.1);
288 outline: none;
289 }
290
291 .mxchat-url-description {
292 font-size: 14px;
293 color: #666;
294 margin-top: 16px;
295 font-style: italic;
296 }
297
298 .mxchat-content-input-group {
299 max-width: 800px;
300 margin: 0 auto;
301 }
302
303 .mxchat-content-input-group textarea {
304 width: 100%;
305 min-height: 150px;
306 padding: 12px 16px;
307 border: 1px solid #ddd;
308 border-radius: 8px;
309 margin-bottom: 16px;
310 font-size: 14px;
311 resize: vertical;
312 }
313
314 .mxchat-content-input-group textarea:focus {
315 border-color: #7873f5;
316 box-shadow: 0 0 0 2px rgba(120, 115, 245, 0.1);
317 outline: none;
318 }
319
320 /* Primary Import Card */
321 .mxchat-primary-import-card {
322 background-color: #fff;
323 border: 2px solid #7873f5;
324 border-radius: 8px;
325 box-shadow: 0 4px 12px rgba(120, 115, 245, 0.1);
326 margin-bottom: 30px;
327 overflow: hidden;
328 transition: all 0.3s ease;
329 }
330
331 .mxchat-primary-import-card:hover {
332 box-shadow: 0 6px 16px rgba(120, 115, 245, 0.2);
333 transform: translateY(-2px);
334 }
335
336 .mxchat-card-header {
337 padding: 15px 20px;
338 display: flex;
339 align-items: center;
340 justify-content: space-between;
341 border-bottom: 1px solid #e2d9ff;
342 }
343
344 .mxchat-card-header h3 {
345 margin: 0;
346 color: #7873f5;
347 font-size: 18px;
348 font-weight: 600;
349 }
350
351 .mxchat-recommended-badge {
352 background-color: #7873f5;
353 color: white;
354 font-size: 12px;
355 padding: 4px 10px;
356 border-radius: 12px;
357 font-weight: 500;
358 }
359
360 .mxchat-card-content {
361 padding: 20px;
362 }
363
364 .mxchat-method-description {
365 font-size: 15px;
366 line-height: 1.5;
367 color: #555;
368 margin-bottom: 20px;
369 }
370
371 .mxchat-card-actions {
372 text-align: center;
373 }
374
375 .mxchat-featured-button {
376 background: linear-gradient(135deg, #fa73e6, #7873f5) !important;
377 color: white !important;
378 font-size: 15px !important;
379 padding: 10px 20px !important;
380 border: none !important;
381 box-shadow: 0 4px 8px rgba(120, 115, 245, 0.2) !important;
382 transition: all 0.3s ease !important;
383 display: inline-flex !important;
384 align-items: center !important;
385 gap: 8px !important;
386 }
387
388 .mxchat-featured-button:hover {
389 background: linear-gradient(135deg, #e56dd6, #6b67db) !important;
390 box-shadow: 0 6px 12px rgba(120, 115, 245, 0.3) !important;
391 transform: translateY(-2px) !important;
392 }
393
394 /* Alternative Import Methods */
395 .mxchat-alternative-imports {
396 background-color: #fff;
397 border: 1px solid #e5e5e5;
398 border-radius: 8px;
399 padding: 20px;
400 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
401 }
402
403 .mxchat-alt-header {
404 font-size: 16px;
405 color: #666;
406 margin-top: 0;
407 margin-bottom: 15px;
408 padding-bottom: 10px;
409 border-bottom: 1px solid #eee;
410 }
411
412 .mxchat-import-methods-grid {
413 display: grid;
414 grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
415 gap: 20px;
416 margin-bottom: 25px;
417 }
418
419 /* ===== Import Methods ===== */
420 .mxchat-import-methods {
421 display: grid;
422 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
423 gap: 20px;
424 margin: 30px 0;
425 }
426
427 .mxchat-method-card {
428 background-color: #f9f9f9;
429 border: 1px solid #eee;
430 border-radius: 8px;
431 padding: 15px;
432 transition: all 0.2s ease;
433 height: 100%;
434 }
435
436 .mxchat-method-card:hover {
437 background-color: #f5f5f5;
438 border-color: #ddd;
439 }
440
441 .mxchat-method-icon {
442 display: flex;
443 justify-content: center;
444 margin-bottom: 10px;
445 }
446
447 .mxchat-method-icon .dashicons {
448 font-size: 24px;
449 width: 24px;
450 height: 24px;
451 color: #666;
452 }
453
454 .mxchat-method-card h4,
455 .mxchat-method-card h5 {
456 margin: 0 0 10px 0;
457 font-size: 15px;
458 text-align: center;
459 color: #444;
460 }
461
462 .mxchat-method-card p {
463 margin: 0;
464 font-size: 13px;
465 color: #666;
466 text-align: center;
467 }
468
469 .mxchat-note,
470 .red-warning {
471 color: #ff5722;
472 font-weight: 500;
473 }
474
475 /* Legacy Import Form */
476 .mxchat-legacy-import-form {
477 margin-top: 20px;
478 padding-top: 20px;
479 border-top: 1px dashed #ddd;
480 }
481
482 /* ===== Settings Section ===== */
483 .mxchat-settings-section {
484 margin-bottom: 30px;
485 }
486
487 .mxchat-settings-section h3 {
488 margin-top: 0;
489 margin-bottom: 12px;
490 color: #333;
491 font-size: 1.3rem;
492 }
493
494 .mxchat-description {
495 color: #666;
496 font-size: 14px;
497 margin-bottom: 20px;
498 }
499
500 .mxchat-section-content {
501 margin-top: 15px;
502 }
503
504 /* ===== Tabs ===== */
505 .mxchat-tabs {
506 border-bottom: 1px solid rgba(120, 115, 245, 0.1);
507 margin-bottom: 20px;
508 display: flex;
509 gap: 2px;
510 }
511
512 .mxchat-tab-button {
513 padding: 12px 24px;
514 background: none;
515 border: none;
516 border-bottom: 2px solid transparent;
517 color: #666;
518 cursor: pointer;
519 font-size: 14px;
520 transition: all 0.2s ease;
521 }
522
523 .mxchat-tab-button:hover {
524 color: #7873f5;
525 }
526
527 .mxchat-tab-button.active {
528 color: #7873f5;
529 border-bottom-color: #7873f5;
530 }
531
532 .mxchat-tab-contents {
533 margin-top: 20px;
534 }
535
536 .mxchat-tab-content {
537 display: none;
538 }
539
540 .mxchat-tab-content.active {
541 display: block;
542 }
543
544 /* ===== Toggle Switches ===== */
545 .mxchat-toggle-group {
546 display: flex;
547 flex-direction: column;
548 gap: 15px;
549 margin: 20px 0;
550 }
551
552 .mxchat-toggle-container {
553 display: flex;
554 align-items: center;
555 gap: 12px;
556 }
557
558 .mxchat-toggle-switch {
559 position: relative;
560 display: inline-block;
561 width: 50px;
562 height: 24px;
563 }
564
565 .mxchat-toggle-switch input {
566 opacity: 0;
567 width: 0;
568 height: 0;
569 }
570
571 .mxchat-toggle-slider {
572 position: absolute;
573 cursor: pointer;
574 top: 0;
575 left: 0;
576 right: 0;
577 bottom: 0;
578 background-color: #ccc;
579 transition: .4s;
580 border-radius: 34px;
581 }
582
583 .mxchat-toggle-slider:before {
584 position: absolute;
585 content: "";
586 height: 20px;
587 width: 20px;
588 left: 2px;
589 bottom: 2px;
590 background-color: white;
591 transition: .4s;
592 border-radius: 50%;
593 }
594
595 input:checked + .mxchat-toggle-slider {
596 background: linear-gradient(135deg, #fa73e6, #7873f5);
597 }
598
599 input:checked + .mxchat-toggle-slider:before {
600 transform: translateX(26px);
601 }
602
603 .mxchat-toggle-label {
604 font-size: 14px;
605 color: #333;
606 }
607
608 /* ===== Custom Post Types ===== */
609 .mxchat-custom-post-types-header {
610 margin-top: 20px;
611 }
612
613 .mxchat-custom-post-types-container {
614 margin-top: 15px;
615 padding: 15px;
616 background-color: #f8f9ff;
617 border-radius: 8px;
618 border: 1px solid rgba(120, 115, 245, 0.1);
619 }
620
621 .mxchat-toggle-icon {
622 margin-left: 5px;
623 font-size: 12px;
624 }
625
626 /* ===== Form Elements ===== */
627 .mxchat-form-group {
628 margin-bottom: 20px;
629 }
630
631 .mxchat-form-group label {
632 display: block;
633 margin-bottom: 8px;
634 font-weight: 500;
635 color: #333;
636 }
637
638 .mxchat-form-group input[type="text"],
639 .mxchat-form-group input[type="url"],
640 .mxchat-form-group input[type="search"],
641 .mxchat-form-group textarea {
642 width: 100%;
643 padding: 12px 15px;
644 border: 2px solid rgba(120, 115, 245, 0.2);
645 border-radius: 8px;
646 font-size: 14px;
647 transition: all 0.3s ease;
648 }
649
650 .mxchat-form-group textarea {
651 min-height: 120px;
652 resize: vertical;
653 }
654
655 .mxchat-form-group input:focus,
656 .mxchat-form-group textarea:focus {
657 border-color: #7873f5;
658 box-shadow: 0 0 0 3px rgba(120, 115, 245, 0.1);
659 outline: none;
660 }
661
662 /* ===== Search ===== */
663 .mxchat-search-form {
664 position: relative;
665 }
666
667 .mxchat-search-group {
668 position: relative;
669 display: flex;
670 align-items: center;
671 }
672
673 .mxchat-search-group .dashicons {
674 position: absolute;
675 left: 12px;
676 color: #666;
677 }
678
679 .mxchat-search-group input {
680 padding-left: 40px;
681 width: 300px;
682 }
683
684 /* ===== Buttons ===== */
685 .mxchat-button-primary {
686 background: linear-gradient(135deg, #fa73e6, #7873f5);
687 border: none;
688 color: white;
689 padding: 10px 20px;
690 border-radius: 8px;
691 font-weight: 600;
692 cursor: pointer;
693 transition: all 0.3s ease;
694 }
695
696 .mxchat-button-primary:hover {
697 transform: translateY(-1px);
698 box-shadow: 0 4px 12px rgba(120, 115, 245, 0.2);
699 }
700
701 .mxchat-button-primary:disabled {
702 background: #a7a7a7;
703 cursor: not-allowed;
704 transform: none;
705 box-shadow: none;
706 }
707
708 .mxchat-button-secondary {
709 background: #f8f9ff;
710 border: 1px solid rgba(120, 115, 245, 0.2);
711 color: #666;
712 padding: 10px 20px;
713 border-radius: 8px;
714 cursor: pointer;
715 transition: all 0.2s ease;
716 }
717
718 .mxchat-button-secondary:hover {
719 background: #eef0ff;
720 }
721
722 .mxchat-button-danger {
723 color: #ff4d4d;
724 background: transparent;
725 border: none;
726 padding: 10px 20px;
727 border-radius: 8px;
728 cursor: pointer;
729 transition: all 0.2s ease;
730 display: flex;
731 align-items: center;
732 gap: 8px;
733 }
734
735 .mxchat-button-danger:hover {
736 background: #fff5f5;
737 }
738
739 .mxchat-button-icon {
740 padding: 8px;
741 border: none;
742 background: transparent;
743 border-radius: 6px;
744 cursor: pointer;
745 transition: all 0.2s ease;
746 color: #666;
747 }
748
749 .mxchat-button-icon:hover {
750 background: #f8f9ff;
751 color: #7873f5;
752 }
753
754 /* ===== Status Cards ===== */
755 .mxchat-status-card {
756 background: #f8f9ff;
757 border-radius: 10px;
758 padding: 20px;
759 margin-top: 20px;
760 border: 1px solid rgba(120, 115, 245, 0.1);
761 }
762
763 .mxchat-status-header {
764 display: flex;
765 justify-content: space-between;
766 align-items: center;
767 margin-bottom: 15px;
768 }
769
770 .mxchat-status-details {
771 margin-top: 10px;
772 color: #666;
773 }
774
775 .mxchat-status-badge {
776 display: inline-block;
777 padding: 3px 8px;
778 border-radius: 3px;
779 font-size: 12px;
780 font-weight: 500;
781 text-transform: uppercase;
782 margin-left: 10px;
783 }
784
785 .mxchat-status-failed {
786 background-color: #f44336;
787 color: white;
788 }
789
790 .mxchat-status-success {
791 background-color: #4caf50;
792 color: white;
793 }
794
795 .mxchat-error-notice {
796 margin-top: 15px;
797 padding: 10px;
798 background-color: #fff5f5;
799 border-left: 3px solid #f44336;
800 color: #d32f2f;
801 border-radius: 4px;
802 }
803
804 .mxchat-failed-urls {
805 margin-top: 15px;
806 }
807
808 .mxchat-failed-urls h5 {
809 margin-top: 0;
810 margin-bottom: 10px;
811 color: #333;
812 }
813
814 .mxchat-failed-urls-list {
815 max-height: 200px;
816 overflow-y: auto;
817 }
818
819 /* ===== Progress Bar ===== */
820 .mxchat-progress-bar {
821 height: 8px;
822 background: rgba(120, 115, 245, 0.1);
823 border-radius: 4px;
824 overflow: hidden;
825 margin: 15px 0;
826 }
827
828 .mxchat-progress-fill {
829 height: 100%;
830 background: linear-gradient(135deg, #fa73e6, #7873f5);
831 transition: width 0.3s ease;
832 }
833
834 /* ===== Table Styles ===== */
835 .mxchat-table-wrapper {
836 overflow-x: auto;
837 margin: 20px 0;
838 }
839
840 .mxchat-records-table {
841 width: 100%;
842 border-collapse: separate;
843 border-spacing: 0;
844 }
845
846 .mxchat-records-table th {
847 background: #f8f9ff;
848 padding: 15px;
849 font-weight: 600;
850 color: #333;
851 text-align: left;
852 border-bottom: 2px solid rgba(120, 115, 245, 0.1);
853 }
854
855 .mxchat-records-table td {
856 padding: 15px;
857 border-top: 1px solid rgba(120, 115, 245, 0.1);
858 vertical-align: top;
859 }
860
861 .mxchat-records-table tr:hover {
862 background: rgba(120, 115, 245, 0.03);
863 }
864
865 .mxchat-content-cell {
866 max-width: 400px;
867 }
868
869 .mxchat-url-cell a {
870 color: #7873f5;
871 text-decoration: none;
872 display: flex;
873 align-items: center;
874 gap: 4px;
875 }
876
877 .mxchat-url-cell a:hover {
878 color: #fa73e6;
879 }
880
881 .mxchat-actions-cell {
882 white-space: nowrap;
883 display: flex;
884 gap: 8px;
885 }
886
887 .content-view {
888 font-size: 14px;
889 line-height: 1.5;
890 }
891
892 .content-edit {
893 width: 100%;
894 min-height: 100px;
895 border: 1px solid #ddd;
896 border-radius: 4px;
897 padding: 10px;
898 }
899
900 .url-view a {
901 color: #7873f5;
902 text-decoration: none;
903 }
904
905 .url-edit {
906 width: 100%;
907 }
908
909 /* ===== Pagination ===== */
910 .mxchat-pagination {
911 margin-top: 20px;
912 padding-top: 20px;
913 text-align: center;
914 border-top: 1px solid rgba(120, 115, 245, 0.1);
915 }
916
917 .mxchat-pagination .page-numbers {
918 display: inline-flex;
919 align-items: center;
920 justify-content: center;
921 min-width: 32px;
922 height: 32px;
923 padding: 0 8px;
924 margin: 0 4px;
925 border-radius: 6px;
926 background: white;
927 border: 1px solid rgba(120, 115, 245, 0.2);
928 color: #333;
929 text-decoration: none;
930 transition: all 0.2s ease;
931 }
932
933 .mxchat-pagination .page-numbers.current {
934 background: linear-gradient(135deg, #fa73e6, #7873f5);
935 color: white;
936 border: none;
937 }
938
939 /* ===== Notifications ===== */
940 .mxchat-notification {
941 margin: 15px 20px 0;
942 padding: 10px 15px;
943 border-radius: 4px;
944 font-size: 14px;
945 }
946
947 .mxchat-notification.success {
948 background-color: #d4edda;
949 color: #155724;
950 border: 1px solid #c3e6cb;
951 }
952
953 .mxchat-notification.error {
954 background-color: #f8d7da;
955 color: #721c24;
956 border: 1px solid #f5c6cb;
957 }
958
959 /* ===== Responsive Design ===== */
960 @media (max-width: 768px) {
961 .mxchat-hero h1.mxchat-main-title {
962 font-size: 2.5rem;
963 }
964
965 .mxchat-card {
966 padding: 20px;
967 }
968
969 .mxchat-import-options {
970 grid-template-columns: 1fr;
971 }
972
973 .mxchat-url-input-group {
974 flex-direction: column;
975 }
976
977 .mxchat-url-input-group input,
978 .mxchat-url-input-group button {
979 width: 100%;
980 }
981
982 .mxchat-content-input-group textarea {
983 min-height: 120px;
984 }
985
986 .mxchat-status-header {
987 flex-direction: column;
988 align-items: flex-start;
989 gap: 10px;
990 }
991
992 .mxchat-records-table {
993 display: block;
994 overflow-x: auto;
995 }
996
997 .mxchat-stop-form button {
998 width: 100%;
999 }
1000 }
1001
1002 @media (max-width: 480px) {
1003 .mxchat-card {
1004 padding: 15px;
1005 }
1006
1007 .mxchat-import-box {
1008 flex-direction: column;
1009 align-items: center;
1010 text-align: center;
1011 }
1012
1013 .mxchat-import-icon {
1014 margin: 16px 16px 0 16px;
1015 }
1016
1017 .mxchat-import-content {
1018 padding: 16px;
1019 }
1020
1021 .mxchat-recommended-tag {
1022 border-radius: 0 0 0 8px;
1023 }
1024 }
1025
1026 /* RTL Support */
1027 .rtl .mxchat-knowledge-warning {
1028 border-left: none;
1029 border-right: 4px solid;
1030 }
1031
1032 .rtl .mxchat-knowledge-warning .dashicons {
1033 margin-right: 0;
1034 margin-left: 10px;
1035 }
1036
1037 .rtl .mxchat-import-box {
1038 flex-direction: row-reverse;
1039 }
1040
1041 .rtl .mxchat-import-content {
1042 padding: 16px 0 16px 16px;
1043 }
1044
1045 .rtl .mxchat-import-icon {
1046 margin: 16px;
1047 }
1048
1049 .rtl .mxchat-recommended-tag {
1050 right: auto;
1051 left: 0;
1052 border-bottom-left-radius: 0;
1053 border-bottom-right-radius: 8px;
1054 }
1055
1056 .rtl .mxchat-toggle-container {
1057 flex-direction: row-reverse;
1058 }
1059
1060 .rtl .mxchat-toggle-slider:before {
1061 left: auto;
1062 right: 2px;
1063 }
1064
1065 .rtl input:checked + .mxchat-toggle-slider:before {
1066 transform: translateX(-26px);
1067 }
1068
1069 .rtl .mxchat-error-notice {
1070 border-left: none;
1071 border-right: 3px solid #f44336;
1072 }
1073
1074 .rtl .mxchat-records-table th,
1075 .rtl .mxchat-records-table td {
1076 text-align: right;
1077 }
1078
1079 .rtl .mxchat-search-group .dashicons {
1080 left: auto;
1081 right: 12px;
1082 }
1083
1084 .rtl .mxchat-search-group input {
1085 padding-left: 12px;
1086 padding-right: 40px;
1087 }
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116 /* ===== Modal Styles ===== */
1117 .mxchat-kb-modal {
1118 display: none;
1119 position: fixed;
1120 top: 0;
1121 left: 0;
1122 width: 100%;
1123 height: 100%;
1124 background-color: rgba(0, 0, 0, 0.7);
1125 z-index: 999999;
1126 overflow: auto;
1127 justify-content: center;
1128 align-items: center;
1129 }
1130
1131 .mxchat-kb-modal.active {
1132 display: flex;
1133 }
1134
1135 .mxchat-kb-modal-content {
1136 position: relative;
1137 background-color: #fff;
1138 margin: 50px auto;
1139 padding: 0;
1140 border-radius: 8px;
1141 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
1142 width: 90%;
1143 max-width: 1000px;
1144 max-height: 85vh;
1145 display: flex;
1146 flex-direction: column;
1147 animation: mxchat-kb-modal-appear 0.3s ease-out;
1148 }
1149
1150 @keyframes mxchat-kb-modal-appear {
1151 from {
1152 opacity: 0;
1153 transform: translateY(-30px);
1154 }
1155 to {
1156 opacity: 1;
1157 transform: translateY(0);
1158 }
1159 }
1160
1161 .mxchat-kb-modal-header {
1162 display: flex;
1163 align-items: center;
1164 justify-content: space-between;
1165 padding: 20px;
1166 border-bottom: 1px solid #e5e5e5;
1167 background-color: #f8f9fa;
1168 border-radius: 8px 8px 0 0;
1169 }
1170
1171 .mxchat-kb-modal-header h3 {
1172 margin: 0;
1173 font-size: 20px;
1174 font-weight: 600;
1175 color: #23282d;
1176 }
1177
1178 .mxchat-kb-modal-close {
1179 font-size: 28px;
1180 font-weight: bold;
1181 cursor: pointer;
1182 color: #666;
1183 line-height: 1;
1184 transition: color 0.2s;
1185 }
1186
1187 .mxchat-kb-modal-close:hover {
1188 color: #d63638;
1189 }
1190
1191 .mxchat-kb-modal-filters {
1192 padding: 15px 20px;
1193 background-color: #f8f9fa;
1194 display: flex;
1195 align-items: center;
1196 justify-content: space-between;
1197 border-bottom: 1px solid #e5e5e5;
1198 flex-wrap: wrap;
1199 gap: 10px;
1200 }
1201
1202 .mxchat-kb-search-group {
1203 position: relative;
1204 flex: 1;
1205 min-width: 200px;
1206 max-width: 400px;
1207 }
1208
1209 .mxchat-kb-search-group input {
1210 width: 100%;
1211 padding: 8px 12px 8px 35px;
1212 border-radius: 4px;
1213 border: 1px solid #ddd;
1214 font-size: 14px;
1215 transition: border-color 0.2s;
1216 }
1217
1218 .mxchat-kb-search-group input:focus {
1219 border-color: #7873f5;
1220 outline: none;
1221 box-shadow: 0 0 0 1px #7873f5;
1222 }
1223
1224 .mxchat-kb-search-group::before {
1225 content: "\f179";
1226 font-family: dashicons;
1227 position: absolute;
1228 left: 10px;
1229 top: 50%;
1230 transform: translateY(-50%);
1231 color: #666;
1232 }
1233
1234 .mxchat-kb-filter-group {
1235 display: flex;
1236 gap: 10px;
1237 flex-wrap: wrap;
1238 }
1239
1240 .mxchat-kb-filter-group select {
1241 padding: 8px 12px;
1242 border-radius: 4px;
1243 border: 1px solid #ddd;
1244 font-size: 14px;
1245 background-color: white;
1246 min-width: 150px;
1247 appearance: none;
1248 background-repeat: no-repeat;
1249 background-position: right 10px center;
1250 padding-right: 30px;
1251 }
1252
1253 .mxchat-kb-filter-group select:focus {
1254 border-color: #7873f5;
1255 outline: none;
1256 box-shadow: 0 0 0 1px #7873f5;
1257 }
1258
1259 /* Special style for the "processed" filter */
1260 #mxchat-kb-processed-filter {
1261 border-left: 3px solid #1e88e5;
1262 }
1263
1264 .mxchat-kb-content-selection {
1265 overflow-y: auto;
1266 flex: 1;
1267 min-height: 300px;
1268 max-height: calc(85vh - 200px);
1269 }
1270
1271 .mxchat-kb-selection-header {
1272 display: flex;
1273 justify-content: space-between;
1274 align-items: center;
1275 padding: 15px 20px;
1276 background-color: #f8f9fa;
1277 border-bottom: 1px solid #eee;
1278 position: sticky;
1279 top: 0;
1280 z-index: 10;
1281 }
1282
1283 .mxchat-kb-selection-header label {
1284 display: flex;
1285 align-items: center;
1286 gap: 8px;
1287 font-weight: 500;
1288 }
1289
1290 .mxchat-kb-selection-count {
1291 font-size: 14px;
1292 color: #666;
1293 font-weight: 500;
1294 }
1295
1296 .mxchat-kb-content-list {
1297 padding: 0;
1298 }
1299
1300 .mxchat-kb-content-item {
1301 display: flex;
1302 padding: 15px 20px;
1303 border-bottom: 1px solid #eee;
1304 transition: background-color 0.2s;
1305 }
1306
1307 .mxchat-kb-content-item:hover {
1308 background-color: #f0f7ff;
1309 }
1310
1311 /* Improved visibility for processed items */
1312 .mxchat-kb-content-item.processed {
1313 background-color: #f0f8ff;
1314 border-left: 3px solid #1e88e5;
1315 }
1316
1317 .mxchat-kb-content-item.processed:hover {
1318 background-color: #e3f2fd;
1319 }
1320
1321 .mxchat-kb-content-checkbox {
1322 margin-right: 15px;
1323 display: flex;
1324 align-items: flex-start;
1325 padding-top: 3px;
1326 }
1327
1328 .mxchat-kb-content-checkbox input[type="checkbox"] {
1329 width: 18px;
1330 height: 18px;
1331 border: 1px solid #8c8f94;
1332 border-radius: 3px;
1333 background: #fff;
1334 margin: 0;
1335 }
1336
1337 .mxchat-kb-content-checkbox input[type="checkbox"]:checked {
1338 border-color: #7873f5;
1339 }
1340
1341 .mxchat-kb-content-details {
1342 flex: 1;
1343 }
1344
1345 .mxchat-kb-content-title {
1346 font-size: 16px;
1347 font-weight: 600;
1348 margin-bottom: 8px;
1349 display: flex;
1350 align-items: center;
1351 flex-wrap: wrap;
1352 gap: 8px;
1353 }
1354
1355 .mxchat-kb-content-title a {
1356 color: #7873f5;
1357 text-decoration: none;
1358 }
1359
1360 .mxchat-kb-content-title a:hover {
1361 color: #fa73e6;
1362 text-decoration: underline;
1363 }
1364
1365 /* Style for processed badge */
1366 .mxchat-kb-processed-badge {
1367 display: inline-block;
1368 background-color: #1e88e5;
1369 color: white;
1370 font-size: 11px;
1371 padding: 2px 8px;
1372 border-radius: 10px;
1373 font-weight: normal;
1374 }
1375
1376 /* Style for unprocessed badge */
1377 .mxchat-kb-unprocessed-badge {
1378 display: inline-block;
1379 background-color: #607d8b;
1380 color: white;
1381 font-size: 11px;
1382 padding: 2px 8px;
1383 border-radius: 10px;
1384 font-weight: normal;
1385 }
1386
1387 /* Last updated timestamp */
1388 .mxchat-kb-last-updated {
1389 font-size: 11px;
1390 color: #666;
1391 font-style: italic;
1392 margin-left: 8px;
1393 }
1394
1395 .mxchat-kb-content-meta {
1396 display: flex;
1397 flex-wrap: wrap;
1398 gap: 15px;
1399 color: #666;
1400 font-size: 13px;
1401 margin-bottom: 8px;
1402 }
1403
1404 .mxchat-kb-content-excerpt {
1405 color: #555;
1406 font-size: 14px;
1407 line-height: 1.5;
1408 }
1409
1410 .mxchat-kb-modal-footer {
1411 padding: 15px 20px;
1412 border-top: 1px solid #e5e5e5;
1413 display: flex;
1414 justify-content: flex-end;
1415 gap: 10px;
1416 background-color: #f8f9fa;
1417 border-radius: 0 0 8px 8px;
1418 }
1419
1420 .mxchat-kb-button-primary,
1421 .mxchat-kb-button-secondary {
1422 padding: 8px 15px;
1423 border-radius: 4px;
1424 font-size: 14px;
1425 cursor: pointer;
1426 font-weight: 500;
1427 text-align: center;
1428 transition: all 0.2s;
1429 }
1430
1431 .mxchat-kb-button-primary {
1432 background: linear-gradient(135deg, #fa73e6, #7873f5);
1433 color: white;
1434 border: none;
1435 }
1436
1437 .mxchat-kb-button-primary:hover {
1438 background: linear-gradient(135deg, #e56dd6, #6b67db);
1439 }
1440
1441 .mxchat-kb-button-primary:disabled {
1442 background-color: #a7a7a7;
1443 cursor: not-allowed;
1444 }
1445
1446 /* Update mode for the process button */
1447 #mxchat-kb-process-selected.update-mode {
1448 background-color: #ff9800;
1449 }
1450
1451 #mxchat-kb-process-selected.update-mode:hover {
1452 background-color: #f57c00;
1453 }
1454
1455 /* Mixed mode for the process button */
1456 #mxchat-kb-process-selected.mixed-mode {
1457 background-color: #9c27b0;
1458 }
1459
1460 #mxchat-kb-process-selected.mixed-mode:hover {
1461 background-color: #7b1fa2;
1462 }
1463
1464 .mxchat-kb-button-secondary {
1465 background-color: #f6f7f7;
1466 color: #2c3338;
1467 border: 1px solid #ddd;
1468 }
1469
1470 .mxchat-kb-button-secondary:hover {
1471 background-color: #f0f0f0;
1472 border-color: #c3c4c7;
1473 }
1474
1475 .mxchat-kb-pagination {
1476 padding: 15px 20px;
1477 border-top: 1px solid #eee;
1478 text-align: center;
1479 }
1480
1481 .mxchat-kb-pagination-links {
1482 display: flex;
1483 justify-content: center;
1484 align-items: center;
1485 gap: 5px;
1486 flex-wrap: wrap;
1487 }
1488
1489 .mxchat-kb-page-link {
1490 padding: 5px 10px;
1491 text-decoration: none;
1492 border: 1px solid #ddd;
1493 color: #7873f5;
1494 border-radius: 3px;
1495 transition: all 0.2s;
1496 }
1497
1498 .mxchat-kb-page-link:hover {
1499 background-color: #f0f0f0;
1500 color: #fa73e6;
1501 border-color: #c3c4c7;
1502 }
1503
1504 .mxchat-kb-page-current {
1505 padding: 5px 10px;
1506 background: linear-gradient(135deg, #fa73e6, #7873f5);
1507 color: white;
1508 border-radius: 3px;
1509 font-weight: 500;
1510 }
1511
1512 /* ===== Loading and Error States ===== */
1513 .mxchat-kb-no-results,
1514 .mxchat-kb-error {
1515 padding: 30px;
1516 text-align: center;
1517 color: #666;
1518 font-size: 14px;
1519 }
1520
1521 .mxchat-kb-error {
1522 color: #d63638;
1523 }
1524
1525 .mxchat-kb-loading {
1526 display: flex;
1527 flex-direction: column;
1528 align-items: center;
1529 justify-content: center;
1530 padding: 50px;
1531 color: #666;
1532 }
1533
1534 .mxchat-kb-spinner {
1535 display: inline-block;
1536 width: 50px;
1537 height: 50px;
1538 border: 5px solid #f3f3f3;
1539 border-top: 5px solid #7873f5;
1540 border-radius: 50%;
1541 animation: mxchat-kb-spin 1s linear infinite;
1542 margin: 0 0 10px 0;
1543 }
1544
1545 @keyframes mxchat-kb-spin {
1546 0% { transform: rotate(0deg); }
1547 100% { transform: rotate(360deg); }
1548 }
1549
1550 .mxchat-kb-progress-bar {
1551 height: 8px;
1552 background-color: #f0f0f0;
1553 border-radius: 4px;
1554 margin: 10px 0 15px;
1555 overflow: hidden;
1556 }
1557
1558 .mxchat-kb-progress-fill {
1559 height: 100%;
1560 background: linear-gradient(135deg, #fa73e6, #7873f5);
1561 transition: width 0.3s ease;
1562 }
1563
1564 .mxchat-kb-current-item {
1565 font-size: 14px;
1566 color: #555;
1567 margin: 10px 0 0;
1568 font-style: italic;
1569 }
1570
1571 .mxchat-kb-results-details {
1572 margin-top: 15px;
1573 text-align: left;
1574 max-height: 200px;
1575 overflow-y: auto;
1576 padding: 10px;
1577 border-radius: 4px;
1578 }
1579
1580 .mxchat-kb-results-details h5 {
1581 margin-top: 0;
1582 margin-bottom: 10px;
1583 color: #d63638;
1584 }
1585
1586 .mxchat-kb-results-details ul {
1587 margin: 0;
1588 padding-left: 20px;
1589 }
1590
1591 .mxchat-kb-results-details li {
1592 margin-bottom: 5px;
1593 }
1594
1595 /* ===== Processing Overlay ===== */
1596 .mxchat-kb-processing-overlay {
1597 position: fixed;
1598 top: 0;
1599 left: 0;
1600 width: 100%;
1601 height: 100%;
1602 background-color: rgba(0, 0, 0, 0.7);
1603 z-index: 9999999;
1604 display: flex;
1605 justify-content: center;
1606 align-items: center;
1607 }
1608
1609 .mxchat-kb-processing-content {
1610 background-color: white;
1611 padding: 30px;
1612 border-radius: 8px;
1613 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
1614 text-align: center;
1615 max-width: 500px;
1616 width: 90%;
1617 }
1618
1619 .mxchat-kb-processing-content h3 {
1620 margin-top: 0;
1621 margin-bottom: 15px;
1622 font-size: 20px;
1623 color: #7873f5;
1624 }
1625
1626 .mxchat-kb-processing-status {
1627 color: #555;
1628 margin-bottom: 20px;
1629 }
1630
1631 /* ===== Utility Classes ===== */
1632 .mxchat-na {
1633 color: #999;
1634 font-style: italic;
1635 }
1636
1637 .mxchat-no-records {
1638 text-align: center;
1639 color: #666;
1640 padding: 40px !important;
1641 }
1642
1643 /* ===== Responsive Design ===== */
1644 @media screen and (max-width: 782px) {
1645 /* Hero section */
1646 div.mxchat-hero h1.mxchat-main-title {
1647 font-size: 2.5rem;
1648 }
1649
1650 .mxchat-content {
1651 padding: 1rem;
1652 }
1653
1654 .mxchat-card {
1655 padding: 20px;
1656 }
1657
1658 .mxchat-card-header {
1659 flex-direction: column;
1660 gap: 16px;
1661 }
1662
1663 .mxchat-header-actions {
1664 flex-direction: column;
1665 width: 100%;
1666 }
1667
1668 .mxchat-search-group input {
1669 width: 100%;
1670 }
1671
1672 .mxchat-url-input-group {
1673 flex-direction: column;
1674 }
1675
1676 .mxchat-records-table {
1677 display: block;
1678 overflow-x: auto;
1679 }
1680
1681 .mxchat-content-cell {
1682 max-width: 200px;
1683 }
1684
1685 /* Modal responsive adjustments */
1686 .mxchat-kb-modal-content {
1687 width: 95%;
1688 max-height: 90vh;
1689 margin: 20px auto;
1690 }
1691
1692 .mxchat-kb-modal-filters {
1693 flex-direction: column;
1694 align-items: stretch;
1695 }
1696
1697 .mxchat-kb-search-group {
1698 max-width: none;
1699 }
1700
1701 .mxchat-kb-filter-group {
1702 flex-direction: column;
1703 }
1704
1705 .mxchat-kb-content-selection {
1706 max-height: calc(90vh - 250px);
1707 }
1708
1709 .mxchat-kb-selection-header {
1710 flex-direction: column;
1711 align-items: flex-start;
1712 gap: 10px;
1713 }
1714
1715 .mxchat-kb-modal-footer {
1716 flex-direction: column;
1717 }
1718
1719 .mxchat-kb-button-primary,
1720 .mxchat-kb-button-secondary {
1721 width: 100%;
1722 }
1723
1724 /* Import methods grid */
1725 .mxchat-import-methods-grid {
1726 grid-template-columns: 1fr;
1727 }
1728
1729 /* Primary import card */
1730 .mxchat-featured-button {
1731 width: 100%;
1732 }
1733 }
1734
1735 /* ===== Notification Styles ===== */
1736
1737 /* Base notification style */
1738 .mxchat-kb-notification {
1739 margin: 15px 20px 15px;
1740 padding: 15px;
1741 border-radius: 6px;
1742 border-left: 4px solid;
1743 position: relative;
1744 animation: mxchat-kb-notification-appear 0.3s ease-out;
1745 }
1746
1747 @keyframes mxchat-kb-notification-appear {
1748 from {
1749 opacity: 0;
1750 transform: translateY(-10px);
1751 }
1752 to {
1753 opacity: 1;
1754 transform: translateY(0);
1755 }
1756 }
1757
1758 /* Success notification */
1759 .mxchat-kb-notification.success {
1760 background-color: #f0f9eb;
1761 border-color: #67c23a;
1762 color: #3c763d;
1763 }
1764
1765 .mxchat-kb-notification.success h4 {
1766 color: #67c23a;
1767 margin: 0 0 5px;
1768 font-size: 16px;
1769 font-weight: 600;
1770 }
1771
1772 .mxchat-kb-notification.success::before {
1773 content: "\f147";
1774 font-family: dashicons;
1775 position: absolute;
1776 right: 15px;
1777 top: 15px;
1778 color: #67c23a;
1779 font-size: 20px;
1780 }
1781
1782 /* Error notification */
1783 .mxchat-kb-notification.error {
1784 background-color: #fef0f0;
1785 border-color: #d63638;
1786 color: #a94442;
1787 }
1788
1789 .mxchat-kb-notification.error h4 {
1790 color: #d63638;
1791 margin: 0 0 5px;
1792 font-size: 16px;
1793 font-weight: 600;
1794 }
1795
1796 .mxchat-kb-notification.error::before {
1797 content: "\f335";
1798 font-family: dashicons;
1799 position: absolute;
1800 right: 15px;
1801 top: 15px;
1802 color: #d63638;
1803 font-size: 20px;
1804 }
1805
1806 /* Warning notification */
1807 .mxchat-kb-notification.warning {
1808 background-color: #fdf6ec;
1809 border-color: #ff9800;
1810 color: #8a6d3b;
1811 }
1812
1813 .mxchat-kb-notification.warning h4 {
1814 color: #ff9800;
1815 margin: 0 0 5px;
1816 font-size: 16px;
1817 font-weight: 600;
1818 }
1819
1820 .mxchat-kb-notification.warning::before {
1821 content: "\f534";
1822 font-family: dashicons;
1823 position: absolute;
1824 right: 15px;
1825 top: 15px;
1826 color: #ff9800;
1827 font-size: 20px;
1828 }
1829
1830 /* Info notification */
1831 .mxchat-kb-notification.info {
1832 background-color: #f4f4fd;
1833 border-color: #7873f5;
1834 color: #31708f;
1835 }
1836
1837 .mxchat-kb-notification.info h4 {
1838 color: #7873f5;
1839 margin: 0 0 5px;
1840 font-size: 16px;
1841 font-weight: 600;
1842 }
1843
1844 .mxchat-kb-notification.info::before {
1845 content: "\f348";
1846 font-family: dashicons;
1847 position: absolute;
1848 right: 15px;
1849 top: 15px;
1850 color: #7873f5;
1851 font-size: 20px;
1852 }
1853
1854 /* Close button for notifications */
1855 .mxchat-kb-notification-close {
1856 position: absolute;
1857 top: 10px;
1858 right: 10px;
1859 cursor: pointer;
1860 color: inherit;
1861 opacity: 0.7;
1862 font-size: 16px;
1863 line-height: 1;
1864 transition: opacity 0.2s;
1865 }
1866
1867 .mxchat-kb-notification-close:hover {
1868 opacity: 1;
1869 }
1870
1871 /* Results details section */
1872 .mxchat-kb-results-details {
1873 margin-top: 12px;
1874 padding: 12px;
1875 border-radius: 4px;
1876 font-size: 13px;
1877 line-height: 1.5;
1878 }
1879
1880 .mxchat-kb-notification.success .mxchat-kb-results-details {
1881 background-color: rgba(103, 194, 58, 0.05);
1882 border: 1px solid rgba(103, 194, 58, 0.2);
1883 }
1884
1885 .mxchat-kb-notification.error .mxchat-kb-results-details {
1886
1887 }
1888
1889 .mxchat-kb-notification.warning .mxchat-kb-results-details {
1890 background-color: rgba(255, 152, 0, 0.05);
1891 border: 1px solid rgba(255, 152, 0, 0.2);
1892 }
1893
1894 .mxchat-kb-notification.info .mxchat-kb-results-details {
1895 background-color: rgba(120, 115, 245, 0.05);
1896 border: 1px solid rgba(120, 115, 245, 0.2);
1897 }
1898
1899 /* Results details title */
1900 .mxchat-kb-results-details h5 {
1901 margin: 0 0 10px;
1902 font-size: 14px;
1903 font-weight: 600;
1904 }
1905
1906 .mxchat-kb-notification.success .mxchat-kb-results-details h5 {
1907 color: #3c763d;
1908 }
1909
1910 .mxchat-kb-notification.error .mxchat-kb-results-details h5 {
1911 color: #a94442;
1912 }
1913
1914 .mxchat-kb-notification.warning .mxchat-kb-results-details h5 {
1915 color: #8a6d3b;
1916 }
1917
1918 .mxchat-kb-notification.info .mxchat-kb-results-details h5 {
1919 color: #31708f;
1920 }
1921
1922 /* List items in results details */
1923 .mxchat-kb-results-details ul {
1924 margin: 0;
1925 padding-left: 20px;
1926 list-style-type: disc;
1927 }
1928
1929 .mxchat-kb-results-details li {
1930 margin-bottom: 8px;
1931 padding-left: 3px;
1932 }
1933
1934 .mxchat-kb-results-details li:last-child {
1935 margin-bottom: 0;
1936 }
1937
1938 .mxchat-kb-results-details li strong {
1939 font-weight: 600;
1940 }
1941
1942 /* Failed items specific styling */
1943 .mxchat-kb-results-details li.failed-item {
1944 color: #d63638;
1945 }
1946
1947 /* Success items specific styling */
1948 .mxchat-kb-results-details li.success-item {
1949 color: #67c23a;
1950 }
1951
1952 /* Updated items specific styling */
1953 .mxchat-kb-results-details li.updated-item {
1954 color: #1e88e5;
1955 }
1956
1957 /* Processing summary information */
1958 .mxchat-kb-processing-summary {
1959 display: flex;
1960 flex-wrap: wrap;
1961 gap: 15px;
1962 margin-top: 10px;
1963 font-size: 14px;
1964 }
1965
1966 .mxchat-kb-summary-item {
1967 display: flex;
1968 align-items: center;
1969 gap: 5px;
1970 }
1971
1972 .mxchat-kb-summary-item .dashicons {
1973 font-size: 18px;
1974 }
1975
1976 .mxchat-kb-summary-item.processed .dashicons {
1977 color: #67c23a;
1978 }
1979
1980 .mxchat-kb-summary-item.updated .dashicons {
1981 color: #1e88e5;
1982 }
1983
1984 .mxchat-kb-summary-item.failed .dashicons {
1985 color: #d63638;
1986 }
1987
1988 /* Show more/less toggle for details */
1989 .mxchat-kb-show-details {
1990 display: inline-block;
1991 margin-top: 8px;
1992 color: #7873f5;
1993 cursor: pointer;
1994 font-size: 13px;
1995 font-weight: 500;
1996 }
1997
1998 .mxchat-kb-show-details:hover {
1999 text-decoration: underline;
2000 }
2001
2002 .mxchat-kb-show-details .dashicons {
2003 font-size: 16px;
2004 vertical-align: middle;
2005 margin-right: 2px;
2006 }
2007
2008 /* Collapsible details section */
2009 .mxchat-kb-results-details.collapsed {
2010 display: none;
2011 }
2012
2013 /* Responsive styles for notifications */
2014 @media screen and (max-width: 782px) {
2015 .mxchat-kb-notification {
2016 margin: 10px 15px 0;
2017 padding: 12px;
2018 }
2019
2020 .mxchat-kb-notification::before {
2021 display: none;
2022 }
2023
2024 .mxchat-kb-processing-summary {
2025 flex-direction: column;
2026 gap: 8px;
2027 }
2028 }
2029
2030
2031
2032
2033
2034 /* Tab Navigation */
2035 .mxchat-kb-tabs-nav {
2036 display: flex;
2037 margin-bottom: 20px;
2038 border-bottom: 1px solid #ccc;
2039 }
2040
2041 .mxchat-kb-tab-button {
2042 padding: 10px 15px;
2043 background: #f1f1f1;
2044 border: 1px solid #ccc;
2045 border-bottom: none;
2046 margin-right: 5px;
2047 cursor: pointer;
2048 font-weight: 500;
2049 border-radius: 5px 5px 0 0;
2050 }
2051
2052 .mxchat-kb-tab-button.active {
2053 background: #fff;
2054 border-bottom: 2px solid #fff;
2055 position: relative;
2056 bottom: -1px;
2057 color: #2271b1;
2058 }
2059
2060 /* Tab Content */
2061 .mxchat-kb-tab-content {
2062 display: none;
2063 }
2064
2065 .mxchat-kb-tab-content.active {
2066 display: block;
2067 }
2068
2069 /* Make the first card in tabs not have top margin */
2070 .mxchat-kb-tab-content .mxchat-card:first-child {
2071 margin-top: 0;
2072 }
2073
2074
2075
2076
2077
2078
2079 /* Pinecone Settings Tab Styles */
2080 .mxchat-pinecone-info-box {
2081 background: #f8f9ff;
2082 border: 1px solid rgba(120, 115, 245, 0.2);
2083 border-radius: 10px;
2084 padding: 20px;
2085 margin: 20px 0;
2086 display: flex;
2087 align-items: flex-start;
2088 gap: 15px;
2089 }
2090
2091 .mxchat-info-icon {
2092 flex-shrink: 0;
2093 }
2094
2095 .mxchat-info-icon .dashicons {
2096 color: #7873f5;
2097 font-size: 24px;
2098 width: 24px;
2099 height: 24px;
2100 }
2101
2102 .mxchat-info-content {
2103 flex: 1;
2104 }
2105
2106 .mxchat-info-content h4 {
2107 margin: 0 0 10px 0;
2108 color: #333;
2109 font-size: 16px;
2110 }
2111
2112 .mxchat-info-content p {
2113 margin: 0 0 8px 0;
2114 color: #666;
2115 font-size: 14px;
2116 line-height: 1.5;
2117 }
2118
2119 .mxchat-info-content p:last-child {
2120 margin-bottom: 0;
2121 }
2122
2123 .mxchat-info-content a {
2124 color: #7873f5;
2125 text-decoration: none;
2126 font-weight: 500;
2127 }
2128
2129 .mxchat-info-content a:hover {
2130 text-decoration: underline;
2131 }
2132
2133 /* Database Settings Form */
2134 .mxchat-database-settings-form {
2135 margin-top: 25px;
2136 }
2137
2138 /* Toggle Container */
2139 .mxchat-toggle-container {
2140 display: flex;
2141 align-items: center;
2142 gap: 12px;
2143 margin: 20px 0;
2144 padding: 15px 0;
2145 border-bottom: 1px solid rgba(120, 115, 245, 0.1);
2146 }
2147
2148 .mxchat-toggle-switch {
2149 position: relative;
2150 display: inline-block;
2151 width: 50px;
2152 height: 26px;
2153 }
2154
2155 .mxchat-toggle-switch input {
2156 opacity: 0;
2157 width: 0;
2158 height: 0;
2159 }
2160
2161 .mxchat-toggle-slider {
2162 position: absolute;
2163 cursor: pointer;
2164 top: 0;
2165 left: 0;
2166 right: 0;
2167 bottom: 0;
2168 background-color: #ddd;
2169 transition: 0.3s;
2170 border-radius: 26px;
2171 }
2172
2173 .mxchat-toggle-slider:before {
2174 position: absolute;
2175 content: "";
2176 height: 20px;
2177 width: 20px;
2178 left: 3px;
2179 bottom: 3px;
2180 background-color: white;
2181 transition: 0.3s;
2182 border-radius: 50%;
2183 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
2184 }
2185
2186 input:checked + .mxchat-toggle-slider {
2187 background: linear-gradient(135deg, #fa73e6, #7873f5);
2188 }
2189
2190 input:checked + .mxchat-toggle-slider:before {
2191 transform: translateX(24px);
2192 }
2193
2194 .mxchat-toggle-label {
2195 font-weight: 500;
2196 color: #333;
2197 font-size: 15px;
2198 }
2199
2200 /* Pinecone Settings Section */
2201 .mxchat-pinecone-settings {
2202 background: #f8f9ff;
2203 border: 1px solid rgba(120, 115, 245, 0.2);
2204 border-radius: 10px;
2205 padding: 25px;
2206 margin: 20px 0;
2207 }
2208
2209 /* Knowledge Warning (Success State) */
2210 .mxchat-knowledge-warning.success {
2211 background: #edfaef;
2212 border-left: 4px solid #46b450;
2213 padding: 15px;
2214 margin: 0 0 20px 0;
2215 border-radius: 4px;
2216 }
2217
2218 .mxchat-knowledge-warning.success p {
2219 margin: 0;
2220 color: #2a4f30;
2221 align-items: center;
2222 gap: 8px;
2223 }
2224
2225 .mxchat-knowledge-warning.success .dashicons {
2226 color: #46b450;
2227 }
2228
2229 /* Form Groups */
2230 .mxchat-form-group {
2231 margin-bottom: 20px;
2232 }
2233
2234 .mxchat-form-group label {
2235 display: block;
2236 margin-bottom: 8px;
2237 color: #333;
2238 font-weight: 500;
2239 font-size: 14px;
2240 }
2241
2242 .mxchat-form-group label .required {
2243 color: #dc3232;
2244 margin-left: 4px;
2245 }
2246
2247 .mxchat-form-group input[type="text"],
2248 .mxchat-form-group input[type="password"] {
2249 width: 100%;
2250 max-width: 400px;
2251 padding: 10px 12px;
2252 border: 1px solid rgba(120, 115, 245, 0.2);
2253 border-radius: 6px;
2254 background: white;
2255 font-size: 14px;
2256 transition: border-color 0.2s ease, box-shadow 0.2s ease;
2257 }
2258
2259 .mxchat-form-group input[type="text"]:focus,
2260 .mxchat-form-group input[type="password"]:focus {
2261 border-color: #7873f5;
2262 outline: none;
2263 box-shadow: 0 0 0 2px rgba(120, 115, 245, 0.1);
2264 }
2265
2266 .mxchat-form-group .description {
2267 margin: 8px 0 0 0;
2268 color: #666;
2269 font-size: 13px;
2270 line-height: 1.4;
2271 }
2272
2273 .mxchat-form-group .description a {
2274 color: #7873f5;
2275 text-decoration: none;
2276 font-weight: 500;
2277 }
2278
2279 .mxchat-form-group .description a:hover {
2280 text-decoration: underline;
2281 }
2282
2283 /* Setup Help Section */
2284 .mxchat-pinecone-setup-help {
2285 background: white;
2286 border: 1px solid rgba(120, 115, 245, 0.1);
2287 border-radius: 8px;
2288 padding: 20px;
2289 margin-top: 25px;
2290 }
2291
2292 .mxchat-pinecone-setup-help h3 {
2293 margin: 0 0 15px 0;
2294 color: #333;
2295 font-size: 16px;
2296 }
2297
2298 .mxchat-pinecone-setup-help ol {
2299 margin: 0;
2300 padding-left: 20px;
2301 }
2302
2303 .mxchat-pinecone-setup-help li {
2304 margin-bottom: 12px;
2305 color: #666;
2306 line-height: 1.5;
2307 }
2308
2309 .mxchat-pinecone-setup-help li:last-child {
2310 margin-bottom: 0;
2311 }
2312
2313 .mxchat-pinecone-setup-help ul {
2314 margin: 8px 0;
2315 padding-left: 20px;
2316 }
2317
2318 .mxchat-pinecone-setup-help ul li {
2319 margin-bottom: 6px;
2320 font-size: 13px;
2321 }
2322
2323 .mxchat-pinecone-setup-help a {
2324 color: #7873f5;
2325 text-decoration: none;
2326 font-weight: 500;
2327 }
2328
2329 .mxchat-pinecone-setup-help a:hover {
2330 text-decoration: underline;
2331 }
2332
2333 /* Connection Status Section */
2334 .mxchat-pinecone-status-section {
2335 background: white;
2336 border: 1px solid rgba(120, 115, 245, 0.1);
2337 border-radius: 8px;
2338 padding: 20px;
2339 margin-top: 25px;
2340 }
2341
2342 .mxchat-pinecone-status-section h3 {
2343 margin: 0 0 15px 0;
2344 color: #333;
2345 font-size: 16px;
2346 }
2347
2348 #mxchat-pinecone-test-connection {
2349 margin-bottom: 15px;
2350 }
2351
2352 #test-pinecone-connection {
2353 background: linear-gradient(135deg, #fa73e6, #7873f5);
2354 color: white;
2355 border: none;
2356 padding: 10px 20px;
2357 border-radius: 6px;
2358 cursor: pointer;
2359 font-size: 14px;
2360 font-weight: 500;
2361 transition: all 0.2s ease;
2362 }
2363
2364 #test-pinecone-connection:hover:not(:disabled) {
2365 transform: translateY(-1px);
2366 box-shadow: 0 4px 12px rgba(120, 115, 245, 0.3);
2367 }
2368
2369 #test-pinecone-connection:disabled {
2370 opacity: 0.6;
2371 cursor: not-allowed;
2372 transform: none;
2373 }
2374
2375 /* Test Result Styles */
2376 .mxchat-test-result {
2377 margin-top: 15px;
2378 }
2379
2380 .mxchat-test-result .notice {
2381 margin: 0;
2382 padding: 12px 15px;
2383 border-radius: 6px;
2384 display: flex;
2385 align-items: center;
2386 gap: 8px;
2387 }
2388
2389 .mxchat-test-result .notice-success {
2390 background: #edfaef;
2391 border-left: 4px solid #46b450;
2392 color: #2a4f30;
2393 }
2394
2395 .mxchat-test-result .notice-error {
2396 background: #fbeaea;
2397 border-left: 4px solid #dc3232;
2398 color: #721c24;
2399 }
2400
2401 .mxchat-test-result .notice .dashicons {
2402 flex-shrink: 0;
2403 }
2404
2405 .mxchat-test-result .notice p {
2406 margin: 0;
2407 font-size: 14px;
2408 }
2409
2410 /* Compatibility Notice */
2411 .mxchat-pinecone-compatibility-notice {
2412 background: #e8f4ff;
2413 border-left: 4px solid #2196f3;
2414 padding: 15px;
2415 margin: 0 0 20px 0;
2416 border-radius: 4px;
2417 }
2418
2419 .mxchat-pinecone-compatibility-notice p {
2420 margin: 0;
2421 color: #1565c0;
2422 font-size: 14px;
2423 line-height: 1.5;
2424 }
2425
2426 /* Responsive Design */
2427 @media screen and (max-width: 782px) {
2428 .mxchat-pinecone-info-box {
2429 flex-direction: column;
2430 gap: 10px;
2431 }
2432
2433 .mxchat-toggle-container {
2434 flex-direction: column;
2435 align-items: flex-start;
2436 gap: 8px;
2437 }
2438
2439 .mxchat-form-group input[type="text"],
2440 .mxchat-form-group input[type="password"] {
2441 max-width: 100%;
2442 }
2443
2444 .mxchat-pinecone-settings {
2445 padding: 15px;
2446 }
2447
2448 .mxchat-pinecone-setup-help,
2449 .mxchat-pinecone-status-section {
2450 padding: 15px;
2451 }
2452 }
2453
2454
2455 /* Setup Steps */
2456 .mxchat-setup-steps {
2457 margin: 30px 0;
2458 padding: 20px;
2459 background: #fff;
2460 border-radius: 10px;
2461 }
2462
2463 .mxchat-setup-step {
2464 display: flex;
2465 align-items: flex-start;
2466 margin-bottom: 20px;
2467 }
2468
2469 .step-number {
2470 background: linear-gradient(135deg, #fa73e6, #7873f5);
2471 color: white;
2472 width: 28px;
2473 height: 28px;
2474 border-radius: 50%;
2475 display: flex;
2476 align-items: center;
2477 justify-content: center;
2478 font-weight: bold;
2479 margin-right: 15px;
2480 flex-shrink: 0;
2481 }
2482
2483 .step-content {
2484 flex: 1;
2485 }
2486
2487 .step-content h4 {
2488 margin: 0 0 5px 0;
2489 }
2490
2491 .step-content p {
2492 margin: 0;
2493 color: #666;
2494 }
2495
2496 .step-content ul {
2497 margin-top: 5px;
2498 margin-bottom: 0;
2499 color: #666;
2500 }
2501
2502