PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 2.1.0
MxChat – AI Chatbot & Content Generation for WordPress v2.1.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
← All changes | css/intent-style.css +189 -990 3.2.62.1.0 View file →
@@ -1,290 +1,51 @@
1 -/* MXChat Actions Manager Styles (formerly Intents) */
2 -#wpcontent {
3 - padding-left: 0px;
4 -}
5 -
6 -.auto-fold #wpcontent {
7 - padding-left: 0px;
8 -}
9 -
10 -/* Base Styles & Layout */
11 -.mxchat-wrapper {
12 - width: 100%; /* Add 40px to account for left and right padding */
13 - padding: 0px;
14 - margin: 0px;
15 - background-color: #f8f9ff;
16 - min-height: 100vh;
17 -}
18 -
19 -.mxchat-hero {
20 - text-align: center;
21 - margin-bottom: 40px;
22 - padding: 30px 0;
23 -}
24 -
25 -.mxchat-main-title {
26 - font-size: 32px;
27 - font-weight: 600;
28 - margin-bottom: 10px;
29 -}
30 -
31 -.mxchat-gradient-text {
32 - background: linear-gradient(90deg, #7873f5, #fa73e6);
33 - -webkit-background-clip: text;
34 - background-clip: text;
35 - -webkit-text-fill-color: transparent;
36 -}
37 -
38 -.mxchat-hero-subtitle {
39 - font-size: 16px;
40 - max-width: 700px;
41 - margin: 0 auto;
42 -}
43 -
44 -/* Actions Header Styles */
45 -.mxchat-actions-header {
46 - display: flex;
47 - justify-content: space-between;
48 - align-items: center;
1 +/* Intent Manager Specific Styles */
2 +.mxchat-intent-documentation {
3 + background: rgba(120, 115, 245, 0.05);
4 + border-left: 4px solid #7873f5;
5 + padding: 15px 20px;
49 6 margin-bottom: 30px;
50 - padding: 0 35px;
7 + border-radius: 0 8px 8px 0;
51 8 }
52 9
53 -.mxchat-actions-filters {
54 - display: flex;
55 - gap: 15px;
56 - align-items: center;
57 - flex: 1;
10 +.mxchat-intent-documentation a {
11 + color: #7873f5;
12 + text-decoration: none;
13 + font-weight: 500;
58 14 }
59 15
60 -.mxchat-search-form {
61 - display: flex;
62 - gap: 10px;
63 - align-items: center;
64 - width: 100%;
65 - max-width: 800px;
16 +.mxchat-intent-documentation a:hover {
17 + color: #fa73e6;
66 18 }
67 19
68 -.mxchat-search-group {
69 - position: relative;
70 - flex: 1;
71 -}
72 -
73 -.mxchat-search-group .dashicons {
74 - position: absolute;
75 - left: 12px;
76 - top: 50%;
77 - transform: translateY(-50%);
78 - color: #666;
79 -}
80 -
81 -.mxchat-search-input {
82 - padding: 10px 15px 10px 40px;
83 - border-radius: 8px;
84 - border: 1px solid #ddd;
20 +/* Form Elements */
21 +.mxchat-intent-input,
22 +.mxchat-intent-select,
23 +.mxchat-intent-textarea {
85 24 width: 100%;
86 -}
87 -
88 -.mxchat-action-filter {
89 - min-width: 180px;
90 - padding: 10px 15px;
25 + padding: 12px 15px;
26 + border: 2px solid rgba(120, 115, 245, 0.2);
91 27 border-radius: 8px;
92 - border: 1px solid #ddd;
93 -}
94 -
95 -/* Cards Grid Layout */
96 -.mxchat-actions-grid {
97 - display: flex;
98 - flex-direction: column;
99 - gap: 40px;
100 - padding: 25px;
101 -}
102 -
103 -.mxchat-category-section {
104 - margin-bottom: 20px;
105 -}
106 -
107 -.mxchat-category-title {
108 - font-size: 18px;
109 - font-weight: 500;
110 - margin-bottom: 15px;
111 - padding: 0 10px;
112 - display: flex;
113 - align-items: center;
114 - gap: 8px;
115 -}
116 -
117 -.mxchat-category-title .dashicons {
118 - color: #7873f5;
119 -}
120 -
121 -.mxchat-cards-container {
122 - display: grid;
123 - grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
124 - gap: 20px;
125 - padding: 10px;
126 -}
127 -
128 -/* Action Card Styling */
129 -.mxchat-action-card {
28 + font-size: 14px;
29 + transition: all 0.3s ease;
130 30 background: white;
131 - border-radius: 12px;
132 - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
133 - overflow: hidden;
134 - transition: all 0.3s ease;
135 - display: flex;
136 - flex-direction: column;
137 31 }
138 32
139 -.mxchat-action-card:hover {
140 - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
141 - transform: translateY(-2px);
33 +.mxchat-intent-textarea {
34 + min-height: 120px;
35 + resize: vertical;
142 36 }
143 37
144 -.mxchat-card-header {
145 - padding: 20px;
146 - background: #f9f9f9;
147 - border-bottom: 1px solid #eee;
148 - display: flex;
149 - justify-content: space-between;
150 - align-items: center;
38 +.mxchat-intent-input:focus,
39 +.mxchat-intent-select:focus,
40 +.mxchat-intent-textarea:focus {
41 + border-color: #7873f5;
42 + box-shadow: 0 0 0 3px rgba(120, 115, 245, 0.1);
43 + outline: none;
151 44 }
152 45
153 -.mxchat-card-title {
154 - font-weight: 600;
155 - font-size: 16px;
156 -}
157 -
158 -.mxchat-card-body {
159 - padding: 20px;
160 - flex: 1;
161 - display: flex;
162 - flex-direction: column;
163 - gap: 15px;
164 -}
165 -
166 -.mxchat-card-description {
167 - font-size: 14px;
168 - color: #555;
169 - margin-bottom: 5px;
170 -}
171 -
172 -.mxchat-card-phrases {
173 - margin-bottom: 15px;
174 -}
175 -
176 -.mxchat-phrases-preview {
177 - font-size: 13px;
178 - color: #666;
179 - margin-top: 5px;
180 - padding: 10px;
181 - background: #f9f9f9;
182 - border-radius: 4px;
183 - border-left: 3px solid #7873f5;
184 -}
185 -
186 -.mxchat-card-footer {
187 - padding: 15px 20px;
188 - border-top: 1px solid #eee;
189 - display: flex;
190 - justify-content: space-between;
191 - gap: 10px;
192 -}
193 -
194 -/* Toggle Switch */
195 -.mxchat-switch {
196 - position: relative;
197 - display: inline-block;
198 - width: 50px;
199 - height: 24px;
200 -}
201 -
202 -.mxchat-switch input {
203 - opacity: 0;
204 - width: 0;
205 - height: 0;
206 -}
207 -
208 -.mxchat-slider {
209 - position: absolute;
210 - cursor: pointer;
211 - top: 0;
212 - left: 0;
213 - right: 0;
214 - bottom: 0;
215 - background-color: #ccc;
216 - transition: .4s;
217 -}
218 -
219 -.mxchat-slider:before {
220 - position: absolute;
221 - content: "";
222 - height: 16px;
223 - width: 16px;
224 - left: 4px;
225 - bottom: 4px;
226 - background-color: white;
227 - transition: .4s;
228 -}
229 -
230 -.mxchat-switch input:checked + .mxchat-slider {
231 - background: linear-gradient(90deg, #7873f5, #fa73e6);
232 -}
233 -
234 -.mxchat-switch input:focus + .mxchat-slider {
235 - box-shadow: 0 0 1px #7873f5;
236 -}
237 -
238 -.mxchat-switch input:checked + .mxchat-slider:before {
239 - transform: translateX(26px);
240 -}
241 -
242 -.mxchat-slider.round {
243 - border-radius: 34px;
244 -}
245 -
246 -.mxchat-slider.round:before {
247 - border-radius: 50%;
248 -}
249 -
250 -/* Threshold Styling */
251 -.mxchat-threshold-control {
252 - margin-top: 5px;
253 -}
254 -
255 -.mxchat-threshold-label {
256 - display: flex;
257 - justify-content: space-between;
258 - align-items: center;
259 - margin-bottom: 8px;
260 - font-size: 14px;
261 -}
262 -
263 -.mxchat-threshold-value {
264 - background: rgba(120, 115, 245, 0.1);
265 - padding: 3px 8px;
266 - border-radius: 4px;
267 - color: #7873f5;
268 - font-weight: 500;
269 -}
270 -
271 -.mxchat-threshold-form {
272 - display: flex;
273 - align-items: center;
274 - gap: 10px;
275 - position: relative;
276 -}
277 -
278 -.mxchat-slider-group {
279 - display: flex;
280 - align-items: center;
281 - gap: 15px;
282 - width: 100%;
283 - position: relative;
284 -}
285 -
286 -.mxchat-threshold-slider {
46 +/* Slider Styling */
47 +.mxchat-intent-slider {
287 48 -webkit-appearance: none;
288 49 width: 100%;
289 50 height: 6px;
290 51 border-radius: 3px;
@@ -292,13 +53,13 @@
292 53 outline: none;
293 54 margin: 10px 0;
294 55 }
295 56
296 -.mxchat-threshold-slider::-webkit-slider-thumb {
57 +.mxchat-intent-slider::-webkit-slider-thumb {
297 58 -webkit-appearance: none;
298 59 appearance: none;
299 - width: 16px;
300 - height: 16px;
60 + width: 18px;
61 + height: 18px;
301 62 border-radius: 50%;
302 63 background: linear-gradient(135deg, #fa73e6, #7873f5);
303 64 cursor: pointer;
304 65 border: 2px solid white;
@@ -304,11 +65,11 @@
304 65 border: 2px solid white;
305 66 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
306 67 }
307 68
308 -.mxchat-threshold-slider::-moz-range-thumb {
309 - width: 16px;
310 - height: 16px;
69 +.mxchat-intent-slider::-moz-range-thumb {
70 + width: 18px;
71 + height: 18px;
311 72 border-radius: 50%;
312 73 background: linear-gradient(135deg, #fa73e6, #7873f5);
313 74 cursor: pointer;
314 75 border: 2px solid white;
@@ -314,374 +75,43 @@
314 75 border: 2px solid white;
315 76 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
316 77 }
317 78
318 -.mxchat-threshold-output {
319 - min-width: 60px;
320 - display: none;
321 -}
322 -
323 -.mxchat-threshold-save {
324 - background: none;
325 - border: none;
326 - cursor: pointer;
327 - color: #7873f5;
328 -}
329 -
330 -.mxchat-threshold-save:hover {
331 - color: #fa73e6;
332 -}
333 -
334 -.mxchat-threshold-hint {
335 - font-size: 12px;
336 - color: #777;
337 - margin-top: 5px;
338 -}
339 -
340 -/* New Action Card */
341 -.mxchat-new-action-card {
342 - background: rgba(120, 115, 245, 0.05);
343 - border: 2px dashed rgba(120, 115, 245, 0.2);
344 - box-shadow: none;
345 -}
346 -
347 -.mxchat-new-action-card:hover {
348 - background: rgba(120, 115, 245, 0.08);
349 - border-color: rgba(120, 115, 245, 0.3);
350 - box-shadow: none;
351 -}
352 -
353 -.mxchat-card-new-action {
354 - height: 100%;
79 +/* Threshold Form and Slider Group */
80 +.mxchat-threshold-form {
355 81 display: flex;
356 82 align-items: center;
357 - justify-content: center;
358 - padding: 40px 20px;
359 -}
360 -
361 -.mxchat-new-action-button {
362 - background: none;
363 - border: none;
364 - display: flex;
365 - flex-direction: column;
366 - align-items: center;
367 83 gap: 10px;
368 - color: #7873f5;
369 - cursor: pointer;
370 - transition: all 0.2s ease;
371 - padding: 15px;
84 + position: relative;
372 85 }
373 86
374 -.mxchat-new-action-button:hover {
375 - transform: scale(1.05);
376 -}
377 -
378 -.mxchat-new-action-button .dashicons {
379 - font-size: 30px;
380 - width: 30px;
381 - height: 30px;
382 - color: #7873f5;
383 -}
384 -
385 -/* Buttons */
386 -.mxchat-button-primary {
387 - background: linear-gradient(135deg, #7873f5, #fa73e6);
388 - color: white;
389 - border: none;
390 - padding: 10px 20px;
391 - border-radius: 8px;
392 - font-weight: 500;
393 - cursor: pointer;
394 - transition: all 0.2s ease;
395 - display: inline-flex;
396 - align-items: center;
397 - gap: 8px;
398 -}
399 -
400 -.mxchat-button-primary:hover {
401 - opacity: 0.9;
402 - transform: translateY(-1px);
403 -}
404 -
405 -.mxchat-button-secondary {
406 - background: #f5f5f5;
407 - color: #333;
408 - border: 1px solid #ddd;
409 - padding: 9px 18px;
410 - border-radius: 8px;
411 - font-weight: 500;
412 - cursor: pointer;
413 - transition: all 0.2s ease;
414 - display: inline-flex;
415 - align-items: center;
416 - gap: 8px;
417 -}
418 -
419 -.mxchat-button-secondary:hover {
420 - background: #eee;
421 -}
422 -
423 -.mxchat-button-text {
424 - background: none;
425 - border: none;
426 - color: #666;
427 - padding: 8px 12px;
428 - border-radius: 4px;
429 - cursor: pointer;
430 - transition: all 0.2s ease;
431 - display: inline-flex;
432 - align-items: center;
433 - gap: 6px;
434 -}
435 -
436 -.mxchat-button-text:hover {
437 - background: rgba(0, 0, 0, 0.05);
438 - color: #333;
439 -}
440 -
441 -.mxchat-delete-button {
442 - color: #ff4d4d;
443 -}
444 -
445 -.mxchat-delete-button:hover {
446 - background: rgba(255, 77, 77, 0.1);
447 - color: #ff4d4d;
448 -}
449 -
450 -/* Form Action Styling */
451 -.mxchat-form-action {
452 - border-left: 4px solid #4caf50;
453 -}
454 -
455 -.mxchat-form-action .mxchat-card-header {
456 - background: rgba(76, 175, 80, 0.05);
457 -}
458 -
459 -
460 -/* Empty State */
461 -.mxchat-no-actions {
87 +.mxchat-slider-group {
462 88 display: flex;
463 - justify-content: center;
464 - padding: 60px 0;
465 -}
466 -
467 -.mxchat-empty-state {
468 - text-align: center;
469 - max-width: 500px;
470 - padding: 40px;
471 - background: white;
472 - border-radius: 16px;
473 - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
474 -}
475 -
476 -.mxchat-empty-state .dashicons {
477 - font-size: 48px;
478 - width: 48px;
479 - height: 48px;
480 - color: #7873f5;
481 - margin-bottom: 20px;
482 -}
483 -
484 -.mxchat-empty-state h2 {
485 - margin-bottom: 15px;
486 - font-size: 24px;
487 -}
488 -
489 -.mxchat-empty-state p {
490 - margin-bottom: 25px;
491 - color: #666;
492 -}
493 -
494 -/* Loading Spinner */
495 -.mxchat-action-loading {
496 - position: fixed;
497 - top: 50%;
498 - left: 50%;
499 - transform: translate(-50%, -50%);
500 - background: rgba(255, 255, 255, 0.95);
501 - padding: 30px;
502 - border-radius: 16px;
503 - box-shadow: 0 4px 20px rgba(120, 115, 245, 0.15);
504 - display: flex;
505 - flex-direction: column;
506 89 align-items: center;
507 - justify-content: center;
508 - z-index: 100001;
509 - min-width: 200px;
510 - text-align: center;
511 -}
512 -
513 -.mxchat-action-loading-spinner {
514 - width: 40px;
515 - height: 40px;
516 - border-radius: 50%;
517 - border: 3px solid transparent;
518 - border-top-color: #7873f5;
519 - border-right-color: #7873f5;
520 - animation: mxchatActionSpin 0.8s linear infinite;
521 - margin-bottom: 15px;
522 -}
523 -
524 -.mxchat-action-loading-text {
525 - color: #333;
526 - font-weight: 500;
527 - font-size: 14px;
528 - margin: 0;
529 - padding: 0;
530 -}
531 -
532 -@keyframes mxchatActionSpin {
533 - to {
534 - transform: rotate(360deg);
535 - }
536 -}
537 -
538 -/* Form Elements */
539 -.mxchat-form-group {
540 - margin-bottom: 25px;
541 -}
542 -
543 -.mxchat-form-group label {
544 - display: block;
545 - margin-bottom: 8px;
546 - font-weight: 500;
547 - color: #333;
548 -}
549 -
550 -.mxchat-intent-input,
551 -.mxchat-intent-select,
552 -.mxchat-intent-textarea {
90 + gap: 15px;
553 91 width: 100%;
554 - padding: 12px 15px;
555 - border: 2px solid rgba(120, 115, 245, 0.2);
556 - border-radius: 8px;
557 - font-size: 14px;
558 - transition: all 0.3s ease;
559 - background: white;
92 + position: relative;
560 93 }
561 94
562 -.mxchat-intent-textarea {
563 - min-height: 120px;
564 - resize: vertical;
95 +.mxchat-slider-group .dashicons-saved {
96 + position: absolute;
97 + bottom: -20px;
98 + left: 50%;
99 + transform: translateX(-50%);
100 + color: #00a32a;
565 101 }
566 102
567 -.mxchat-intent-input:focus,
568 -.mxchat-intent-select:focus,
569 -.mxchat-intent-textarea:focus {
570 - border-color: #7873f5;
571 - box-shadow: 0 0 0 3px rgba(120, 115, 245, 0.1);
572 - outline: none;
573 -}
574 -
575 -/* Modal slider */
576 -.modal-slider {
577 - margin: 20px 0 10px;
578 -}
579 -
580 -/* Pagination */
581 -.mxchat-pagination {
582 - margin-top: 30px;
103 +.mxchat-intent-output {
104 + min-width: 60px;
583 105 text-align: center;
106 + padding: 4px 8px;
107 + background: rgba(120, 115, 245, 0.1);
108 + border-radius: 4px;
109 + font-size: 14px;
110 + color: #7873f5;
584 111 }
585 112
586 -.mxchat-pagination .page-numbers {
587 - display: inline-flex;
588 - align-items: center;
589 - justify-content: center;
590 - width: 36px;
591 - height: 36px;
592 - margin: 0 5px;
593 - border-radius: 8px;
594 - background: white;
595 - border: 1px solid #ddd;
596 - text-decoration: none;
597 - font-weight: 500;
598 - color: #333;
599 - transition: all 0.2s ease;
600 -}
601 -
602 -.mxchat-pagination .page-numbers.current {
603 - background: #7873f5;
604 - color: white;
605 - border-color: #7873f5;
606 -}
607 -
608 -.mxchat-pagination .page-numbers:hover:not(.current) {
609 - background: #f5f5f5;
610 -}
611 -
612 -.mxchat-pagination .prev,
613 -.mxchat-pagination .next {
614 - width: auto;
615 - padding: 0 15px;
616 -}
617 -
618 -/* Responsive Adjustments */
619 -@media screen and (max-width: 782px) {
620 - .mxchat-cards-container {
621 - grid-template-columns: 1fr;
622 - }
623 - .mxchat-card-header {
624 - flex-direction: row;
625 - }
626 -
627 - .mxchat-actions-header {
628 - flex-direction: column;
629 - gap: 15px;
630 - align-items: flex-start;
631 - }
632 -
633 - .mxchat-actions-filters,
634 - .mxchat-search-form {
635 - width: 100%;
636 - flex-direction: column;
637 - }
638 -
639 - .mxchat-action-filter,
640 - .mxchat-search-input {
641 - width: 100%;
642 - }
643 -
644 - .mxchat-modal-actions {
645 - flex-direction: column-reverse;
646 - }
647 -
648 - .mxchat-modal-actions button {
649 - width: 100%;
650 - }
651 -
652 - .mxchat-card-footer {
653 - flex-direction: column;
654 - }
655 -
656 - .mxchat-card-footer button,
657 - .mxchat-card-footer a {
658 - justify-content: center;
659 - }
660 -
661 - .mxchat-search-group {
662 - width: 100%;
663 - }
664 - .mxchat-button-secondary {
665 - width: 100%;
666 - }
667 -}
668 -
669 -
670 -
671 -
672 -
673 -
674 -
675 -
676 -
677 -
678 -
679 -
680 -
681 -
682 -
683 -/* Modal Styles with Improved Scrolling */
113 +/* Modal Styling */
684 114 .mxchat-modal {
685 115 display: none;
686 116 position: fixed;
687 117 top: 0;
@@ -691,88 +121,39 @@
691 121 background: rgba(0, 0, 0, 0.5);
692 122 z-index: 100000;
693 123 opacity: 0;
694 124 transition: opacity 0.3s ease;
695 - padding: 30px 0;
696 125 }
697 126
698 127 .mxchat-modal.active {
699 128 display: flex;
700 - align-items: flex-start; /* Changed from center to allow scrolling from top */
129 + align-items: center;
701 130 justify-content: center;
702 131 opacity: 1;
703 132 }
704 133
705 -/* Enhanced Modal Content with Styled Scrollbar */
706 134 .mxchat-modal-content {
707 135 background: white;
708 136 padding: 30px;
709 137 border-radius: 16px;
710 138 width: 90%;
711 - max-width: 1000px;
139 + max-width: 600px;
712 140 position: relative;
713 141 transform: translateY(-20px);
714 142 transition: transform 0.3s ease;
715 143 box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
716 - margin: auto; /* Center horizontally */
717 - max-height: 80vh; /* Use viewport height for better responsiveness */
718 - overflow-y: auto;
719 - overflow-x: hidden; /* Prevent horizontal scrollbar */
720 -
721 - /* Styled scrollbar - Webkit browsers (Chrome, Safari, Edge) */
722 - &::-webkit-scrollbar {
723 - width: 8px;
724 - }
725 -
726 - &::-webkit-scrollbar-track {
727 - background: transparent;
728 - margin: 4px 0; /* Add some margin to prevent touching edges */
729 - }
730 -
731 - &::-webkit-scrollbar-thumb {
732 - background: rgba(120, 115, 245, 0.3);
733 - border-radius: 4px;
734 - transition: background 0.2s ease;
735 - }
736 -
737 - &::-webkit-scrollbar-thumb:hover {
738 - background: rgba(120, 115, 245, 0.5);
739 - }
740 -
741 - /* Firefox scrollbar styling */
742 - scrollbar-width: thin;
743 - scrollbar-color: rgba(120, 115, 245, 0.3) transparent;
744 144 }
745 145
746 -/* When using older CSS syntax for broader compatibility */
747 -.mxchat-modal-content::-webkit-scrollbar {
748 - width: 8px;
146 +.mxchat-card-header {
147 + margin: -30px -30px 30px -30px;
148 + padding: 30px;
149 + border-bottom: 1px solid rgba(120, 115, 245, 0.1);
749 150 }
750 151
751 -.mxchat-modal-content::-webkit-scrollbar-track {
752 - background: transparent;
753 - margin: 4px 0;
754 -}
755 -
756 -.mxchat-modal-content::-webkit-scrollbar-thumb {
757 - background: rgba(120, 115, 245, 0.3);
758 - border-radius: 4px;
759 -}
760 -
761 -.mxchat-modal-content::-webkit-scrollbar-thumb:hover {
762 - background: rgba(120, 115, 245, 0.5);
763 -}
764 -
765 152 .mxchat-modal.active .mxchat-modal-content {
766 153 transform: translateY(0);
767 154 }
768 155
769 -.mxchat-modal-header {
770 - margin: -30px -30px 30px -30px;
771 - padding: 20px 30px;
772 - border-bottom: 1px solid rgba(120, 115, 245, 0.1);
773 -}
774 -
775 156 .mxchat-modal-close {
776 157 position: absolute;
777 158 right: 20px;
778 159 top: 20px;
@@ -785,9 +166,8 @@
785 166 align-items: center;
786 167 justify-content: center;
787 168 border-radius: 50%;
788 169 transition: all 0.2s ease;
789 - z-index: 1; /* Ensure it's above other content */
790 170 }
791 171
792 172 .mxchat-modal-close:hover {
793 173 background: rgba(120, 115, 245, 0.1);
@@ -802,366 +182,185 @@
802 182 padding-top: 20px;
803 183 border-top: 1px solid rgba(120, 115, 245, 0.1);
804 184 }
805 185
806 -/* Action Types Grid - Remove fixed height */
807 -.mxchat-action-types-grid {
808 - display: grid;
809 - grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
810 - gap: 15px;
811 - margin-bottom: 20px;
812 - /* Removed max-height and overflow-y to let the modal container handle scrolling */
813 - padding-right: 5px;
814 -}
815 -
816 -/* Add these rules to your CSS */
817 -.mxchat-action-type-card[data-pro="false"] {
818 - order: 1; /* Lower numbers displayed first */
819 -}
820 -.mxchat-action-type-card[data-pro="true"] {
821 - order: 2;
822 -}
823 -
824 -/* Step-Based Modal Styles */
825 -.mxchat-action-step {
826 - display: none;
827 -}
828 -
829 -.mxchat-action-step.active {
830 - display: block;
831 - animation: fadeIn 0.3s ease;
832 -}
833 -
834 -.mxchat-step-indicator {
186 +/* Loading Spinner - Completely Isolated Styles */
187 +.mxchat-intent-loading {
188 + position: fixed;
189 + top: 50%;
190 + left: 50%;
191 + transform: translate(-50%, -50%);
192 + background: rgba(255, 255, 255, 0.95);
193 + padding: 30px;
194 + border-radius: 16px;
195 + box-shadow: 0 4px 20px rgba(120, 115, 245, 0.15);
835 196 display: flex;
197 + flex-direction: column;
836 198 align-items: center;
837 - margin-bottom: 25px;
838 - padding-bottom: 20px;
839 - border-bottom: 1px solid rgba(120, 115, 245, 0.1);
199 + justify-content: center;
200 + z-index: 100001;
201 + min-width: 200px;
202 + text-align: center;
840 203 }
841 204
842 -.mxchat-step-number {
843 - width: 30px;
844 - height: 30px;
205 +.mxchat-intent-loading-spinner {
206 + width: 40px;
207 + height: 40px;
845 208 border-radius: 50%;
846 - background: linear-gradient(135deg, #7873f5, #fa73e6);
847 - color: white;
848 - display: flex;
849 - align-items: center;
850 - justify-content: center;
851 - font-weight: 600;
852 - margin-right: 12px;
853 - font-size: 14px;
209 + border: 3px solid transparent;
210 + border-top-color: #7873f5;
211 + border-right-color: #7873f5;
212 + animation: mxchatIntentSpin 0.8s linear infinite;
213 + margin-bottom: 15px;
854 214 }
855 215
856 -.mxchat-step-title {
857 - font-size: 16px;
216 +.mxchat-intent-loading-text {
217 + color: #333;
858 218 font-weight: 500;
859 - color: #333;
860 -}
861 -
862 -.mxchat-selected-action {
863 - background: #f8f9ff;
864 - border-radius: 12px;
865 - padding: 15px;
866 - margin-bottom: 25px;
867 - animation: fadeIn 0.3s ease;
868 -}
869 -
870 -.mxchat-back-button {
871 - background: none;
872 - border: none;
873 - color: #7873f5;
874 - padding: 0;
875 - margin-bottom: 15px;
876 - cursor: pointer;
877 219 font-size: 14px;
878 - display: flex;
879 - align-items: center;
880 - gap: 5px;
881 - transition: all 0.2s ease;
882 -}
883 -
884 -.mxchat-back-button:hover {
885 - color: #fa73e6;
886 - transform: translateX(-3px);
887 -}
888 -
889 -.mxchat-back-button .dashicons {
890 - font-size: 16px;
891 - width: 16px;
892 - height: 16px;
893 -}
894 -
895 -.mxchat-selected-action-info {
896 - display: flex;
897 - align-items: center;
898 - gap: 15px;
899 -}
900 -
901 -.mxchat-selected-action-details h3 {
902 - margin: 0 0 5px 0;
903 - font-size: 16px;
904 - font-weight: 600;
905 -}
906 -
907 -.mxchat-selected-action-details p {
908 220 margin: 0;
909 - font-size: 13px;
910 - color: #666;
221 + padding: 0;
911 222 }
912 223
913 -/* Action Type Selector Styles */
914 -.mxchat-action-type-selector {
915 - background: #f8f9ff;
916 - border-radius: 12px;
917 - padding: 20px;
918 - margin-bottom: 25px;
919 - box-shadow: inset 0 0 0 1px rgba(120, 115, 245, 0.1);
224 +@keyframes mxchatIntentSpin {
225 + to {
226 + transform: rotate(360deg);
227 + }
920 228 }
921 229
922 -.mxchat-action-type-search {
923 - position: relative;
924 - margin-bottom: 15px;
230 +.mxchat-loading-text {
231 + margin-top: 15px;
232 + color: #333;
233 + font-weight: 500;
925 234 }
926 235
927 -.mxchat-action-type-search .dashicons {
928 - position: absolute;
929 - left: 12px;
930 - top: 50%;
931 - transform: translateY(-50%);
932 - color: #666;
236 +/* Table Specific */
237 +.mxchat-content-cell {
238 + max-width: 300px;
239 + overflow: hidden;
240 + text-overflow: ellipsis;
241 + white-space: nowrap;
933 242 }
934 243
935 -.mxchat-action-type-search-input {
936 - width: 100%;
937 - padding: 10px 15px 10px 40px;
938 - border-radius: 8px;
939 - border: 1px solid #ddd;
940 - font-size: 14px;
941 - padding-left: 40px !important;
942 -}
943 -
944 -.mxchat-action-type-categories {
244 +/* Search and Filter */
245 +.mxchat-search-form {
945 246 display: flex;
946 - gap: 10px;
947 - margin-bottom: 20px;
948 - flex-wrap: wrap;
949 -}
950 -
951 -.mxchat-category-button {
952 - background: white;
953 - border: 1px solid #ddd;
954 - border-radius: 20px;
955 - padding: 6px 15px;
956 - font-size: 13px;
957 - cursor: pointer;
958 - transition: all 0.2s ease;
959 -}
960 -
961 -.mxchat-category-button:hover {
962 - background: #f5f5f5;
963 -}
964 -
965 -.mxchat-category-button.active {
966 - background: #7873f5;
967 - color: white;
968 - border-color: #7873f5;
969 -}
970 -
971 -.mxchat-action-type-card {
972 - display: flex;
973 - background: white;
974 - border-radius: 8px;
975 - border: 1px solid #eee;
976 - padding: 15px;
977 - cursor: pointer;
978 - transition: all 0.2s ease;
979 - align-items: center;
980 247 gap: 15px;
981 -}
982 -
983 -.mxchat-action-type-card:hover {
984 - background: #f9f9ff;
985 - border-color: rgba(120, 115, 245, 0.3);
986 - transform: translateY(-2px);
987 - box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
988 -}
989 -
990 -.mxchat-action-type-card.selected {
991 - background: rgba(120, 115, 245, 0.05);
992 - border-color: #7873f5;
993 - box-shadow: 0 0 0 2px rgba(120, 115, 245, 0.2);
994 -}
995 -
996 -.mxchat-action-type-icon {
997 - width: 40px;
998 - height: 40px;
999 - border-radius: 8px;
1000 - background: rgba(120, 115, 245, 0.1);
1001 - display: flex;
1002 248 align-items: center;
1003 - justify-content: center;
1004 - flex-shrink: 0;
1005 249 }
1006 250
1007 -.mxchat-action-type-icon .dashicons {
1008 - color: #7873f5;
1009 - font-size: 20px;
1010 - width: 20px;
1011 - height: 20px;
251 +.mxchat-intent-filter {
252 + min-width: 200px;
1012 253 }
1013 254
1014 -.mxchat-action-type-icon.pro-feature {
1015 - background: linear-gradient(135deg, #7873f5, #fa73e6);
255 +/* Delete Form Button */
256 +.mxchat-delete-form {
257 + display: inline-block;
1016 258 }
1017 259
1018 -.mxchat-action-type-icon.pro-feature .dashicons {
1019 - color: white;
260 +.mxchat-delete-form .mxchat-button-icon {
261 + color: #ff4d4d;
1020 262 }
1021 263
1022 -.mxchat-action-type-info {
1023 - flex: 1;
264 +.mxchat-delete-form .mxchat-button-icon:hover {
265 + background: #fff5f5;
1024 266 }
1025 267
1026 -.mxchat-action-type-info h4 {
1027 - margin: 0 0 5px 0;
1028 - font-size: 14px;
1029 - font-weight: 600;
268 +/* General Spacing */
269 +.mxchat-form-group {
270 + margin-bottom: 25px;
1030 271 }
1031 272
1032 -.mxchat-action-type-info p {
1033 - margin: 0;
1034 - font-size: 12px;
1035 - color: #666;
1036 - line-height: 1.4;
273 +.mxchat-form-group label {
274 + display: block;
275 + margin-bottom: 8px;
276 + font-weight: 500;
277 + color: #333;
1037 278 }
1038 279
1039 -.mxchat-pro-badge {
1040 - display: inline-block;
1041 - background: linear-gradient(135deg, #7873f5, #fa73e6);
1042 - color: white;
1043 - font-size: 10px;
1044 - padding: 2px 6px;
1045 - border-radius: 10px;
1046 - margin-top: 5px;
1047 - font-weight: 600;
280 +.mxchat-intent-slider {
281 + min-width: 100px;
1048 282 }
1049 283
1050 -/* Animation for step transitions */
1051 -@keyframes fadeIn {
1052 - from {
1053 - opacity: 0;
1054 - transform: translateY(10px);
284 +/* Responsive Adjustments */
285 +@media screen and (max-width: 782px) {
286 + .mxchat-modal-content {
287 + width: 95%;
288 + margin: 10px;
289 + padding: 20px;
1055 290 }
1056 - to {
1057 - opacity: 1;
1058 - transform: translateY(0);
291 +
292 + .mxchat-card-header {
293 + margin: -20px -20px 20px -20px;
294 + padding: 20px;
1059 295 }
1060 -}
1061 296
1062 -/* Animation for new cards entering the view */
1063 -@keyframes fadeInUp {
1064 - from {
1065 - opacity: 0;
1066 - transform: translateY(10px);
297 + .mxchat-threshold-form {
298 + flex-direction: column;
299 + align-items: stretch;
300 + gap: 5px;
301 + padding: 10px 0;
1067 302 }
1068 - to {
1069 - opacity: 1;
1070 - transform: translateY(0);
303 +
304 + .mxchat-slider-group {
305 + display: grid;
306 + grid-template-columns: 1fr auto;
307 + gap: 10px;
308 + margin: 0;
1071 309 }
1072 -}
1073 310
1074 -.mxchat-action-type-card {
1075 - animation: fadeInUp 0.3s ease forwards;
1076 -}
311 + .mxchat-slider-group .dashicons-saved {
312 + bottom: -15px;
313 + }
1077 314
1078 -/* Pro Feature Notice */
1079 -.mxchat-pro-notice {
1080 - position: fixed;
1081 - top: 0;
1082 - left: 0;
1083 - width: 100%;
1084 - height: 100%;
1085 - background: rgba(0, 0, 0, 0.5);
1086 - z-index: 100002;
1087 - display: flex;
1088 - align-items: center;
1089 - justify-content: center;
1090 - opacity: 0;
1091 - visibility: hidden;
1092 - transition: opacity 0.3s ease, visibility 0.3s ease;
1093 -}
315 + .mxchat-intent-slider {
316 + height: 8px;
317 + margin: 5px 0;
318 + }
1094 319
1095 -.mxchat-pro-notice.active {
1096 - opacity: 1;
1097 - visibility: visible;
1098 -}
320 + .mxchat-intent-slider::-webkit-slider-thumb {
321 + width: 24px;
322 + height: 24px;
323 + }
1099 324
1100 -.mxchat-pro-notice-content {
1101 - background: white;
1102 - padding: 30px;
1103 - border-radius: 16px;
1104 - max-width: 400px;
1105 - text-align: center;
1106 - box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
1107 - transform: translateY(-20px);
1108 - transition: transform 0.3s ease;
1109 -}
325 + .mxchat-intent-slider::-moz-range-thumb {
326 + width: 24px;
327 + height: 24px;
328 + }
1110 329
1111 -.mxchat-pro-notice.active .mxchat-pro-notice-content {
1112 - transform: translateY(0);
1113 -}
330 + .mxchat-intent-output {
331 + min-width: 50px;
332 + font-size: 13px;
333 + padding: 6px 10px;
334 + }
1114 335
1115 -.mxchat-pro-notice-icon {
1116 - font-size: 36px;
1117 - margin-bottom: 15px;
1118 - display: block;
1119 -}
336 + .mxchat-records-table {
337 + display: block;
338 + width: 100%;
339 + overflow-x: auto;
340 + -webkit-overflow-scrolling: touch;
341 + }
1120 342
1121 -.mxchat-pro-notice h3 {
1122 - margin: 0 0 10px 0;
1123 - font-size: 20px;
1124 - background: linear-gradient(135deg, #7873f5, #fa73e6);
1125 - -webkit-background-clip: text;
1126 - background-clip: text;
1127 - -webkit-text-fill-color: transparent;
1128 - display: inline-block;
1129 -}
343 + .mxchat-content-cell {
344 + max-width: 200px;
345 + }
1130 346
1131 -.mxchat-pro-notice p {
1132 - margin: 0 0 20px 0;
1133 - color: #666;
1134 -}
347 + .mxchat-modal-actions {
348 + flex-direction: column-reverse;
349 + gap: 10px;
350 + margin-top: 20px;
351 + }
1135 352
1136 -.mxchat-pro-notice-buttons {
1137 - display: flex;
1138 - gap: 10px;
1139 - justify-content: center;
1140 -}
353 + .mxchat-modal-actions button {
354 + width: 100%;
355 + padding: 12px;
356 + }
1141 357
1142 -/* Media queries for smaller screens */
1143 -@media screen and (max-width: 782px) {
1144 - .mxchat-modal-content {
1145 - width: 90%;
1146 - padding: 10px;
358 + .mxchat-search-form {
359 + flex-direction: column;
360 + width: 100%;
1147 361 }
1148 -
1149 - .mxchat-modal-close {
1150 - top: 10px;
1151 - }
1152 -
1153 - .mxchat-modal-header {
1154 - margin: -20px -20px 20px -20px;
1155 - padding: 15px 20px;
1156 - }
1157 -
1158 - .mxchat-action-types-grid {
1159 - grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
1160 - }
1161 -
1162 - .mxchat-action-type-categories {
1163 - overflow-x: auto;
1164 - padding-bottom: 10px;
1165 - flex-wrap: nowrap;
362 +
363 + .mxchat-intent-filter {
364 + width: 100%;
1166 365 }
1167 366 }