@topconsultnpm/sdkui-react 6.22.0-dev3.34 → 6.22.0-dev3.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/lib/components/NewComponents/ContextMenu/styles.d.ts +45 -43
  2. package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +67 -60
  3. package/lib/components/base/Styled.d.ts +93 -77
  4. package/lib/components/base/TMCounterBar.d.ts +2 -2
  5. package/lib/components/base/TMCounterContainer.d.ts +2 -1
  6. package/lib/components/base/TMCustomButton.d.ts +1 -1
  7. package/lib/components/base/TMDataGridExportForm.d.ts +2 -1
  8. package/lib/components/base/TMFileManager.d.ts +2 -1
  9. package/lib/components/base/TMFileManagerDataGridView.d.ts +2 -1
  10. package/lib/components/base/TMFileManagerThumbnailItems.d.ts +1 -1
  11. package/lib/components/base/TMFileManagerThumbnailsView.d.ts +1 -1
  12. package/lib/components/base/TMFileManagerUtils.d.ts +4 -6
  13. package/lib/components/base/TMLayout.d.ts +4 -4
  14. package/lib/components/base/TMList.d.ts +2 -1
  15. package/lib/components/base/TMListView.d.ts +1 -1
  16. package/lib/components/base/TMSpinner.d.ts +3 -2
  17. package/lib/components/base/TMTab.d.ts +4 -3
  18. package/lib/components/base/TMTabControl.js +208 -208
  19. package/lib/components/base/TMTooltip.d.ts +1 -1
  20. package/lib/components/base/TMTreeView.d.ts +14 -8
  21. package/lib/components/base/TMUserAvatar.d.ts +2 -1
  22. package/lib/components/base/TMVilViewer.d.ts +2 -1
  23. package/lib/components/base/TMWaitPanel.d.ts +3 -2
  24. package/lib/components/base/waitPanel/TMWaitPanelView.d.ts +2 -1
  25. package/lib/components/choosers/TMDynDataListItemChooser.d.ts +1 -1
  26. package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +2 -1
  27. package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +2 -1
  28. package/lib/components/choosers/TMQuickSearchInfo.d.ts +2 -1
  29. package/lib/components/choosers/TMRelationChooser.d.ts +3 -3
  30. package/lib/components/choosers/TMUserChooser.d.ts +2 -2
  31. package/lib/components/editors/TMEditorStyled.d.ts +20 -42
  32. package/lib/components/editors/TMFormulaEditor.d.ts +1 -1
  33. package/lib/components/editors/TMHtmlContentDisplay.d.ts +2 -1
  34. package/lib/components/editors/TMHtmlEditor.d.ts +2 -1
  35. package/lib/components/editors/TMTreeDropDown.d.ts +1 -1
  36. package/lib/components/features/assistant/TMHelpOnLineChat.js +809 -803
  37. package/lib/components/features/assistant/TMToppyDraggableHelpCenter.d.ts +1 -1
  38. package/lib/components/features/blog/TMBlogCommentForm.d.ts +2 -1
  39. package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +1 -1
  40. package/lib/components/features/documents/TMDcmtIcon.d.ts +2 -1
  41. package/lib/components/features/documents/TMDcmtPreview.d.ts +8 -6
  42. package/lib/components/features/documents/TMDcmtTasks.d.ts +2 -1
  43. package/lib/components/features/documents/TMDragDropOverlay.d.ts +1 -1
  44. package/lib/components/features/documents/TMFileUploader.js +21 -21
  45. package/lib/components/features/documents/TMMasterInfoFields.d.ts +2 -1
  46. package/lib/components/features/documents/TMMergeToPdfForm.d.ts +2 -1
  47. package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.d.ts +2 -1
  48. package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.d.ts +4 -4
  49. package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +2 -1
  50. package/lib/components/features/search/TMMetadataOutputForm.d.ts +2 -1
  51. package/lib/components/features/search/TMMetadataSorterForm.d.ts +2 -1
  52. package/lib/components/features/search/TMSavedQuerySelector.d.ts +2 -2
  53. package/lib/components/features/search/TMSearch.d.ts +2 -1
  54. package/lib/components/features/search/TMSearchQueryPanel.d.ts +9 -3
  55. package/lib/components/features/search/TMSearchResult.js +12 -1
  56. package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +1 -1
  57. package/lib/components/features/search/TMSignatureInfoContent.d.ts +2 -1
  58. package/lib/components/features/search/TMViewHistoryDcmt.d.ts +2 -1
  59. package/lib/components/features/tasks/TMTaskForm.d.ts +1 -1
  60. package/lib/components/features/tasks/TMTaskFormUtils.d.ts +10 -10
  61. package/lib/components/features/tasks/TMTasksAgenda.d.ts +1 -1
  62. package/lib/components/features/tasks/TMTasksCalendar.d.ts +1 -1
  63. package/lib/components/features/tasks/TMTasksHeader.d.ts +1 -1
  64. package/lib/components/features/tasks/TMTasksPanelContent.d.ts +1 -1
  65. package/lib/components/features/tasks/TMTasksUtilsView.d.ts +5 -5
  66. package/lib/components/features/tasks/TMTasksView.d.ts +1 -1
  67. package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +3 -2
  68. package/lib/components/features/workflow/TMWorkflowPopup.d.ts +8 -7
  69. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +3 -1
  70. package/lib/components/forms/Login/ChangePasswordInputs.d.ts +3 -1
  71. package/lib/components/forms/Login/Chooser.d.ts +2 -2
  72. package/lib/components/forms/TMChooserForm.d.ts +2 -1
  73. package/lib/components/forms/TMSaveForm.d.ts +4 -4
  74. package/lib/components/grids/TMBlogAttachments.d.ts +2 -1
  75. package/lib/components/grids/TMBlogHeader.d.ts +1 -1
  76. package/lib/components/grids/TMBlogsPost.d.ts +1 -1
  77. package/lib/components/grids/TMBlogsPostUtils.d.ts +9 -9
  78. package/lib/components/grids/TMValidationItemsList.d.ts +2 -1
  79. package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +2 -1
  80. package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +2 -2
  81. package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +5 -6
  82. package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +2 -2
  83. package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +2 -2
  84. package/lib/components/pages/TMPage.d.ts +1 -1
  85. package/lib/components/query/TMQueryEditor.d.ts +14 -10
  86. package/lib/components/settings/SettingsAppearance.d.ts +2 -1
  87. package/lib/components/sidebar/TMAboutApp.d.ts +2 -1
  88. package/lib/components/sidebar/TMCommandsPanel.d.ts +4 -4
  89. package/lib/components/sidebar/TMHeader.d.ts +3 -3
  90. package/lib/components/viewers/TMDataListItemViewer.d.ts +3 -2
  91. package/lib/components/viewers/TMDataUserIdItemViewer.d.ts +3 -2
  92. package/lib/components/viewers/TMMidViewer.d.ts +2 -2
  93. package/lib/components/viewers/TMTidViewer.d.ts +2 -2
  94. package/lib/helper/TMAppUpdatedModal.d.ts +2 -1
  95. package/lib/helper/TMAppUpdatedModal.js +93 -93
  96. package/lib/helper/TMCommandsContextMenu.d.ts +1 -1
  97. package/lib/helper/TMIcons.d.ts +280 -280
  98. package/lib/helper/TMPdfViewer.d.ts +2 -1
  99. package/lib/helper/TMToppyMessage.d.ts +2 -2
  100. package/lib/helper/TMUtils.d.ts +10 -4
  101. package/lib/helper/helpers.d.ts +1 -1
  102. package/lib/hooks/useInputDialog.d.ts +2 -1
  103. package/lib/services/platform_services.d.ts +3 -2
  104. package/package.json +1 -1
@@ -256,7 +256,12 @@ const MessageFeedback = ({ answer, submittedRating, onSubmit }) => {
256
256
  const [feedback, setFeedback] = useState('');
257
257
  const [copied, setCopied] = useState(false);
258
258
  const copiedTimerRef = useRef();
259
+ const panelRef = useRef(null);
259
260
  useEffect(() => () => clearTimeout(copiedTimerRef.current), []);
261
+ useEffect(() => {
262
+ if (draftRating)
263
+ panelRef.current?.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
264
+ }, [draftRating]);
260
265
  const isSubmitted = submittedRating !== undefined;
261
266
  const activeRating = submittedRating ?? draftRating;
262
267
  const canSubmit = draftRating === 'like' || selectedTags.length > 0 || feedback.trim().length > 0;
@@ -291,7 +296,7 @@ const MessageFeedback = ({ answer, submittedRating, onSubmit }) => {
291
296
  onSubmit(draftRating, selectedTags, feedback.trim());
292
297
  resetDraft();
293
298
  };
294
- return (_jsxs(FeedbackContainer, { children: [_jsxs(FeedbackActions, { children: [_jsx(TMTooltip, { content: "Mi piace", children: _jsx(FeedbackActionButton, { type: "button", $active: activeRating === 'like', $locked: isSubmitted, disabled: isSubmitted && submittedRating !== 'like', "aria-pressed": activeRating === 'like', "aria-label": "Mi piace", onClick: () => onRatingClick('like'), children: _jsx(IconThumbUp, { fontSize: 16 }) }) }), _jsx(TMTooltip, { content: "Non mi piace", children: _jsx(FeedbackActionButton, { type: "button", $active: activeRating === 'dislike', $locked: isSubmitted, disabled: isSubmitted && submittedRating !== 'dislike', "aria-pressed": activeRating === 'dislike', "aria-label": "Non mi piace", onClick: () => onRatingClick('dislike'), children: _jsx(IconThumbUp, { fontSize: 16, style: { transform: 'rotate(180deg)' } }) }) }), _jsx(TMTooltip, { content: copied ? 'Copiato' : 'Copia', children: _jsx(FeedbackActionButton, { type: "button", $active: false, $locked: false, $success: copied, "aria-label": "Copia", onClick: onCopyClick, children: copied ? _jsx(IconCheck, { fontSize: 16 }) : _jsx(IconCopy, { fontSize: 16 }) }) }), isSubmitted && (_jsxs(SentBadge, { role: "status", children: [_jsx(IconCheck, { fontSize: 12 }), "Inviato"] }))] }), !isSubmitted && draftRating && (_jsxs(FeedbackPanel, { children: [_jsxs(FeedbackPanelHeader, { children: [_jsx(FeedbackPanelTitle, { children: FEEDBACK_TITLES[draftRating] }), _jsx(FeedbackCloseButton, { type: "button", "aria-label": "Chiudi", title: "Chiudi", onClick: resetDraft, children: _jsx(IconClose, { fontSize: 16 }) })] }), _jsx(FeedbackLabel, { children: "Era..." }), _jsx(FeedbackTags, { children: FEEDBACK_TAGS[draftRating].map(tag => (_jsx(FeedbackTag, { type: "button", $selected: selectedTags.includes(tag), "aria-pressed": selectedTags.includes(tag), onClick: () => onTagClick(tag), children: tag }, tag))) }), _jsx(FeedbackLabel, { children: "Feedback aggiuntivo" }), _jsx(FeedbackTextarea, { value: feedback, maxLength: FEEDBACK_MAX_LENGTH, placeholder: "Raccontaci di pi\u00F9", onChange: (e) => setFeedback(e.target.value.slice(0, FEEDBACK_MAX_LENGTH)), onKeyDown: (e) => { if (e.key === 'Enter')
299
+ return (_jsxs(FeedbackContainer, { children: [_jsxs(FeedbackActions, { children: [_jsx(TMTooltip, { content: "Mi piace", children: _jsx(FeedbackActionButton, { type: "button", $active: activeRating === 'like', $locked: isSubmitted, disabled: isSubmitted && submittedRating !== 'like', "aria-pressed": activeRating === 'like', "aria-label": "Mi piace", onClick: () => onRatingClick('like'), children: _jsx(IconThumbUp, { fontSize: 16 }) }) }), _jsx(TMTooltip, { content: "Non mi piace", children: _jsx(FeedbackActionButton, { type: "button", $active: activeRating === 'dislike', $locked: isSubmitted, disabled: isSubmitted && submittedRating !== 'dislike', "aria-pressed": activeRating === 'dislike', "aria-label": "Non mi piace", onClick: () => onRatingClick('dislike'), children: _jsx(IconThumbUp, { fontSize: 16, style: { transform: 'rotate(180deg)' } }) }) }), _jsx(TMTooltip, { content: copied ? 'Copiato' : 'Copia', children: _jsx(FeedbackActionButton, { type: "button", $active: false, $locked: false, $success: copied, "aria-label": "Copia", onClick: onCopyClick, children: copied ? _jsx(IconCheck, { fontSize: 16 }) : _jsx(IconCopy, { fontSize: 16 }) }) }), isSubmitted && (_jsxs(SentBadge, { role: "status", children: [_jsx(IconCheck, { fontSize: 12 }), "Inviato"] }))] }), !isSubmitted && draftRating && (_jsxs(FeedbackPanel, { ref: panelRef, children: [_jsxs(FeedbackPanelHeader, { children: [_jsx(FeedbackPanelTitle, { children: FEEDBACK_TITLES[draftRating] }), _jsx(FeedbackCloseButton, { type: "button", "aria-label": "Chiudi", title: "Chiudi", onClick: resetDraft, children: _jsx(IconClose, { fontSize: 16 }) })] }), _jsx(FeedbackLabel, { children: "Era..." }), _jsx(FeedbackTags, { children: FEEDBACK_TAGS[draftRating].map(tag => (_jsx(FeedbackTag, { type: "button", $selected: selectedTags.includes(tag), "aria-pressed": selectedTags.includes(tag), onClick: () => onTagClick(tag), children: tag }, tag))) }), _jsx(FeedbackLabel, { children: "Feedback aggiuntivo" }), _jsx(FeedbackTextarea, { value: feedback, maxLength: FEEDBACK_MAX_LENGTH, placeholder: "Raccontaci di pi\u00F9", onChange: (e) => setFeedback(e.target.value.slice(0, FEEDBACK_MAX_LENGTH)), onKeyDown: (e) => { if (e.key === 'Enter')
295
300
  e.stopPropagation(); } }), _jsxs(FeedbackPanelFooter, { children: [_jsxs(FeedbackCounter, { $full: feedback.length >= FEEDBACK_MAX_LENGTH, children: [feedback.length, "/", FEEDBACK_MAX_LENGTH] }), _jsx(FeedbackSubmitButton, { type: "button", disabled: !canSubmit, onClick: onSubmitClick, children: "Invia" })] })] }, draftRating))] }));
296
301
  };
297
302
  //#endregion
@@ -560,806 +565,807 @@ function IconCheck(props) {
560
565
  }
561
566
  //#endregion
562
567
  //#region Styled Components
563
- const fadeIn = keyframes `
564
- from { opacity: 0; }
565
- to { opacity: 1; }
566
- `;
567
- const slideInRight = keyframes `
568
- from { transform: translateX(100%); }
569
- to { transform: translateX(0); }
570
- `;
571
- const phraseIn = keyframes `
572
- from { opacity: 0; transform: translateY(4px); }
573
- to { opacity: 1; transform: translateY(0); }
574
- `;
575
- const suggestionIn = keyframes `
576
- from { opacity: 0; transform: translateY(6px); }
577
- to { opacity: 1; transform: translateY(0); }
578
- `;
579
- const feedbackIn = keyframes `
580
- from { opacity: 0; transform: translateY(-4px); }
581
- to { opacity: 1; transform: translateY(0); }
582
- `;
583
- const badgeIn = keyframes `
584
- 0% { opacity: 0; transform: scale(0.85); }
585
- 60% { opacity: 1; transform: scale(1.05); }
586
- 100% { opacity: 1; transform: scale(1); }
587
- `;
588
- const dotCycle = keyframes `
589
- 0% { opacity: 0; }
590
- 25%, 75% { opacity: 1; }
591
- 100% { opacity: 0; }
592
- `;
593
- const ToppyHeaderButton = styled.button `
594
- display: flex;
595
- align-items: center;
596
- gap: 8px;
597
- height: 36px;
598
- padding: 0 14px 0 5px;
599
- border-radius: 18px;
600
- border: 1px solid ${TMColors.primary}35;
601
- background: ${TMColors.primary}0d;
602
- color: ${TMColors.primary};
603
- font-size: 13px;
604
- font-weight: 600;
605
- white-space: nowrap;
606
- cursor: pointer;
607
- flex-shrink: 0;
608
- transition: all 0.2s ease;
609
-
610
- &:hover {
611
- background: ${TMColors.primary}1a;
612
- border-color: ${TMColors.primary}66;
613
- transform: translateY(-1px);
614
- box-shadow: 0 4px 12px ${TMColors.primary}25;
615
- }
616
- &:active { transform: translateY(0); }
617
- `;
618
- const ToppyHeaderAvatar = styled.img `
619
- width: 28px;
620
- height: 28px;
621
- border-radius: 50%;
622
- object-fit: contain;
623
- pointer-events: none;
624
- `;
625
- const ToppyHeaderText = styled.span `
626
- line-height: 1;
627
- `;
628
- const Fab = styled.button `
629
- position: fixed;
630
- bottom: 24px;
631
- right: 24px;
632
- width: 60px;
633
- height: 60px;
634
- border-radius: 50%;
635
- border: none;
636
- padding: 0;
637
- cursor: pointer;
638
- display: flex;
639
- align-items: center;
640
- justify-content: center;
641
- background: white;
642
- box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
643
- z-index: 100000;
644
- transition: transform 0.2s ease, box-shadow 0.2s ease;
645
- animation: ${fadeIn} 0.3s ease-out;
646
-
647
- &:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3); }
648
- &:active { transform: scale(0.96); }
649
- `;
650
- const FabAvatar = styled.img `
651
- width: 52px;
652
- height: 52px;
653
- border-radius: 50%;
654
- object-fit: contain;
655
- pointer-events: none;
656
- `;
657
- const Overlay = styled.div `
658
- position: fixed;
659
- inset: 0;
660
- background: rgba(0, 0, 0, 0.45);
661
- z-index: 100000;
662
- animation: ${fadeIn} 0.2s ease-out;
663
- `;
664
- const PanelContainer = styled.div `
665
- position: fixed;
666
- top: 0;
667
- right: 0;
668
- height: 100vh;
669
- width: ${props => props.$width}px;
670
- max-width: 100vw;
671
- background: white;
672
- display: flex;
673
- flex-direction: column;
674
- box-shadow: -8px 0 32px rgba(0, 0, 0, 0.28);
675
- z-index: 100001;
676
- animation: ${slideInRight} 0.25s ease-out;
677
- `;
678
- const ResizeHandle = styled.div `
679
- position: absolute;
680
- left: 0;
681
- top: 0;
682
- bottom: 0;
683
- width: 6px;
684
- cursor: col-resize;
685
- background: transparent;
686
- z-index: 2;
687
- transition: background 0.2s ease;
688
-
689
- &:hover { background: ${TMColors.primary}55; }
690
- `;
691
- const ChatHeader = styled.div `
692
- display: flex;
693
- align-items: center;
694
- justify-content: space-between;
695
- padding: 16px 20px;
696
- background: linear-gradient(135deg, ${TMColors.primary} 0%, ${TMColors.primary}dd 100%);
697
- color: white;
698
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
699
- `;
700
- const HeaderLeft = styled.div `
701
- display: flex;
702
- align-items: center;
703
- gap: 12px;
704
- flex: 1;
705
- min-width: 0;
706
- `;
707
- const HeaderRight = styled.div `
708
- display: flex;
709
- align-items: center;
710
- gap: 8px;
711
- margin-left: 12px;
712
- flex-shrink: 0;
713
- `;
714
- const ToppyAvatar = styled.img `
715
- width: 44px;
716
- height: 44px;
717
- border-radius: 50%;
718
- background: white;
719
- padding: 4px;
720
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
721
- flex-shrink: 0;
722
- object-fit: contain;
723
- `;
724
- const HeaderText = styled.div `
725
- display: flex;
726
- flex-direction: column;
727
- gap: 2px;
728
- min-width: 0;
729
- `;
730
- const HeaderGreeting = styled.h2 `
731
- margin: 0;
732
- font-size: 17px;
733
- font-weight: 600;
734
- color: white;
735
- white-space: nowrap;
736
- overflow: hidden;
737
- text-overflow: ellipsis;
738
- `;
739
- const HeaderQuestion = styled.p `
740
- margin: 0;
741
- font-size: 13px;
742
- color: rgba(255, 255, 255, 0.9);
743
- `;
744
- const HeaderButton = styled.button `
745
- width: 32px;
746
- height: 32px;
747
- border-radius: 50%;
748
- background: rgba(255, 255, 255, 0.2);
749
- border: 1px solid rgba(255, 255, 255, 0.3);
750
- color: white;
751
- cursor: pointer;
752
- display: flex;
753
- align-items: center;
754
- justify-content: center;
755
- flex-shrink: 0;
756
- transition: all 0.2s ease;
757
-
758
- &:hover:not(:disabled) { background: rgba(255, 255, 255, 0.3); transform: scale(1.05); }
759
- &:active:not(:disabled) { transform: scale(0.95); }
760
- &:disabled { opacity: 0.45; cursor: default; }
761
- `;
762
- const ChatBody = styled.div `
763
- flex: 1;
764
- padding: 20px;
765
- overflow-y: auto;
766
- background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
767
- `;
768
- const WelcomeMessage = styled.div `
769
- display: flex;
770
- gap: 16px;
771
- padding: 18px;
772
- background: white;
773
- border-radius: 12px;
774
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
775
- border-left: 4px solid ${TMColors.primary};
776
- animation: ${fadeIn} 0.5s ease-out;
777
- `;
778
- const WelcomeIcon = styled.div `
779
- font-size: 30px;
780
- flex-shrink: 0;
781
- `;
782
- const WelcomeText = styled.p `
783
- margin: 0;
784
- font-size: 14px;
785
- line-height: 1.6;
786
- color: #242424;
787
-
788
- strong { color: ${TMColors.primary}; font-weight: 600; }
789
- `;
790
- const MessageBubble = styled.div `
791
- display: flex;
792
- gap: 10px;
793
- margin-bottom: 16px;
794
- align-items: flex-start;
795
- justify-content: ${props => (props.$isUser ? 'flex-end' : 'flex-start')};
796
- animation: ${fadeIn} 0.3s ease-out;
797
- `;
798
- const BotAvatar = styled.img `
799
- width: 32px;
800
- height: 32px;
801
- border-radius: 50%;
802
- background: white;
803
- padding: 2px;
804
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
805
- flex-shrink: 0;
806
- object-fit: contain;
807
- `;
808
- const MessageContent = styled.div `
809
- max-width: 80%;
810
- padding: 10px 14px;
811
- border-radius: 12px;
812
- font-size: 14px;
813
- line-height: 1.5;
814
- background: ${props => (props.$isUser ? TMColors.primary : '#f0f2f5')};
815
- color: ${props => (props.$isUser ? 'white' : '#242424')};
816
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
817
- word-wrap: break-word;
818
- overflow-wrap: anywhere;
819
- white-space: ${props => (props.$isUser ? 'pre-wrap' : 'normal')};
820
- border-bottom-${props => (props.$isUser ? 'right' : 'left')}-radius: 4px;
821
- `;
822
- const BotMessageColumn = styled.div `
823
- display: flex;
824
- flex-direction: column;
825
- align-items: flex-start;
826
- width: 80%;
827
- min-width: 0;
828
- `;
829
- const BotMessageContent = styled(MessageContent) `
830
- max-width: 100%;
831
- `;
832
- const FeedbackContainer = styled.div `
833
- width: 100%;
834
- margin-top: 4px;
835
- `;
836
- const FeedbackActions = styled.div `
837
- display: flex;
838
- align-items: center;
839
- gap: 2px;
840
- `;
841
- const FeedbackActionButton = styled.button `
842
- display: flex;
843
- align-items: center;
844
- justify-content: center;
845
- width: 28px;
846
- height: 28px;
847
- padding: 0;
848
- border-radius: 8px;
849
- border: 1px solid ${props => (props.$active ? `${TMColors.primary}55` : 'transparent')};
850
- background: ${props => (props.$active ? `${TMColors.primary}12` : 'transparent')};
851
- color: ${props => (props.$success ? '#2e7d32' : props.$active ? TMColors.primary : '#8a8f98')};
852
- cursor: ${props => (props.$locked ? 'default' : 'pointer')};
853
- transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
854
-
855
- &:hover:not(:disabled) {
856
- background: ${props => (props.$active ? `${TMColors.primary}12` : 'rgba(0, 0, 0, 0.05)')};
857
- color: ${props => (props.$success ? '#2e7d32' : props.$active ? TMColors.primary : '#242424')};
858
- }
859
-
860
- &:focus-visible {
861
- outline: 2px solid ${TMColors.primary}55;
862
- outline-offset: 1px;
863
- }
864
-
865
- &:disabled {
866
- opacity: 0.35;
867
- cursor: default;
868
- }
869
- `;
870
- const SentBadge = styled.span `
871
- display: inline-flex;
872
- align-items: center;
873
- gap: 4px;
874
- margin-left: 6px;
875
- padding: 3px 9px 3px 7px;
876
- border-radius: 999px;
877
- background: #e8f5e9;
878
- border: 1px solid #c8e6c9;
879
- color: #2e7d32;
880
- font-size: 11px;
881
- font-weight: 600;
882
- line-height: 1;
883
- letter-spacing: 0.02em;
884
- animation: ${badgeIn} 0.35s ease-out;
885
-
886
- @media (prefers-reduced-motion: reduce) {
887
- animation: none;
888
- }
889
- `;
890
- const FeedbackPanel = styled.div `
891
- margin-top: 6px;
892
- padding: 14px 16px;
893
- border: 1px solid #e5e7eb;
894
- border-radius: 12px;
895
- background: white;
896
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
897
- animation: ${feedbackIn} 0.2s ease-out;
898
- `;
899
- const FeedbackPanelHeader = styled.div `
900
- display: flex;
901
- align-items: flex-start;
902
- justify-content: space-between;
903
- gap: 12px;
904
- margin-bottom: 10px;
905
- `;
906
- const FeedbackPanelTitle = styled.div `
907
- font-size: 14px;
908
- font-weight: 600;
909
- color: #242424;
910
- line-height: 1.35;
911
- `;
912
- const FeedbackCloseButton = styled.button `
913
- display: flex;
914
- align-items: center;
915
- justify-content: center;
916
- width: 24px;
917
- height: 24px;
918
- padding: 0;
919
- border: none;
920
- border-radius: 6px;
921
- background: transparent;
922
- color: #6b7280;
923
- cursor: pointer;
924
- flex-shrink: 0;
925
- transition: background 0.2s ease, color 0.2s ease;
926
-
927
- &:hover { background: rgba(0, 0, 0, 0.06); color: #242424; }
928
- `;
929
- const FeedbackLabel = styled.div `
930
- margin: 0 0 8px 0;
931
- font-size: 12px;
932
- font-weight: 600;
933
- color: #6b7280;
934
- `;
935
- const FeedbackTags = styled.div `
936
- display: flex;
937
- flex-wrap: wrap;
938
- gap: 8px;
939
- margin-bottom: 14px;
940
- `;
941
- const FeedbackTag = styled.button `
942
- padding: 6px 12px;
943
- border-radius: 8px;
944
- border: 1px solid ${props => (props.$selected ? TMColors.primary : '#dcdfe3')};
945
- background: ${props => (props.$selected ? `${TMColors.primary}10` : 'white')};
946
- color: ${props => (props.$selected ? TMColors.primary : '#242424')};
947
- font-family: inherit;
948
- font-size: 13px;
949
- font-weight: ${props => (props.$selected ? 600 : 400)};
950
- line-height: 1.2;
951
- cursor: pointer;
952
- transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
953
-
954
- &:hover { border-color: ${TMColors.primary}88; }
955
-
956
- &:focus-visible {
957
- outline: 2px solid ${TMColors.primary}55;
958
- outline-offset: 1px;
959
- }
960
- `;
961
- const FeedbackTextarea = styled.textarea `
962
- display: block;
963
- width: 100%;
964
- min-height: 70px;
965
- padding: 9px 11px;
966
- border: 1px solid #dcdfe3;
967
- border-radius: 8px;
968
- font-family: inherit;
969
- font-size: 13px;
970
- line-height: 1.45;
971
- color: #242424;
972
- background: white;
973
- resize: none;
974
- box-sizing: border-box;
975
- transition: border-color 0.2s ease, box-shadow 0.2s ease;
976
-
977
- &::placeholder { color: #9ca3af; }
978
-
979
- &:focus {
980
- outline: none;
981
- border-color: ${TMColors.primary};
982
- box-shadow: 0 0 0 3px ${TMColors.primary}15;
983
- }
984
- `;
985
- const FeedbackPanelFooter = styled.div `
986
- display: flex;
987
- align-items: center;
988
- justify-content: space-between;
989
- margin-top: 10px;
990
- `;
991
- const FeedbackCounter = styled.span `
992
- font-size: 11px;
993
- color: ${props => (props.$full ? '#c62828' : '#9ca3af')};
994
- font-variant-numeric: tabular-nums;
995
- `;
996
- const FeedbackSubmitButton = styled.button `
997
- padding: 7px 18px;
998
- border: none;
999
- border-radius: 8px;
1000
- background: ${TMColors.primary};
1001
- color: white;
1002
- font-family: inherit;
1003
- font-size: 13px;
1004
- font-weight: 600;
1005
- cursor: pointer;
1006
- transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
1007
-
1008
- &:hover:not(:disabled) {
1009
- box-shadow: 0 4px 12px ${TMColors.primary}40;
1010
- transform: translateY(-1px);
1011
- }
1012
-
1013
- &:active:not(:disabled) { transform: translateY(0); }
1014
-
1015
- &:disabled {
1016
- opacity: 0.4;
1017
- cursor: default;
1018
- }
1019
- `;
1020
- const MarkdownContent = styled.div `
1021
- & > *:first-child { margin-top: 0; }
1022
- & > *:last-child { margin-bottom: 0; }
1023
-
1024
- a { color: ${TMColors.primary}; text-decoration: underline; }
1025
- strong { font-weight: 600; }
1026
- `;
1027
- const MdParagraph = styled.p `
1028
- margin: 0 0 8px 0;
1029
- line-height: 1.55;
1030
- `;
1031
- const MdHeading = styled.div `
1032
- margin: 12px 0 6px 0;
1033
- font-weight: 700;
1034
- line-height: 1.3;
1035
- font-size: ${props => `${Math.max(14, 20 - (props.$level - 1) * 2)}px`};
1036
- `;
1037
- const MdUl = styled.ul `
1038
- margin: 4px 0 8px 0;
1039
- padding-left: 20px;
1040
- li { margin: 2px 0; line-height: 1.5; }
1041
- `;
1042
- const MdOl = styled.ol `
1043
- margin: 4px 0 8px 0;
1044
- padding-left: 22px;
1045
- li { margin: 2px 0; line-height: 1.5; }
1046
- `;
1047
- const MdCode = styled.code `
1048
- background: rgba(0, 0, 0, 0.06);
1049
- padding: 1px 5px;
1050
- border-radius: 4px;
1051
- font-family: 'Consolas', 'Monaco', monospace;
1052
- font-size: 0.9em;
1053
- `;
1054
- const MdPre = styled.pre `
1055
- background: rgba(0, 0, 0, 0.06);
1056
- padding: 10px 12px;
1057
- border-radius: 8px;
1058
- overflow-x: auto;
1059
- margin: 8px 0;
1060
- font-family: 'Consolas', 'Monaco', monospace;
1061
- font-size: 0.88em;
1062
- white-space: pre;
1063
- `;
1064
- const MdTableWrapper = styled.div `
1065
- margin: 8px 0;
1066
- max-width: 100%;
1067
- overflow-x: auto;
1068
- border: 1px solid #dcdfe3;
1069
- border-radius: 8px;
1070
-
1071
- &::-webkit-scrollbar { height: 6px; }
1072
- &::-webkit-scrollbar-track { background: transparent; }
1073
- &::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
1074
- &::-webkit-scrollbar-thumb:hover { background: #999; }
1075
- `;
1076
- const MdTable = styled.table `
1077
- border-collapse: collapse;
1078
- width: 100%;
1079
- font-size: 0.92em;
1080
- background: white;
1081
- `;
1082
- const MdTh = styled.th `
1083
- padding: 7px 10px;
1084
- background: ${TMColors.primary}14;
1085
- color: #242424;
1086
- font-weight: 600;
1087
- text-align: ${props => props.$align ?? 'left'};
1088
- border-bottom: 1px solid #dcdfe3;
1089
- white-space: nowrap;
1090
-
1091
- &:not(:last-child) { border-right: 1px solid #e6e8eb; }
1092
- `;
1093
- const MdTd = styled.td `
1094
- padding: 7px 10px;
1095
- text-align: ${props => props.$align ?? 'left'};
1096
- vertical-align: top;
1097
- border-top: 1px solid #eceef0;
1098
-
1099
- &:not(:last-child) { border-right: 1px solid #eceef0; }
1100
-
1101
- tr:nth-child(even) & { background: #fafbfc; }
1102
- `;
1103
- const MdBlockquote = styled.blockquote `
1104
- margin: 8px 0;
1105
- padding: 6px 12px;
1106
- border-left: 3px solid ${TMColors.primary}66;
1107
- background: ${TMColors.primary}0a;
1108
- border-radius: 0 6px 6px 0;
1109
- color: #444;
1110
-
1111
- & > *:first-child { margin-top: 0; }
1112
- & > *:last-child { margin-bottom: 0; }
1113
- `;
1114
- const MdHr = styled.hr `
1115
- border: none;
1116
- border-top: 1px solid #dcdfe3;
1117
- margin: 12px 0;
1118
- `;
1119
- const ThinkingIndicator = styled.div `
1120
- display: flex;
1121
- align-items: center;
1122
- gap: 10px;
1123
- max-width: 80%;
1124
- padding: 7px 12px;
1125
- background: #f0f2f5;
1126
- border-radius: 12px;
1127
- border-bottom-left-radius: 4px;
1128
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
1129
- `;
1130
- const ThinkingCaption = styled.div `
1131
- display: flex;
1132
- flex-direction: column;
1133
- align-items: flex-start;
1134
- gap: 0;
1135
- min-width: 0;
1136
- `;
1137
- const ThinkingPhrase = styled.span `
1138
- display: inline-flex;
1139
- align-items: center;
1140
- min-width: 0;
1141
- font-size: 12px;
1142
- font-style: italic;
1143
- line-height: 1.15;
1144
- color: #6b7280;
1145
- animation: ${phraseIn} 0.25s ease-out;
1146
- `;
1147
- const ThinkingDots = styled.span `
1148
- display: inline-flex;
1149
- width: 12px;
1150
- flex-shrink: 0;
1151
- `;
1152
- const ThinkingDot = styled.span `
1153
- animation: ${dotCycle} 1.2s linear infinite;
1154
- animation-delay: ${props => props.$delay}s;
1155
- will-change: opacity;
1156
-
1157
- @media (prefers-reduced-motion: reduce) {
1158
- animation: none;
1159
- opacity: 1;
1160
- }
1161
- `;
1162
- const ThinkingCounter = styled.span `
1163
- margin-top: 2px;
1164
- font-size: 10px;
1165
- font-weight: 600;
1166
- line-height: 1.1;
1167
- letter-spacing: 0.02em;
1168
- color: ${TMColors.primary}b3;
1169
- font-variant-numeric: tabular-nums;
1170
- font-feature-settings: 'tnum';
1171
- opacity: ${props => (props.$visible ? 1 : 0)};
1172
- transition: opacity 0.3s ease;
1173
- `;
1174
- const ChatFooter = styled.div `
1175
- padding: 16px 20px;
1176
- background: white;
1177
- border-top: 1px solid #e1e5e9;
1178
- box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
1179
- `;
1180
- const SuggestionsSection = styled.div `
1181
- margin-bottom: 14px;
1182
- `;
1183
- const SuggestionsTitle = styled.div `
1184
- display: flex;
1185
- align-items: center;
1186
- gap: 6px;
1187
- margin: 0 0 8px 2px;
1188
- font-size: 11px;
1189
- font-weight: 600;
1190
- letter-spacing: 0.06em;
1191
- text-transform: uppercase;
1192
- color: #6b7280;
1193
-
1194
- svg { color: ${TMColors.primary}; }
1195
- `;
1196
- const SuggestionsGrid = styled.div `
1197
- display: grid;
1198
- grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
1199
- gap: 8px;
1200
- `;
1201
- const SuggestionIcon = styled.span `
1202
- display: flex;
1203
- align-items: center;
1204
- justify-content: center;
1205
- width: 28px;
1206
- height: 28px;
1207
- border-radius: 8px;
1208
- flex-shrink: 0;
1209
- background: ${TMColors.primary}14;
1210
- color: ${TMColors.primary};
1211
- transition: background 0.2s ease, color 0.2s ease;
1212
- `;
1213
- const SuggestionText = styled.span `
1214
- flex: 1;
1215
- min-width: 0;
1216
- display: -webkit-box;
1217
- -webkit-line-clamp: 2;
1218
- -webkit-box-orient: vertical;
1219
- overflow: hidden;
1220
- `;
1221
- const SuggestionArrow = styled.span `
1222
- display: flex;
1223
- flex-shrink: 0;
1224
- color: ${TMColors.primary};
1225
- opacity: 0;
1226
- transform: translateX(-4px);
1227
- transition: opacity 0.2s ease, transform 0.2s ease;
1228
- `;
1229
- const SuggestionCard = styled.button `
1230
- display: flex;
1231
- align-items: center;
1232
- gap: 10px;
1233
- width: 100%;
1234
- min-height: 52px;
1235
- padding: 9px 12px;
1236
- border: 1px solid ${TMColors.primary}22;
1237
- border-radius: 12px;
1238
- background: linear-gradient(135deg, #ffffff 0%, ${TMColors.primary}08 100%);
1239
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
1240
- color: #242424;
1241
- font-family: inherit;
1242
- font-size: 13px;
1243
- line-height: 1.35;
1244
- text-align: left;
1245
- cursor: pointer;
1246
- opacity: 0;
1247
- animation: ${suggestionIn} 0.35s ease-out forwards;
1248
- animation-delay: ${props => props.$index * 70}ms;
1249
- transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
1250
-
1251
- &:hover, &:focus-visible {
1252
- border-color: ${TMColors.primary}66;
1253
- background: ${TMColors.primary}0d;
1254
- box-shadow: 0 4px 14px ${TMColors.primary}1f;
1255
- transform: translateY(-1px);
1256
- }
1257
-
1258
- &:hover ${SuggestionIcon}, &:focus-visible ${SuggestionIcon} {
1259
- background: ${TMColors.primary};
1260
- color: white;
1261
- }
1262
-
1263
- &:hover ${SuggestionArrow}, &:focus-visible ${SuggestionArrow} {
1264
- opacity: 1;
1265
- transform: translateX(0);
1266
- }
1267
-
1268
- &:focus-visible {
1269
- outline: 2px solid ${TMColors.primary}55;
1270
- outline-offset: 2px;
1271
- }
1272
-
1273
- &:active {
1274
- transform: translateY(0) scale(0.99);
1275
- }
1276
-
1277
- @media (prefers-reduced-motion: reduce) {
1278
- animation: none;
1279
- opacity: 1;
1280
- transition: none;
1281
- }
1282
- `;
1283
- const FooterHint = styled.p `
1284
- margin: 6px 0 0 0;
1285
- font-size: 11px;
1286
- color: #999;
1287
- text-align: center;
1288
- `;
1289
- const ChatInputWrapper = styled.div `
1290
- position: relative;
1291
- flex: 1;
1292
- display: flex;
1293
- `;
1294
- const ChatInputTextarea = styled.textarea `
1295
- width: 100%;
1296
- padding: 14px 60px 14px 16px;
1297
- border: 2px solid #e1e5e9;
1298
- border-radius: 12px;
1299
- font-size: 15px;
1300
- font-family: inherit;
1301
- line-height: 1.5;
1302
- transition: all 0.2s ease;
1303
- background: #f8f9fa;
1304
- resize: none;
1305
- min-height: 100px;
1306
- max-height: 120px;
1307
- overflow-y: hidden;
1308
-
1309
- &:focus {
1310
- outline: none;
1311
- border-color: ${TMColors.primary};
1312
- background: white;
1313
- box-shadow: 0 0 0 4px ${TMColors.primary}15;
1314
- }
1315
-
1316
- &::placeholder {
1317
- color: #999;
1318
- }
1319
-
1320
- &::-webkit-scrollbar {
1321
- width: 6px;
1322
- }
1323
-
1324
- &::-webkit-scrollbar-track {
1325
- background: transparent;
1326
- }
1327
-
1328
- &::-webkit-scrollbar-thumb {
1329
- background: #ccc;
1330
- border-radius: 3px;
1331
- }
1332
-
1333
- &::-webkit-scrollbar-thumb:hover {
1334
- background: #999;
1335
- }
1336
- `;
1337
- const InlineSendButton = styled.button `
1338
- position: absolute;
1339
- bottom: 8px;
1340
- right: 8px;
1341
- width: 40px;
1342
- height: 40px;
1343
- border-radius: 10px;
1344
- background: ${props => props.$disabled ? '#ccc' : '#4caf50'};
1345
- border: none;
1346
- color: white;
1347
- cursor: ${props => props.$disabled ? 'default' : 'pointer'};
1348
- display: flex;
1349
- align-items: center;
1350
- justify-content: center;
1351
- transition: all 0.2s ease;
1352
-
1353
- &:hover:not(:disabled) {
1354
- background: #45a049;
1355
- transform: scale(1.05);
1356
- }
1357
-
1358
- &:active:not(:disabled) {
1359
- transform: scale(0.95);
1360
- }
1361
-
1362
- &:disabled {
1363
- opacity: 0.6;
1364
- }
568
+ const fadeIn = keyframes `
569
+ from { opacity: 0; }
570
+ to { opacity: 1; }
571
+ `;
572
+ const slideInRight = keyframes `
573
+ from { transform: translateX(100%); }
574
+ to { transform: translateX(0); }
575
+ `;
576
+ const phraseIn = keyframes `
577
+ from { opacity: 0; transform: translateY(4px); }
578
+ to { opacity: 1; transform: translateY(0); }
579
+ `;
580
+ const suggestionIn = keyframes `
581
+ from { opacity: 0; transform: translateY(6px); }
582
+ to { opacity: 1; transform: translateY(0); }
583
+ `;
584
+ const feedbackIn = keyframes `
585
+ from { opacity: 0; transform: translateY(-4px); }
586
+ to { opacity: 1; transform: translateY(0); }
587
+ `;
588
+ const badgeIn = keyframes `
589
+ 0% { opacity: 0; transform: scale(0.85); }
590
+ 60% { opacity: 1; transform: scale(1.05); }
591
+ 100% { opacity: 1; transform: scale(1); }
592
+ `;
593
+ const dotCycle = keyframes `
594
+ 0% { opacity: 0; }
595
+ 25%, 75% { opacity: 1; }
596
+ 100% { opacity: 0; }
597
+ `;
598
+ const ToppyHeaderButton = styled.button `
599
+ display: flex;
600
+ align-items: center;
601
+ gap: 8px;
602
+ height: 36px;
603
+ padding: 0 14px 0 5px;
604
+ border-radius: 18px;
605
+ border: 1px solid ${TMColors.primary}35;
606
+ background: ${TMColors.primary}0d;
607
+ color: ${TMColors.primary};
608
+ font-size: 13px;
609
+ font-weight: 600;
610
+ white-space: nowrap;
611
+ cursor: pointer;
612
+ flex-shrink: 0;
613
+ transition: all 0.2s ease;
614
+
615
+ &:hover {
616
+ background: ${TMColors.primary}1a;
617
+ border-color: ${TMColors.primary}66;
618
+ transform: translateY(-1px);
619
+ box-shadow: 0 4px 12px ${TMColors.primary}25;
620
+ }
621
+ &:active { transform: translateY(0); }
622
+ `;
623
+ const ToppyHeaderAvatar = styled.img `
624
+ width: 28px;
625
+ height: 28px;
626
+ border-radius: 50%;
627
+ object-fit: contain;
628
+ pointer-events: none;
629
+ `;
630
+ const ToppyHeaderText = styled.span `
631
+ line-height: 1;
632
+ `;
633
+ const Fab = styled.button `
634
+ position: fixed;
635
+ bottom: 24px;
636
+ right: 24px;
637
+ width: 60px;
638
+ height: 60px;
639
+ border-radius: 50%;
640
+ border: none;
641
+ padding: 0;
642
+ cursor: pointer;
643
+ display: flex;
644
+ align-items: center;
645
+ justify-content: center;
646
+ background: white;
647
+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
648
+ z-index: 100000;
649
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
650
+ animation: ${fadeIn} 0.3s ease-out;
651
+
652
+ &:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3); }
653
+ &:active { transform: scale(0.96); }
654
+ `;
655
+ const FabAvatar = styled.img `
656
+ width: 52px;
657
+ height: 52px;
658
+ border-radius: 50%;
659
+ object-fit: contain;
660
+ pointer-events: none;
661
+ `;
662
+ const Overlay = styled.div `
663
+ position: fixed;
664
+ inset: 0;
665
+ background: rgba(0, 0, 0, 0.45);
666
+ z-index: 100000;
667
+ animation: ${fadeIn} 0.2s ease-out;
668
+ `;
669
+ const PanelContainer = styled.div `
670
+ position: fixed;
671
+ top: 0;
672
+ right: 0;
673
+ height: 100vh;
674
+ width: ${props => props.$width}px;
675
+ max-width: 100vw;
676
+ background: white;
677
+ display: flex;
678
+ flex-direction: column;
679
+ box-shadow: -8px 0 32px rgba(0, 0, 0, 0.28);
680
+ z-index: 100001;
681
+ animation: ${slideInRight} 0.25s ease-out;
682
+ `;
683
+ const ResizeHandle = styled.div `
684
+ position: absolute;
685
+ left: 0;
686
+ top: 0;
687
+ bottom: 0;
688
+ width: 6px;
689
+ cursor: col-resize;
690
+ background: transparent;
691
+ z-index: 2;
692
+ transition: background 0.2s ease;
693
+
694
+ &:hover { background: ${TMColors.primary}55; }
695
+ `;
696
+ const ChatHeader = styled.div `
697
+ display: flex;
698
+ align-items: center;
699
+ justify-content: space-between;
700
+ padding: 16px 20px;
701
+ background: linear-gradient(135deg, ${TMColors.primary} 0%, ${TMColors.primary}dd 100%);
702
+ color: white;
703
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
704
+ `;
705
+ const HeaderLeft = styled.div `
706
+ display: flex;
707
+ align-items: center;
708
+ gap: 12px;
709
+ flex: 1;
710
+ min-width: 0;
711
+ `;
712
+ const HeaderRight = styled.div `
713
+ display: flex;
714
+ align-items: center;
715
+ gap: 8px;
716
+ margin-left: 12px;
717
+ flex-shrink: 0;
718
+ `;
719
+ const ToppyAvatar = styled.img `
720
+ width: 44px;
721
+ height: 44px;
722
+ border-radius: 50%;
723
+ background: white;
724
+ padding: 4px;
725
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
726
+ flex-shrink: 0;
727
+ object-fit: contain;
728
+ `;
729
+ const HeaderText = styled.div `
730
+ display: flex;
731
+ flex-direction: column;
732
+ gap: 2px;
733
+ min-width: 0;
734
+ `;
735
+ const HeaderGreeting = styled.h2 `
736
+ margin: 0;
737
+ font-size: 17px;
738
+ font-weight: 600;
739
+ color: white;
740
+ white-space: nowrap;
741
+ overflow: hidden;
742
+ text-overflow: ellipsis;
743
+ `;
744
+ const HeaderQuestion = styled.p `
745
+ margin: 0;
746
+ font-size: 13px;
747
+ color: rgba(255, 255, 255, 0.9);
748
+ `;
749
+ const HeaderButton = styled.button `
750
+ width: 32px;
751
+ height: 32px;
752
+ border-radius: 50%;
753
+ background: rgba(255, 255, 255, 0.2);
754
+ border: 1px solid rgba(255, 255, 255, 0.3);
755
+ color: white;
756
+ cursor: pointer;
757
+ display: flex;
758
+ align-items: center;
759
+ justify-content: center;
760
+ flex-shrink: 0;
761
+ transition: all 0.2s ease;
762
+
763
+ &:hover:not(:disabled) { background: rgba(255, 255, 255, 0.3); transform: scale(1.05); }
764
+ &:active:not(:disabled) { transform: scale(0.95); }
765
+ &:disabled { opacity: 0.45; cursor: default; }
766
+ `;
767
+ const ChatBody = styled.div `
768
+ flex: 1;
769
+ padding: 20px;
770
+ overflow-y: auto;
771
+ background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
772
+ `;
773
+ const WelcomeMessage = styled.div `
774
+ display: flex;
775
+ gap: 16px;
776
+ padding: 18px;
777
+ background: white;
778
+ border-radius: 12px;
779
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
780
+ border-left: 4px solid ${TMColors.primary};
781
+ animation: ${fadeIn} 0.5s ease-out;
782
+ `;
783
+ const WelcomeIcon = styled.div `
784
+ font-size: 30px;
785
+ flex-shrink: 0;
786
+ `;
787
+ const WelcomeText = styled.p `
788
+ margin: 0;
789
+ font-size: 14px;
790
+ line-height: 1.6;
791
+ color: #242424;
792
+
793
+ strong { color: ${TMColors.primary}; font-weight: 600; }
794
+ `;
795
+ const MessageBubble = styled.div `
796
+ display: flex;
797
+ gap: 10px;
798
+ margin-bottom: 16px;
799
+ align-items: flex-start;
800
+ justify-content: ${props => (props.$isUser ? 'flex-end' : 'flex-start')};
801
+ animation: ${fadeIn} 0.3s ease-out;
802
+ `;
803
+ const BotAvatar = styled.img `
804
+ width: 32px;
805
+ height: 32px;
806
+ border-radius: 50%;
807
+ background: white;
808
+ padding: 2px;
809
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
810
+ flex-shrink: 0;
811
+ object-fit: contain;
812
+ `;
813
+ const MessageContent = styled.div `
814
+ max-width: 80%;
815
+ padding: 10px 14px;
816
+ border-radius: 12px;
817
+ font-size: 14px;
818
+ line-height: 1.5;
819
+ background: ${props => (props.$isUser ? TMColors.primary : '#f0f2f5')};
820
+ color: ${props => (props.$isUser ? 'white' : '#242424')};
821
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
822
+ word-wrap: break-word;
823
+ overflow-wrap: anywhere;
824
+ white-space: ${props => (props.$isUser ? 'pre-wrap' : 'normal')};
825
+ border-bottom-${props => (props.$isUser ? 'right' : 'left')}-radius: 4px;
826
+ `;
827
+ const BotMessageColumn = styled.div `
828
+ display: flex;
829
+ flex-direction: column;
830
+ align-items: flex-start;
831
+ width: 80%;
832
+ min-width: 0;
833
+ `;
834
+ const BotMessageContent = styled(MessageContent) `
835
+ max-width: 100%;
836
+ `;
837
+ const FeedbackContainer = styled.div `
838
+ width: 100%;
839
+ margin-top: 4px;
840
+ `;
841
+ const FeedbackActions = styled.div `
842
+ display: flex;
843
+ align-items: center;
844
+ gap: 2px;
845
+ `;
846
+ const FeedbackActionButton = styled.button `
847
+ display: flex;
848
+ align-items: center;
849
+ justify-content: center;
850
+ width: 28px;
851
+ height: 28px;
852
+ padding: 0;
853
+ border-radius: 8px;
854
+ border: 1px solid ${props => (props.$active ? `${TMColors.primary}55` : 'transparent')};
855
+ background: ${props => (props.$active ? `${TMColors.primary}12` : 'transparent')};
856
+ color: ${props => (props.$success ? '#2e7d32' : props.$active ? TMColors.primary : '#8a8f98')};
857
+ cursor: ${props => (props.$locked ? 'default' : 'pointer')};
858
+ transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
859
+
860
+ &:hover:not(:disabled) {
861
+ background: ${props => (props.$active ? `${TMColors.primary}12` : 'rgba(0, 0, 0, 0.05)')};
862
+ color: ${props => (props.$success ? '#2e7d32' : props.$active ? TMColors.primary : '#242424')};
863
+ }
864
+
865
+ &:focus-visible {
866
+ outline: 2px solid ${TMColors.primary}55;
867
+ outline-offset: 1px;
868
+ }
869
+
870
+ &:disabled {
871
+ opacity: 0.35;
872
+ cursor: default;
873
+ }
874
+ `;
875
+ const SentBadge = styled.span `
876
+ display: inline-flex;
877
+ align-items: center;
878
+ gap: 4px;
879
+ margin-left: 6px;
880
+ padding: 3px 9px 3px 7px;
881
+ border-radius: 999px;
882
+ background: #e8f5e9;
883
+ border: 1px solid #c8e6c9;
884
+ color: #2e7d32;
885
+ font-size: 11px;
886
+ font-weight: 600;
887
+ line-height: 1;
888
+ letter-spacing: 0.02em;
889
+ animation: ${badgeIn} 0.35s ease-out;
890
+
891
+ @media (prefers-reduced-motion: reduce) {
892
+ animation: none;
893
+ }
894
+ `;
895
+ const FeedbackPanel = styled.div `
896
+ margin-top: 6px;
897
+ padding: 14px 16px;
898
+ border: 1px solid #e5e7eb;
899
+ border-radius: 12px;
900
+ background: white;
901
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
902
+ scroll-margin: 12px;
903
+ animation: ${feedbackIn} 0.2s ease-out;
904
+ `;
905
+ const FeedbackPanelHeader = styled.div `
906
+ display: flex;
907
+ align-items: flex-start;
908
+ justify-content: space-between;
909
+ gap: 12px;
910
+ margin-bottom: 10px;
911
+ `;
912
+ const FeedbackPanelTitle = styled.div `
913
+ font-size: 14px;
914
+ font-weight: 600;
915
+ color: #242424;
916
+ line-height: 1.35;
917
+ `;
918
+ const FeedbackCloseButton = styled.button `
919
+ display: flex;
920
+ align-items: center;
921
+ justify-content: center;
922
+ width: 24px;
923
+ height: 24px;
924
+ padding: 0;
925
+ border: none;
926
+ border-radius: 6px;
927
+ background: transparent;
928
+ color: #6b7280;
929
+ cursor: pointer;
930
+ flex-shrink: 0;
931
+ transition: background 0.2s ease, color 0.2s ease;
932
+
933
+ &:hover { background: rgba(0, 0, 0, 0.06); color: #242424; }
934
+ `;
935
+ const FeedbackLabel = styled.div `
936
+ margin: 0 0 8px 0;
937
+ font-size: 12px;
938
+ font-weight: 600;
939
+ color: #6b7280;
940
+ `;
941
+ const FeedbackTags = styled.div `
942
+ display: flex;
943
+ flex-wrap: wrap;
944
+ gap: 8px;
945
+ margin-bottom: 14px;
946
+ `;
947
+ const FeedbackTag = styled.button `
948
+ padding: 6px 12px;
949
+ border-radius: 8px;
950
+ border: 1px solid ${props => (props.$selected ? TMColors.primary : '#dcdfe3')};
951
+ background: ${props => (props.$selected ? `${TMColors.primary}10` : 'white')};
952
+ color: ${props => (props.$selected ? TMColors.primary : '#242424')};
953
+ font-family: inherit;
954
+ font-size: 13px;
955
+ font-weight: ${props => (props.$selected ? 600 : 400)};
956
+ line-height: 1.2;
957
+ cursor: pointer;
958
+ transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
959
+
960
+ &:hover { border-color: ${TMColors.primary}88; }
961
+
962
+ &:focus-visible {
963
+ outline: 2px solid ${TMColors.primary}55;
964
+ outline-offset: 1px;
965
+ }
966
+ `;
967
+ const FeedbackTextarea = styled.textarea `
968
+ display: block;
969
+ width: 100%;
970
+ min-height: 70px;
971
+ padding: 9px 11px;
972
+ border: 1px solid #dcdfe3;
973
+ border-radius: 8px;
974
+ font-family: inherit;
975
+ font-size: 13px;
976
+ line-height: 1.45;
977
+ color: #242424;
978
+ background: white;
979
+ resize: none;
980
+ box-sizing: border-box;
981
+ transition: border-color 0.2s ease, box-shadow 0.2s ease;
982
+
983
+ &::placeholder { color: #9ca3af; }
984
+
985
+ &:focus {
986
+ outline: none;
987
+ border-color: ${TMColors.primary};
988
+ box-shadow: 0 0 0 3px ${TMColors.primary}15;
989
+ }
990
+ `;
991
+ const FeedbackPanelFooter = styled.div `
992
+ display: flex;
993
+ align-items: center;
994
+ justify-content: space-between;
995
+ margin-top: 10px;
996
+ `;
997
+ const FeedbackCounter = styled.span `
998
+ font-size: 11px;
999
+ color: ${props => (props.$full ? '#c62828' : '#9ca3af')};
1000
+ font-variant-numeric: tabular-nums;
1001
+ `;
1002
+ const FeedbackSubmitButton = styled.button `
1003
+ padding: 7px 18px;
1004
+ border: none;
1005
+ border-radius: 8px;
1006
+ background: ${TMColors.primary};
1007
+ color: white;
1008
+ font-family: inherit;
1009
+ font-size: 13px;
1010
+ font-weight: 600;
1011
+ cursor: pointer;
1012
+ transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
1013
+
1014
+ &:hover:not(:disabled) {
1015
+ box-shadow: 0 4px 12px ${TMColors.primary}40;
1016
+ transform: translateY(-1px);
1017
+ }
1018
+
1019
+ &:active:not(:disabled) { transform: translateY(0); }
1020
+
1021
+ &:disabled {
1022
+ opacity: 0.4;
1023
+ cursor: default;
1024
+ }
1025
+ `;
1026
+ const MarkdownContent = styled.div `
1027
+ & > *:first-child { margin-top: 0; }
1028
+ & > *:last-child { margin-bottom: 0; }
1029
+
1030
+ a { color: ${TMColors.primary}; text-decoration: underline; }
1031
+ strong { font-weight: 600; }
1032
+ `;
1033
+ const MdParagraph = styled.p `
1034
+ margin: 0 0 8px 0;
1035
+ line-height: 1.55;
1036
+ `;
1037
+ const MdHeading = styled.div `
1038
+ margin: 12px 0 6px 0;
1039
+ font-weight: 700;
1040
+ line-height: 1.3;
1041
+ font-size: ${props => `${Math.max(14, 20 - (props.$level - 1) * 2)}px`};
1042
+ `;
1043
+ const MdUl = styled.ul `
1044
+ margin: 4px 0 8px 0;
1045
+ padding-left: 20px;
1046
+ li { margin: 2px 0; line-height: 1.5; }
1047
+ `;
1048
+ const MdOl = styled.ol `
1049
+ margin: 4px 0 8px 0;
1050
+ padding-left: 22px;
1051
+ li { margin: 2px 0; line-height: 1.5; }
1052
+ `;
1053
+ const MdCode = styled.code `
1054
+ background: rgba(0, 0, 0, 0.06);
1055
+ padding: 1px 5px;
1056
+ border-radius: 4px;
1057
+ font-family: 'Consolas', 'Monaco', monospace;
1058
+ font-size: 0.9em;
1059
+ `;
1060
+ const MdPre = styled.pre `
1061
+ background: rgba(0, 0, 0, 0.06);
1062
+ padding: 10px 12px;
1063
+ border-radius: 8px;
1064
+ overflow-x: auto;
1065
+ margin: 8px 0;
1066
+ font-family: 'Consolas', 'Monaco', monospace;
1067
+ font-size: 0.88em;
1068
+ white-space: pre;
1069
+ `;
1070
+ const MdTableWrapper = styled.div `
1071
+ margin: 8px 0;
1072
+ max-width: 100%;
1073
+ overflow-x: auto;
1074
+ border: 1px solid #dcdfe3;
1075
+ border-radius: 8px;
1076
+
1077
+ &::-webkit-scrollbar { height: 6px; }
1078
+ &::-webkit-scrollbar-track { background: transparent; }
1079
+ &::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
1080
+ &::-webkit-scrollbar-thumb:hover { background: #999; }
1081
+ `;
1082
+ const MdTable = styled.table `
1083
+ border-collapse: collapse;
1084
+ width: 100%;
1085
+ font-size: 0.92em;
1086
+ background: white;
1087
+ `;
1088
+ const MdTh = styled.th `
1089
+ padding: 7px 10px;
1090
+ background: ${TMColors.primary}14;
1091
+ color: #242424;
1092
+ font-weight: 600;
1093
+ text-align: ${props => props.$align ?? 'left'};
1094
+ border-bottom: 1px solid #dcdfe3;
1095
+ white-space: nowrap;
1096
+
1097
+ &:not(:last-child) { border-right: 1px solid #e6e8eb; }
1098
+ `;
1099
+ const MdTd = styled.td `
1100
+ padding: 7px 10px;
1101
+ text-align: ${props => props.$align ?? 'left'};
1102
+ vertical-align: top;
1103
+ border-top: 1px solid #eceef0;
1104
+
1105
+ &:not(:last-child) { border-right: 1px solid #eceef0; }
1106
+
1107
+ tr:nth-child(even) & { background: #fafbfc; }
1108
+ `;
1109
+ const MdBlockquote = styled.blockquote `
1110
+ margin: 8px 0;
1111
+ padding: 6px 12px;
1112
+ border-left: 3px solid ${TMColors.primary}66;
1113
+ background: ${TMColors.primary}0a;
1114
+ border-radius: 0 6px 6px 0;
1115
+ color: #444;
1116
+
1117
+ & > *:first-child { margin-top: 0; }
1118
+ & > *:last-child { margin-bottom: 0; }
1119
+ `;
1120
+ const MdHr = styled.hr `
1121
+ border: none;
1122
+ border-top: 1px solid #dcdfe3;
1123
+ margin: 12px 0;
1124
+ `;
1125
+ const ThinkingIndicator = styled.div `
1126
+ display: flex;
1127
+ align-items: center;
1128
+ gap: 10px;
1129
+ max-width: 80%;
1130
+ padding: 7px 12px;
1131
+ background: #f0f2f5;
1132
+ border-radius: 12px;
1133
+ border-bottom-left-radius: 4px;
1134
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
1135
+ `;
1136
+ const ThinkingCaption = styled.div `
1137
+ display: flex;
1138
+ flex-direction: column;
1139
+ align-items: flex-start;
1140
+ gap: 0;
1141
+ min-width: 0;
1142
+ `;
1143
+ const ThinkingPhrase = styled.span `
1144
+ display: inline-flex;
1145
+ align-items: center;
1146
+ min-width: 0;
1147
+ font-size: 12px;
1148
+ font-style: italic;
1149
+ line-height: 1.15;
1150
+ color: #6b7280;
1151
+ animation: ${phraseIn} 0.25s ease-out;
1152
+ `;
1153
+ const ThinkingDots = styled.span `
1154
+ display: inline-flex;
1155
+ width: 12px;
1156
+ flex-shrink: 0;
1157
+ `;
1158
+ const ThinkingDot = styled.span `
1159
+ animation: ${dotCycle} 1.2s linear infinite;
1160
+ animation-delay: ${props => props.$delay}s;
1161
+ will-change: opacity;
1162
+
1163
+ @media (prefers-reduced-motion: reduce) {
1164
+ animation: none;
1165
+ opacity: 1;
1166
+ }
1167
+ `;
1168
+ const ThinkingCounter = styled.span `
1169
+ margin-top: 2px;
1170
+ font-size: 10px;
1171
+ font-weight: 600;
1172
+ line-height: 1.1;
1173
+ letter-spacing: 0.02em;
1174
+ color: ${TMColors.primary}b3;
1175
+ font-variant-numeric: tabular-nums;
1176
+ font-feature-settings: 'tnum';
1177
+ opacity: ${props => (props.$visible ? 1 : 0)};
1178
+ transition: opacity 0.3s ease;
1179
+ `;
1180
+ const ChatFooter = styled.div `
1181
+ padding: 16px 20px;
1182
+ background: white;
1183
+ border-top: 1px solid #e1e5e9;
1184
+ box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
1185
+ `;
1186
+ const SuggestionsSection = styled.div `
1187
+ margin-bottom: 14px;
1188
+ `;
1189
+ const SuggestionsTitle = styled.div `
1190
+ display: flex;
1191
+ align-items: center;
1192
+ gap: 6px;
1193
+ margin: 0 0 8px 2px;
1194
+ font-size: 11px;
1195
+ font-weight: 600;
1196
+ letter-spacing: 0.06em;
1197
+ text-transform: uppercase;
1198
+ color: #6b7280;
1199
+
1200
+ svg { color: ${TMColors.primary}; }
1201
+ `;
1202
+ const SuggestionsGrid = styled.div `
1203
+ display: grid;
1204
+ grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
1205
+ gap: 8px;
1206
+ `;
1207
+ const SuggestionIcon = styled.span `
1208
+ display: flex;
1209
+ align-items: center;
1210
+ justify-content: center;
1211
+ width: 28px;
1212
+ height: 28px;
1213
+ border-radius: 8px;
1214
+ flex-shrink: 0;
1215
+ background: ${TMColors.primary}14;
1216
+ color: ${TMColors.primary};
1217
+ transition: background 0.2s ease, color 0.2s ease;
1218
+ `;
1219
+ const SuggestionText = styled.span `
1220
+ flex: 1;
1221
+ min-width: 0;
1222
+ display: -webkit-box;
1223
+ -webkit-line-clamp: 2;
1224
+ -webkit-box-orient: vertical;
1225
+ overflow: hidden;
1226
+ `;
1227
+ const SuggestionArrow = styled.span `
1228
+ display: flex;
1229
+ flex-shrink: 0;
1230
+ color: ${TMColors.primary};
1231
+ opacity: 0;
1232
+ transform: translateX(-4px);
1233
+ transition: opacity 0.2s ease, transform 0.2s ease;
1234
+ `;
1235
+ const SuggestionCard = styled.button `
1236
+ display: flex;
1237
+ align-items: center;
1238
+ gap: 10px;
1239
+ width: 100%;
1240
+ min-height: 52px;
1241
+ padding: 9px 12px;
1242
+ border: 1px solid ${TMColors.primary}22;
1243
+ border-radius: 12px;
1244
+ background: linear-gradient(135deg, #ffffff 0%, ${TMColors.primary}08 100%);
1245
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
1246
+ color: #242424;
1247
+ font-family: inherit;
1248
+ font-size: 13px;
1249
+ line-height: 1.35;
1250
+ text-align: left;
1251
+ cursor: pointer;
1252
+ opacity: 0;
1253
+ animation: ${suggestionIn} 0.35s ease-out forwards;
1254
+ animation-delay: ${props => props.$index * 70}ms;
1255
+ transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
1256
+
1257
+ &:hover, &:focus-visible {
1258
+ border-color: ${TMColors.primary}66;
1259
+ background: ${TMColors.primary}0d;
1260
+ box-shadow: 0 4px 14px ${TMColors.primary}1f;
1261
+ transform: translateY(-1px);
1262
+ }
1263
+
1264
+ &:hover ${SuggestionIcon}, &:focus-visible ${SuggestionIcon} {
1265
+ background: ${TMColors.primary};
1266
+ color: white;
1267
+ }
1268
+
1269
+ &:hover ${SuggestionArrow}, &:focus-visible ${SuggestionArrow} {
1270
+ opacity: 1;
1271
+ transform: translateX(0);
1272
+ }
1273
+
1274
+ &:focus-visible {
1275
+ outline: 2px solid ${TMColors.primary}55;
1276
+ outline-offset: 2px;
1277
+ }
1278
+
1279
+ &:active {
1280
+ transform: translateY(0) scale(0.99);
1281
+ }
1282
+
1283
+ @media (prefers-reduced-motion: reduce) {
1284
+ animation: none;
1285
+ opacity: 1;
1286
+ transition: none;
1287
+ }
1288
+ `;
1289
+ const FooterHint = styled.p `
1290
+ margin: 6px 0 0 0;
1291
+ font-size: 11px;
1292
+ color: #999;
1293
+ text-align: center;
1294
+ `;
1295
+ const ChatInputWrapper = styled.div `
1296
+ position: relative;
1297
+ flex: 1;
1298
+ display: flex;
1299
+ `;
1300
+ const ChatInputTextarea = styled.textarea `
1301
+ width: 100%;
1302
+ padding: 14px 60px 14px 16px;
1303
+ border: 2px solid #e1e5e9;
1304
+ border-radius: 12px;
1305
+ font-size: 15px;
1306
+ font-family: inherit;
1307
+ line-height: 1.5;
1308
+ transition: all 0.2s ease;
1309
+ background: #f8f9fa;
1310
+ resize: none;
1311
+ min-height: 100px;
1312
+ max-height: 120px;
1313
+ overflow-y: hidden;
1314
+
1315
+ &:focus {
1316
+ outline: none;
1317
+ border-color: ${TMColors.primary};
1318
+ background: white;
1319
+ box-shadow: 0 0 0 4px ${TMColors.primary}15;
1320
+ }
1321
+
1322
+ &::placeholder {
1323
+ color: #999;
1324
+ }
1325
+
1326
+ &::-webkit-scrollbar {
1327
+ width: 6px;
1328
+ }
1329
+
1330
+ &::-webkit-scrollbar-track {
1331
+ background: transparent;
1332
+ }
1333
+
1334
+ &::-webkit-scrollbar-thumb {
1335
+ background: #ccc;
1336
+ border-radius: 3px;
1337
+ }
1338
+
1339
+ &::-webkit-scrollbar-thumb:hover {
1340
+ background: #999;
1341
+ }
1342
+ `;
1343
+ const InlineSendButton = styled.button `
1344
+ position: absolute;
1345
+ bottom: 8px;
1346
+ right: 8px;
1347
+ width: 40px;
1348
+ height: 40px;
1349
+ border-radius: 10px;
1350
+ background: ${props => props.$disabled ? '#ccc' : '#4caf50'};
1351
+ border: none;
1352
+ color: white;
1353
+ cursor: ${props => props.$disabled ? 'default' : 'pointer'};
1354
+ display: flex;
1355
+ align-items: center;
1356
+ justify-content: center;
1357
+ transition: all 0.2s ease;
1358
+
1359
+ &:hover:not(:disabled) {
1360
+ background: #45a049;
1361
+ transform: scale(1.05);
1362
+ }
1363
+
1364
+ &:active:not(:disabled) {
1365
+ transform: scale(0.95);
1366
+ }
1367
+
1368
+ &:disabled {
1369
+ opacity: 0.6;
1370
+ }
1365
1371
  `;