PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 2.4.6
MxChat – AI Chatbot & Content Generation for WordPress v2.4.6
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 +990 -189 2.0.42.4.6 View file →
@@ -1,51 +1,290 @@
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;
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;
6 49 margin-bottom: 30px;
7 - border-radius: 0 8px 8px 0;
50 + padding: 0 35px;
8 51 }
9 52
10 -.mxchat-intent-documentation a {
11 - color: #7873f5;
12 - text-decoration: none;
13 - font-weight: 500;
53 +.mxchat-actions-filters {
54 + display: flex;
55 + gap: 15px;
56 + align-items: center;
57 + flex: 1;
14 58 }
15 59
16 -.mxchat-intent-documentation a:hover {
17 - color: #fa73e6;
60 +.mxchat-search-form {
61 + display: flex;
62 + gap: 10px;
63 + align-items: center;
64 + width: 100%;
65 + max-width: 800px;
18 66 }
19 67
20 -/* Form Elements */
21 -.mxchat-intent-input,
22 -.mxchat-intent-select,
23 -.mxchat-intent-textarea {
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;
24 85 width: 100%;
25 - padding: 12px 15px;
26 - border: 2px solid rgba(120, 115, 245, 0.2);
86 +}
87 +
88 +.mxchat-action-filter {
89 + min-width: 180px;
90 + padding: 10px 15px;
27 91 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 {
130 + 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 +}
138 +
139 +.mxchat-action-card:hover {
140 + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
141 + transform: translateY(-2px);
142 +}
143 +
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;
151 +}
152 +
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 {
28 167 font-size: 14px;
29 - transition: all 0.3s ease;
30 - background: white;
168 + color: #555;
169 + margin-bottom: 5px;
31 170 }
32 171
33 -.mxchat-intent-textarea {
34 - min-height: 120px;
35 - resize: vertical;
172 +.mxchat-card-phrases {
173 + margin-bottom: 15px;
36 174 }
37 175
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;
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;
44 184 }
45 185
46 -/* Slider Styling */
47 -.mxchat-intent-slider {
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 {
48 287 -webkit-appearance: none;
49 288 width: 100%;
50 289 height: 6px;
51 290 border-radius: 3px;
@@ -53,13 +292,13 @@
53 292 outline: none;
54 293 margin: 10px 0;
55 294 }
56 295
57 -.mxchat-intent-slider::-webkit-slider-thumb {
296 +.mxchat-threshold-slider::-webkit-slider-thumb {
58 297 -webkit-appearance: none;
59 298 appearance: none;
60 - width: 18px;
61 - height: 18px;
299 + width: 16px;
300 + height: 16px;
62 301 border-radius: 50%;
63 302 background: linear-gradient(135deg, #fa73e6, #7873f5);
64 303 cursor: pointer;
65 304 border: 2px solid white;
@@ -65,11 +304,11 @@
65 304 border: 2px solid white;
66 305 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
67 306 }
68 307
69 -.mxchat-intent-slider::-moz-range-thumb {
70 - width: 18px;
71 - height: 18px;
308 +.mxchat-threshold-slider::-moz-range-thumb {
309 + width: 16px;
310 + height: 16px;
72 311 border-radius: 50%;
73 312 background: linear-gradient(135deg, #fa73e6, #7873f5);
74 313 cursor: pointer;
75 314 border: 2px solid white;
@@ -75,43 +314,374 @@
75 314 border: 2px solid white;
76 315 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
77 316 }
78 317
79 -/* Threshold Form and Slider Group */
80 -.mxchat-threshold-form {
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%;
81 355 display: flex;
82 356 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;
83 367 gap: 10px;
84 - position: relative;
368 + color: #7873f5;
369 + cursor: pointer;
370 + transition: all 0.2s ease;
371 + padding: 15px;
85 372 }
86 373
87 -.mxchat-slider-group {
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 {
88 462 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;
89 506 align-items: center;
90 - gap: 15px;
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 {
91 553 width: 100%;
92 - position: relative;
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;
93 560 }
94 561
95 -.mxchat-slider-group .dashicons-saved {
96 - position: absolute;
97 - bottom: -20px;
98 - left: 50%;
99 - transform: translateX(-50%);
100 - color: #00a32a;
562 +.mxchat-intent-textarea {
563 + min-height: 120px;
564 + resize: vertical;
101 565 }
102 566
103 -.mxchat-intent-output {
104 - min-width: 60px;
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;
105 583 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;
111 584 }
112 585
113 -/* Modal Styling */
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 */
114 684 .mxchat-modal {
115 685 display: none;
116 686 position: fixed;
117 687 top: 0;
@@ -121,39 +691,88 @@
121 691 background: rgba(0, 0, 0, 0.5);
122 692 z-index: 100000;
123 693 opacity: 0;
124 694 transition: opacity 0.3s ease;
695 + padding: 30px 0;
125 696 }
126 697
127 698 .mxchat-modal.active {
128 699 display: flex;
129 - align-items: center;
700 + align-items: flex-start; /* Changed from center to allow scrolling from top */
130 701 justify-content: center;
131 702 opacity: 1;
132 703 }
133 704
705 +/* Enhanced Modal Content with Styled Scrollbar */
134 706 .mxchat-modal-content {
135 707 background: white;
136 708 padding: 30px;
137 709 border-radius: 16px;
138 710 width: 90%;
139 - max-width: 600px;
711 + max-width: 1000px;
140 712 position: relative;
141 713 transform: translateY(-20px);
142 714 transition: transform 0.3s ease;
143 715 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;
144 744 }
145 745
146 -.mxchat-card-header {
147 - margin: -30px -30px 30px -30px;
148 - padding: 30px;
149 - border-bottom: 1px solid rgba(120, 115, 245, 0.1);
746 +/* When using older CSS syntax for broader compatibility */
747 +.mxchat-modal-content::-webkit-scrollbar {
748 + width: 8px;
150 749 }
151 750
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 +
152 765 .mxchat-modal.active .mxchat-modal-content {
153 766 transform: translateY(0);
154 767 }
155 768
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 +
156 775 .mxchat-modal-close {
157 776 position: absolute;
158 777 right: 20px;
159 778 top: 20px;
@@ -166,8 +785,9 @@
166 785 align-items: center;
167 786 justify-content: center;
168 787 border-radius: 50%;
169 788 transition: all 0.2s ease;
789 + z-index: 1; /* Ensure it's above other content */
170 790 }
171 791
172 792 .mxchat-modal-close:hover {
173 793 background: rgba(120, 115, 245, 0.1);
@@ -182,185 +802,366 @@
182 802 padding-top: 20px;
183 803 border-top: 1px solid rgba(120, 115, 245, 0.1);
184 804 }
185 805
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);
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 {
196 835 display: flex;
197 - flex-direction: column;
198 836 align-items: center;
199 - justify-content: center;
200 - z-index: 100001;
201 - min-width: 200px;
202 - text-align: center;
837 + margin-bottom: 25px;
838 + padding-bottom: 20px;
839 + border-bottom: 1px solid rgba(120, 115, 245, 0.1);
203 840 }
204 841
205 -.mxchat-intent-loading-spinner {
206 - width: 40px;
207 - height: 40px;
842 +.mxchat-step-number {
843 + width: 30px;
844 + height: 30px;
208 845 border-radius: 50%;
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;
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;
214 854 }
215 855
216 -.mxchat-intent-loading-text {
856 +.mxchat-step-title {
857 + font-size: 16px;
858 + font-weight: 500;
217 859 color: #333;
218 - font-weight: 500;
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;
219 877 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 {
220 908 margin: 0;
221 - padding: 0;
909 + font-size: 13px;
910 + color: #666;
222 911 }
223 912
224 -@keyframes mxchatIntentSpin {
225 - to {
226 - transform: rotate(360deg);
227 - }
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);
228 920 }
229 921
230 -.mxchat-loading-text {
231 - margin-top: 15px;
232 - color: #333;
233 - font-weight: 500;
922 +.mxchat-action-type-search {
923 + position: relative;
924 + margin-bottom: 15px;
234 925 }
235 926
236 -/* Table Specific */
237 -.mxchat-content-cell {
238 - max-width: 300px;
239 - overflow: hidden;
240 - text-overflow: ellipsis;
241 - white-space: nowrap;
927 +.mxchat-action-type-search .dashicons {
928 + position: absolute;
929 + left: 12px;
930 + top: 50%;
931 + transform: translateY(-50%);
932 + color: #666;
242 933 }
243 934
244 -/* Search and Filter */
245 -.mxchat-search-form {
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 {
246 945 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;
247 980 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;
248 1002 align-items: center;
1003 + justify-content: center;
1004 + flex-shrink: 0;
249 1005 }
250 1006
251 -.mxchat-intent-filter {
252 - min-width: 200px;
1007 +.mxchat-action-type-icon .dashicons {
1008 + color: #7873f5;
1009 + font-size: 20px;
1010 + width: 20px;
1011 + height: 20px;
253 1012 }
254 1013
255 -/* Delete Form Button */
256 -.mxchat-delete-form {
257 - display: inline-block;
1014 +.mxchat-action-type-icon.pro-feature {
1015 + background: linear-gradient(135deg, #7873f5, #fa73e6);
258 1016 }
259 1017
260 -.mxchat-delete-form .mxchat-button-icon {
261 - color: #ff4d4d;
1018 +.mxchat-action-type-icon.pro-feature .dashicons {
1019 + color: white;
262 1020 }
263 1021
264 -.mxchat-delete-form .mxchat-button-icon:hover {
265 - background: #fff5f5;
1022 +.mxchat-action-type-info {
1023 + flex: 1;
266 1024 }
267 1025
268 -/* General Spacing */
269 -.mxchat-form-group {
270 - margin-bottom: 25px;
1026 +.mxchat-action-type-info h4 {
1027 + margin: 0 0 5px 0;
1028 + font-size: 14px;
1029 + font-weight: 600;
271 1030 }
272 1031
273 -.mxchat-form-group label {
274 - display: block;
275 - margin-bottom: 8px;
276 - font-weight: 500;
277 - color: #333;
1032 +.mxchat-action-type-info p {
1033 + margin: 0;
1034 + font-size: 12px;
1035 + color: #666;
1036 + line-height: 1.4;
278 1037 }
279 1038
280 -.mxchat-intent-slider {
281 - min-width: 100px;
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;
282 1048 }
283 1049
284 -/* Responsive Adjustments */
285 -@media screen and (max-width: 782px) {
286 - .mxchat-modal-content {
287 - width: 95%;
288 - margin: 10px;
289 - padding: 20px;
1050 +/* Animation for step transitions */
1051 +@keyframes fadeIn {
1052 + from {
1053 + opacity: 0;
1054 + transform: translateY(10px);
290 1055 }
1056 + to {
1057 + opacity: 1;
1058 + transform: translateY(0);
1059 + }
1060 +}
291 1061
292 - .mxchat-card-header {
293 - margin: -20px -20px 20px -20px;
294 - padding: 20px;
1062 +/* Animation for new cards entering the view */
1063 +@keyframes fadeInUp {
1064 + from {
1065 + opacity: 0;
1066 + transform: translateY(10px);
295 1067 }
1068 + to {
1069 + opacity: 1;
1070 + transform: translateY(0);
1071 + }
1072 +}
296 1073
297 - .mxchat-threshold-form {
298 - flex-direction: column;
299 - align-items: stretch;
300 - gap: 5px;
301 - padding: 10px 0;
302 - }
1074 +.mxchat-action-type-card {
1075 + animation: fadeInUp 0.3s ease forwards;
1076 +}
303 1077
304 - .mxchat-slider-group {
305 - display: grid;
306 - grid-template-columns: 1fr auto;
307 - gap: 10px;
308 - margin: 0;
309 - }
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 +}
310 1094
311 - .mxchat-slider-group .dashicons-saved {
312 - bottom: -15px;
313 - }
1095 +.mxchat-pro-notice.active {
1096 + opacity: 1;
1097 + visibility: visible;
1098 +}
314 1099
315 - .mxchat-intent-slider {
316 - height: 8px;
317 - margin: 5px 0;
318 - }
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 +}
319 1110
320 - .mxchat-intent-slider::-webkit-slider-thumb {
321 - width: 24px;
322 - height: 24px;
323 - }
1111 +.mxchat-pro-notice.active .mxchat-pro-notice-content {
1112 + transform: translateY(0);
1113 +}
324 1114
325 - .mxchat-intent-slider::-moz-range-thumb {
326 - width: 24px;
327 - height: 24px;
328 - }
1115 +.mxchat-pro-notice-icon {
1116 + font-size: 36px;
1117 + margin-bottom: 15px;
1118 + display: block;
1119 +}
329 1120
330 - .mxchat-intent-output {
331 - min-width: 50px;
332 - font-size: 13px;
333 - padding: 6px 10px;
334 - }
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 +}
335 1130
336 - .mxchat-records-table {
337 - display: block;
338 - width: 100%;
339 - overflow-x: auto;
340 - -webkit-overflow-scrolling: touch;
341 - }
1131 +.mxchat-pro-notice p {
1132 + margin: 0 0 20px 0;
1133 + color: #666;
1134 +}
342 1135
343 - .mxchat-content-cell {
344 - max-width: 200px;
1136 +.mxchat-pro-notice-buttons {
1137 + display: flex;
1138 + gap: 10px;
1139 + justify-content: center;
1140 +}
1141 +
1142 +/* Media queries for smaller screens */
1143 +@media screen and (max-width: 782px) {
1144 + .mxchat-modal-content {
1145 + width: 90%;
1146 + padding: 10px;
345 1147 }
346 -
347 - .mxchat-modal-actions {
348 - flex-direction: column-reverse;
349 - gap: 10px;
350 - margin-top: 20px;
1148 +
1149 + .mxchat-modal-close {
1150 + top: 10px;
351 1151 }
352 -
353 - .mxchat-modal-actions button {
354 - width: 100%;
355 - padding: 12px;
1152 +
1153 + .mxchat-modal-header {
1154 + margin: -20px -20px 20px -20px;
1155 + padding: 15px 20px;
356 1156 }
357 -
358 - .mxchat-search-form {
359 - flex-direction: column;
360 - width: 100%;
1157 +
1158 + .mxchat-action-types-grid {
1159 + grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
361 1160 }
362 -
363 - .mxchat-intent-filter {
364 - width: 100%;
1161 +
1162 + .mxchat-action-type-categories {
1163 + overflow-x: auto;
1164 + padding-bottom: 10px;
1165 + flex-wrap: nowrap;
365 1166 }
366 1167 }