@customviews-js/customviews 1.1.5 → 1.1.6

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @customviews-js/customviews v1.1.4
2
+ * @customviews-js/customviews v1.1.6
3
3
  * (c) 2025 Chan Ger Teck
4
4
  * Released under the MIT License.
5
5
  */
@@ -471,12 +471,12 @@
471
471
  const tabElements = Array.from(groupEl.children).filter((child) => child.tagName.toLowerCase() === 'cv-tab');
472
472
  // Check for Font Awesome shortcodes in tab headers
473
473
  tabElements.forEach((tabEl) => {
474
- const tabId = tabEl.getAttribute('id');
475
- if (!tabId)
474
+ const rawTabId = tabEl.getAttribute('id');
475
+ if (!rawTabId)
476
476
  return;
477
- const splitIds = this.splitTabIds(tabId);
478
- const firstId = splitIds[0] || tabId;
479
- const header = tabEl.getAttribute('header') || this.getTabLabel(firstId, groupId, cfgGroups) || firstId || '';
477
+ const splitIds = this.splitTabIds(rawTabId);
478
+ const tabId = splitIds[0] || rawTabId;
479
+ const header = tabEl.getAttribute('header') || this.getTabLabel(tabId, groupId, cfgGroups) || tabId || '';
480
480
  if (/:fa-[\w-]+:/.test(header)) {
481
481
  hasFontAwesomeShortcodes = true;
482
482
  }
@@ -514,78 +514,64 @@
514
514
  groupEl.insertBefore(navContainer, groupEl.firstChild);
515
515
  // Build nav items
516
516
  tabElements.forEach((tabEl) => {
517
- const tabId = tabEl.getAttribute('id');
518
- if (!tabId)
517
+ const rawTabId = tabEl.getAttribute('id');
518
+ if (!rawTabId)
519
519
  return;
520
- const splitIds = this.splitTabIds(tabId);
521
- // Header demarcation: if header contains |, split and use per tab.
522
- // If header attribute is present and not demarcated, use it as the fallback header.
520
+ const splitIds = this.splitTabIds(rawTabId);
521
+ // If multiple IDs, use the first as primary
522
+ const tabId = splitIds[0] || rawTabId;
523
+ // Get header for this tab (single header, not multiple)
523
524
  const headerAttr = tabEl.getAttribute('header') || '';
524
- let headerParts = [];
525
- if (headerAttr && headerAttr.includes('|')) {
526
- headerParts = headerAttr.split('|').map(h => h.trim());
525
+ let header = '';
526
+ if (headerAttr) {
527
+ // Single header provided on the element
528
+ header = headerAttr;
527
529
  }
528
- const firstId = splitIds[0] || tabId;
529
- let fallbackHeader = '';
530
- if (headerAttr && !headerAttr.includes('|')) {
531
- // Single header provided on the element: use for all split IDs
532
- fallbackHeader = headerAttr;
530
+ else {
531
+ // Use config label or id as fallback
532
+ header = this.getTabLabel(tabId, groupId, cfgGroups) || tabId || '';
533
+ }
534
+ // Create a single nav link for this tab element
535
+ const listItem = document.createElement('li');
536
+ listItem.className = 'nav-item';
537
+ const navLink = document.createElement('a');
538
+ navLink.className = 'nav-link';
539
+ navLink.innerHTML = replaceIconShortcodes(header);
540
+ navLink.href = '#';
541
+ navLink.setAttribute('data-tab-id', tabId);
542
+ navLink.setAttribute('data-raw-tab-id', rawTabId);
543
+ navLink.setAttribute('data-group-id', groupId);
544
+ navLink.setAttribute('role', 'tab');
545
+ // Check if any of the split IDs is active
546
+ const activeTabId = this.resolveActiveTabForGroup(groupId, {}, cfgGroups, groupEl); // Pass empty tabs for initial state
547
+ const isActive = splitIds.includes(activeTabId || '');
548
+ if (isActive) {
549
+ navLink.classList.add('active');
550
+ navLink.setAttribute('aria-selected', 'true');
533
551
  }
534
552
  else {
535
- // No header attribute or multi-part header: use config label or id as fallback
536
- fallbackHeader = this.getTabLabel(firstId, groupId, cfgGroups) || firstId || '';
553
+ navLink.setAttribute('aria-selected', 'false');
537
554
  }
538
- // Create nav links for each split ID
539
- splitIds.forEach((splitId, idx) => {
540
- const listItem = document.createElement('li');
541
- listItem.className = 'nav-item';
542
- const navLink = document.createElement('a');
543
- navLink.className = 'nav-link';
544
- // Use demarcated header if available, else prefer config label for this specific splitId
545
- let header = fallbackHeader;
546
- if (headerParts.length === splitIds.length) {
547
- header = headerParts[idx] ?? fallbackHeader;
548
- }
549
- else if (!headerAttr || headerAttr.includes('|')) {
550
- // Prefer the config label for the individual splitId over using firstId
551
- header = this.getTabLabel(splitId, groupId, cfgGroups) || splitId || '';
552
- }
553
- navLink.innerHTML = replaceIconShortcodes(header);
554
- navLink.href = '#';
555
- navLink.setAttribute('data-tab-id', splitId);
556
- navLink.setAttribute('data-group-id', groupId);
557
- navLink.setAttribute('role', 'tab');
558
- // Check if this split ID is active (same logic as applySelections)
559
- const activeTabId = this.resolveActiveTabForGroup(groupId, {}, cfgGroups, groupEl); // Pass empty tabs for initial state
560
- const isActive = splitIds.includes(activeTabId || '');
561
- if (isActive) {
562
- navLink.classList.add('active');
563
- navLink.setAttribute('aria-selected', 'true');
564
- }
565
- else {
566
- navLink.setAttribute('aria-selected', 'false');
567
- }
568
- // Add click handler for local tab switch
569
- if (onTabClick) {
570
- navLink.addEventListener('click', (e) => {
571
- e.preventDefault();
572
- // console.log("Single-click detected");
573
- onTabClick(groupId, splitId, groupEl);
574
- });
575
- }
576
- // Add double-click handler for sync
577
- if (onTabDoubleClick) {
578
- navLink.addEventListener('dblclick', (e) => {
579
- e.preventDefault();
580
- // console.log("Double-click detected");
581
- onTabDoubleClick(groupId, splitId, groupEl);
582
- });
583
- }
584
- // Add tooltip for UX feedback (use native title attribute)
585
- navLink.setAttribute('title', 'Double click to change switch tabs across all groups');
586
- listItem.appendChild(navLink);
587
- navContainer.appendChild(listItem);
588
- });
555
+ // Add click handler for local tab switch (if split id, switches to default first ID)
556
+ if (onTabClick) {
557
+ navLink.addEventListener('click', (e) => {
558
+ e.preventDefault();
559
+ // console.log("Single-click detected");
560
+ onTabClick(groupId, tabId, groupEl);
561
+ });
562
+ }
563
+ // Add double-click handler for sync
564
+ if (onTabDoubleClick) {
565
+ navLink.addEventListener('dblclick', (e) => {
566
+ e.preventDefault();
567
+ // console.log("Double-click detected");
568
+ onTabDoubleClick(groupId, tabId, groupEl);
569
+ });
570
+ }
571
+ // Add tooltip for UX feedback (use native title attribute)
572
+ navLink.setAttribute('title', 'Double click to change switch tabs across all groups');
573
+ listItem.appendChild(navLink);
574
+ navContainer.appendChild(listItem);
589
575
  });
590
576
  // Add bottom border line at the end of the tab group
591
577
  const bottomBorder = document.createElement('div');
@@ -649,12 +635,12 @@
649
635
  static updateNavActiveState(groupEl, activeTabId) {
650
636
  const navLinks = groupEl.querySelectorAll('.nav-link');
651
637
  navLinks.forEach((link) => {
652
- const linkTabId = link.getAttribute('data-tab-id');
653
- if (!linkTabId)
638
+ const rawTabId = link.getAttribute('data-raw-tab-id');
639
+ if (!rawTabId)
654
640
  return;
655
- // Check if activeTabId matches or is in the split IDs of this link
656
- const splitIds = this.splitTabIds(linkTabId);
657
- const isActive = linkTabId === activeTabId || splitIds.includes(activeTabId);
641
+ // Check if activeTabId is in the split IDs of this link
642
+ const splitIds = this.splitTabIds(rawTabId);
643
+ const isActive = splitIds.includes(activeTabId);
658
644
  if (isActive) {
659
645
  link.classList.add('active');
660
646
  link.setAttribute('aria-selected', 'true');
@@ -681,12 +667,12 @@
681
667
  // Update nav links for this group
682
668
  const navLinks = groupEl.querySelectorAll('.nav-link');
683
669
  navLinks.forEach((link) => {
684
- const linkTabId = link.getAttribute('data-tab-id');
685
- if (!linkTabId)
670
+ const rawTabId = link.getAttribute('data-raw-tab-id');
671
+ if (!rawTabId)
686
672
  return;
687
- // Check if activeTabId matches or is in the split IDs of this link
688
- const splitIds = this.splitTabIds(linkTabId);
689
- const isActive = linkTabId === activeTabId || splitIds.includes(activeTabId);
673
+ // Check if activeTabId is in the split IDs of this link
674
+ const splitIds = this.splitTabIds(rawTabId);
675
+ const isActive = splitIds.includes(activeTabId);
690
676
  if (isActive) {
691
677
  link.classList.add('active');
692
678
  link.setAttribute('aria-selected', 'true');
@@ -854,166 +840,166 @@
854
840
  /**
855
841
  * Styles for toggle visibility and animations
856
842
  */
857
- const TOGGLE_STYLES = `
858
- /* Core toggle visibility transitions */
859
- [data-cv-toggle], [data-customviews-toggle], cv-toggle {
860
- transition: opacity 150ms ease,
861
- transform 150ms ease,
862
- max-height 200ms ease,
863
- margin 150ms ease;
864
- will-change: opacity, transform, max-height, margin;
865
- }
866
-
867
- .cv-visible {
868
- opacity: 1 !important;
869
- transform: translateY(0) !important;
870
- max-height: var(--cv-max-height, 9999px) !important;
871
- }
872
-
873
- .cv-hidden {
874
- opacity: 0 !important;
875
- transform: translateY(-4px) !important;
876
- pointer-events: none !important;
877
- padding-top: 0 !important;
878
- padding-bottom: 0 !important;
879
- border-top-width: 0 !important;
880
- border-bottom-width: 0 !important;
881
- max-height: 0 !important;
882
- margin-top: 0 !important;
883
- margin-bottom: 0 !important;
884
- overflow: hidden !important;
885
- }
843
+ const TOGGLE_STYLES = `
844
+ /* Core toggle visibility transitions */
845
+ [data-cv-toggle], [data-customviews-toggle], cv-toggle {
846
+ transition: opacity 150ms ease,
847
+ transform 150ms ease,
848
+ max-height 200ms ease,
849
+ margin 150ms ease;
850
+ will-change: opacity, transform, max-height, margin;
851
+ }
852
+
853
+ .cv-visible {
854
+ opacity: 1 !important;
855
+ transform: translateY(0) !important;
856
+ max-height: var(--cv-max-height, 9999px) !important;
857
+ }
858
+
859
+ .cv-hidden {
860
+ opacity: 0 !important;
861
+ transform: translateY(-4px) !important;
862
+ pointer-events: none !important;
863
+ padding-top: 0 !important;
864
+ padding-bottom: 0 !important;
865
+ border-top-width: 0 !important;
866
+ border-bottom-width: 0 !important;
867
+ max-height: 0 !important;
868
+ margin-top: 0 !important;
869
+ margin-bottom: 0 !important;
870
+ overflow: hidden !important;
871
+ }
886
872
  `;
887
873
 
888
874
  /**
889
875
  * Styles for tab groups and tab navigation
890
876
  */
891
- const TAB_STYLES = `
892
- /* Tab navigation styles - Bootstrap-style tabs matching MarkBind */
893
- .cv-tabs-nav {
894
- display: flex;
895
- flex-wrap: wrap;
896
- padding-left: 0;
897
- margin-top: 0.5rem;
898
- margin-bottom: 1rem;
899
- list-style: none;
900
- border-bottom: 1px solid #dee2e6;
901
- }
902
-
903
- .cv-tabs-nav .nav-item {
904
- margin-bottom: -1px;
905
- list-style: none;
906
- display: inline-block;
907
- }
908
-
909
- .cv-tabs-nav .nav-link {
910
- display: block;
911
- padding: 0.5rem 1rem;
912
- color: #495057;
913
- text-decoration: none;
914
- background-color: transparent;
915
- border: 1px solid transparent;
916
- border-top-left-radius: 0.25rem;
917
- border-top-right-radius: 0.25rem;
918
- transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
919
- cursor: pointer;
920
- }
921
-
922
- .cv-tabs-nav .nav-link:hover,
923
- .cv-tabs-nav .nav-link:focus {
924
- border-color: #e9ecef #e9ecef #dee2e6;
925
- isolation: isolate;
926
- }
927
-
928
- .cv-tabs-nav .nav-link.active {
929
- color: #495057;
930
- background-color: #fff;
931
- border-color: #dee2e6 #dee2e6 #fff;
932
- }
933
-
934
- .cv-tabs-nav .nav-link:focus {
935
- outline: 0;
936
- box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
937
- }
938
-
939
- /* Legacy button-based nav (deprecated, kept for compatibility) */
940
- .cv-tabs-nav-item {
941
- background: none;
942
- border: none;
943
- border-bottom: 2px solid transparent;
944
- padding: 0.5rem 1rem;
945
- cursor: pointer;
946
- font-size: 1rem;
947
- color: #6c757d;
948
- transition: color 150ms ease, border-color 150ms ease;
949
- }
950
-
951
- .cv-tabs-nav-item:hover {
952
- color: #495057;
953
- border-bottom-color: #dee2e6;
954
- }
955
-
956
- .cv-tabs-nav-item.active {
957
- color: #007bff;
958
- border-bottom-color: #007bff;
959
- font-weight: 500;
960
- }
961
-
962
- .cv-tabs-nav-item:focus {
963
- outline: 2px solid #007bff;
964
- outline-offset: 2px;
965
- }
966
-
967
- /* Tab panel base styles */
968
- cv-tab {
969
- display: block;
970
- }
971
-
972
- /* Override visibility for tab panels - use display instead of collapse animation */
973
- cv-tab.cv-hidden {
974
- display: none !important;
975
- }
976
-
977
- cv-tab.cv-visible {
978
- display: block !important;
979
- }
980
-
981
- cv-tabgroup {
982
- display: block;
983
- margin-bottom: 1.5rem;
984
- }
985
-
986
- /* Bottom border line for tab groups */
987
- .cv-tabgroup-bottom-border {
988
- border-bottom: 1px solid #dee2e6;
989
- margin-top: 1rem;
990
- }
991
-
992
- /* Tab content wrapper */
993
- .cv-tab-content {
994
- padding: 1rem 0;
995
- }
996
-
997
- /* Viewer-controlled nav visibility: hide nav containers when requested */
998
- .cv-tabs-nav-hidden {
999
- display: none !important;
1000
- }
1001
-
1002
- /* Print-friendly: hide tab navigation when printing to reduce clutter */
1003
- @media print {
1004
- .cv-tabs-nav {
1005
- display: none !important;
1006
- }
1007
- }
877
+ const TAB_STYLES = `
878
+ /* Tab navigation styles - Bootstrap-style tabs matching MarkBind */
879
+ .cv-tabs-nav {
880
+ display: flex;
881
+ flex-wrap: wrap;
882
+ padding-left: 0;
883
+ margin-top: 0.5rem;
884
+ margin-bottom: 1rem;
885
+ list-style: none;
886
+ border-bottom: 1px solid #dee2e6;
887
+ }
888
+
889
+ .cv-tabs-nav .nav-item {
890
+ margin-bottom: -1px;
891
+ list-style: none;
892
+ display: inline-block;
893
+ }
894
+
895
+ .cv-tabs-nav .nav-link {
896
+ display: block;
897
+ padding: 0.5rem 1rem;
898
+ color: #495057;
899
+ text-decoration: none;
900
+ background-color: transparent;
901
+ border: 1px solid transparent;
902
+ border-top-left-radius: 0.25rem;
903
+ border-top-right-radius: 0.25rem;
904
+ transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
905
+ cursor: pointer;
906
+ }
907
+
908
+ .cv-tabs-nav .nav-link:hover,
909
+ .cv-tabs-nav .nav-link:focus {
910
+ border-color: #e9ecef #e9ecef #dee2e6;
911
+ isolation: isolate;
912
+ }
913
+
914
+ .cv-tabs-nav .nav-link.active {
915
+ color: #495057;
916
+ background-color: #fff;
917
+ border-color: #dee2e6 #dee2e6 #fff;
918
+ }
919
+
920
+ .cv-tabs-nav .nav-link:focus {
921
+ outline: 0;
922
+ box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
923
+ }
924
+
925
+ /* Legacy button-based nav (deprecated, kept for compatibility) */
926
+ .cv-tabs-nav-item {
927
+ background: none;
928
+ border: none;
929
+ border-bottom: 2px solid transparent;
930
+ padding: 0.5rem 1rem;
931
+ cursor: pointer;
932
+ font-size: 1rem;
933
+ color: #6c757d;
934
+ transition: color 150ms ease, border-color 150ms ease;
935
+ }
936
+
937
+ .cv-tabs-nav-item:hover {
938
+ color: #495057;
939
+ border-bottom-color: #dee2e6;
940
+ }
941
+
942
+ .cv-tabs-nav-item.active {
943
+ color: #007bff;
944
+ border-bottom-color: #007bff;
945
+ font-weight: 500;
946
+ }
947
+
948
+ .cv-tabs-nav-item:focus {
949
+ outline: 2px solid #007bff;
950
+ outline-offset: 2px;
951
+ }
952
+
953
+ /* Tab panel base styles */
954
+ cv-tab {
955
+ display: block;
956
+ }
957
+
958
+ /* Override visibility for tab panels - use display instead of collapse animation */
959
+ cv-tab.cv-hidden {
960
+ display: none !important;
961
+ }
962
+
963
+ cv-tab.cv-visible {
964
+ display: block !important;
965
+ }
966
+
967
+ cv-tabgroup {
968
+ display: block;
969
+ margin-bottom: 1.5rem;
970
+ }
971
+
972
+ /* Bottom border line for tab groups */
973
+ .cv-tabgroup-bottom-border {
974
+ border-bottom: 1px solid #dee2e6;
975
+ margin-top: 1rem;
976
+ }
977
+
978
+ /* Tab content wrapper */
979
+ .cv-tab-content {
980
+ padding: 1rem 0;
981
+ }
982
+
983
+ /* Viewer-controlled nav visibility: hide nav containers when requested */
984
+ .cv-tabs-nav-hidden {
985
+ display: none !important;
986
+ }
987
+
988
+ /* Print-friendly: hide tab navigation when printing to reduce clutter */
989
+ @media print {
990
+ .cv-tabs-nav {
991
+ display: none !important;
992
+ }
993
+ }
1008
994
  `;
1009
995
 
1010
996
  /**
1011
997
  * Combined core styles for toggles and tabs
1012
998
  */
1013
- const CORE_STYLES = `
1014
- ${TOGGLE_STYLES}
1015
-
1016
- ${TAB_STYLES}
999
+ const CORE_STYLES = `
1000
+ ${TOGGLE_STYLES}
1001
+
1002
+ ${TAB_STYLES}
1017
1003
  `;
1018
1004
  /**
1019
1005
  * Add styles for hiding and showing toggles animations and transitions to the document head
@@ -1407,993 +1393,993 @@ ${TAB_STYLES}
1407
1393
  * Note: Styles are kept as a TypeScript string for compatibility with the build system.
1408
1394
  * This approach ensures the styles are properly bundled and don't require separate CSS file handling.
1409
1395
  */
1410
- const WIDGET_STYLES = `
1411
- /* Rounded rectangle widget icon styles */
1412
- .cv-widget-icon {
1413
- position: fixed;
1414
- /* Slightly transparent by default so the widget is subtle at the page edge */
1415
- background: rgba(255, 255, 255, 0.92);
1416
- color: rgba(0, 0, 0, 0.9);
1417
- opacity: 0.6;
1418
- display: flex;
1419
- align-items: center;
1420
- justify-content: center;
1421
- font-size: 18px;
1422
- font-weight: bold;
1423
- cursor: pointer;
1424
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
1425
- z-index: 9998;
1426
- transition: all 0.3s ease;
1427
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
1428
- }
1429
-
1430
- .cv-widget-icon:hover {
1431
- /* Become fully opaque on hover to improve readability */
1432
- background: rgba(255, 255, 255, 1);
1433
- color: rgba(0, 0, 0, 1);
1434
- opacity: 1;
1435
- }
1436
-
1437
- /* Top-right: rounded end on left, sticks out leftward on hover */
1438
- .cv-widget-top-right {
1439
- top: 20px;
1440
- right: 0;
1441
- border-radius: 18px 0 0 18px;
1442
- padding-left: 8px;
1443
- justify-content: flex-start;
1444
- }
1445
-
1446
- /* Top-left: rounded end on right, sticks out rightward on hover */
1447
- .cv-widget-top-left {
1448
- top: 20px;
1449
- left: 0;
1450
- border-radius: 0 18px 18px 0;
1451
- padding-right: 8px;
1452
- justify-content: flex-end;
1453
- }
1454
-
1455
- /* Bottom-right: rounded end on left, sticks out leftward on hover */
1456
- .cv-widget-bottom-right {
1457
- bottom: 20px;
1458
- right: 0;
1459
- border-radius: 18px 0 0 18px;
1460
- padding-left: 8px;
1461
- justify-content: flex-start;
1462
- }
1463
-
1464
- /* Bottom-left: rounded end on right, sticks out rightward on hover */
1465
- .cv-widget-bottom-left {
1466
- bottom: 20px;
1467
- left: 0;
1468
- border-radius: 0 18px 18px 0;
1469
- padding-right: 8px;
1470
- justify-content: flex-end;
1471
- }
1472
-
1473
- /* Middle-left: rounded end on right, sticks out rightward on hover */
1474
- .cv-widget-middle-left {
1475
- top: 50%;
1476
- left: 0;
1477
- transform: translateY(-50%);
1478
- border-radius: 0 18px 18px 0;
1479
- padding-right: 8px;
1480
- justify-content: flex-end;
1481
- }
1482
-
1483
- /* Middle-right: rounded end on left, sticks out leftward on hover */
1484
- .cv-widget-middle-right {
1485
- top: 50%;
1486
- right: 0;
1487
- transform: translateY(-50%);
1488
- border-radius: 18px 0 0 18px;
1489
- padding-left: 8px;
1490
- justify-content: flex-start;
1491
- }
1492
-
1493
- .cv-widget-top-right,
1494
- .cv-widget-middle-right,
1495
- .cv-widget-bottom-right,
1496
- .cv-widget-top-left,
1497
- .cv-widget-middle-left,
1498
- .cv-widget-bottom-left {
1499
- height: 36px;
1500
- width: 36px;
1501
- }
1502
-
1503
- .cv-widget-middle-right:hover,
1504
- .cv-widget-top-right:hover,
1505
- .cv-widget-bottom-right:hover,
1506
- .cv-widget-top-left:hover,
1507
- .cv-widget-middle-left:hover,
1508
- .cv-widget-bottom-left:hover {
1509
- width: 55px;
1510
- }
1511
-
1512
- /* Modal content styles */
1513
- .cv-widget-section {
1514
- margin-bottom: 16px;
1515
- }
1516
-
1517
- .cv-widget-section:last-child {
1518
- margin-bottom: 0;
1519
- }
1520
-
1521
- .cv-widget-section label {
1522
- display: block;
1523
- margin-bottom: 4px;
1524
- font-weight: 500;
1525
- color: #555;
1526
- }
1527
-
1528
- .cv-widget-profile-select,
1529
- .cv-widget-state-select {
1530
- width: 100%;
1531
- padding: 8px 12px;
1532
- border: 1px solid #ddd;
1533
- border-radius: 4px;
1534
- background: white;
1535
- font-size: 14px;
1536
- }
1537
-
1538
- .cv-widget-profile-select:focus,
1539
- .cv-widget-state-select:focus {
1540
- outline: none;
1541
- border-color: #007bff;
1542
- box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
1543
- }
1544
-
1545
- .cv-widget-profile-select:disabled,
1546
- .cv-widget-state-select:disabled {
1547
- background: #f8f9fa;
1548
- color: #6c757d;
1549
- cursor: not-allowed;
1550
- }
1551
-
1552
- .cv-widget-current {
1553
- margin: 16px 0;
1554
- padding: 12px;
1555
- background: #f8f9fa;
1556
- border-radius: 4px;
1557
- border-left: 4px solid #007bff;
1558
- }
1559
-
1560
- .cv-widget-current label {
1561
- font-size: 12px;
1562
- text-transform: uppercase;
1563
- letter-spacing: 0.5px;
1564
- color: #666;
1565
- margin-bottom: 4px;
1566
- }
1567
-
1568
- .cv-widget-current-view {
1569
- font-weight: 500;
1570
- color: #333;
1571
- }
1572
-
1573
- .cv-widget-reset {
1574
- width: 100%;
1575
- padding: 8px 16px;
1576
- background: #dc3545;
1577
- color: white;
1578
- border: none;
1579
- border-radius: 4px;
1580
- cursor: pointer;
1581
- font-size: 14px;
1582
- font-weight: 500;
1583
- }
1584
-
1585
- .cv-widget-reset:hover {
1586
- background: #c82333;
1587
- }
1588
-
1589
- .cv-widget-reset:active {
1590
- background: #bd2130;
1591
- }
1592
-
1593
- /* Responsive design for mobile */
1594
- @media (max-width: 768px) {
1595
- .cv-widget-top-right,
1596
- .cv-widget-top-left {
1597
- top: 10px;
1598
- }
1599
-
1600
- .cv-widget-bottom-right,
1601
- .cv-widget-bottom-left {
1602
- bottom: 10px;
1603
- }
1604
-
1605
- /* All widgets stay flush with screen edges */
1606
- .cv-widget-top-right,
1607
- .cv-widget-bottom-right,
1608
- .cv-widget-middle-right {
1609
- right: 0;
1610
- }
1611
-
1612
- .cv-widget-top-left,
1613
- .cv-widget-bottom-left,
1614
- .cv-widget-middle-left {
1615
- left: 0;
1616
- }
1617
-
1618
- /* Slightly smaller on mobile */
1619
- .cv-widget-icon {
1620
- width: 60px;
1621
- height: 32px;
1622
- }
1623
-
1624
- .cv-widget-icon:hover {
1625
- width: 75px;
1626
- }
1627
- }
1628
-
1629
- /* Modal styles */
1630
- .cv-widget-modal-overlay {
1631
- position: fixed;
1632
- top: 0;
1633
- left: 0;
1634
- right: 0;
1635
- bottom: 0;
1636
- background: rgba(0, 0, 0, 0.5);
1637
- display: flex;
1638
- align-items: center;
1639
- justify-content: center;
1640
- z-index: 10002;
1641
- animation: fadeIn 0.2s ease;
1642
- }
1643
-
1644
- @keyframes fadeIn {
1645
- from { opacity: 0; }
1646
- to { opacity: 1; }
1647
- }
1648
-
1649
- .cv-widget-modal {
1650
- background: white;
1651
- border-radius: 0.75rem;
1652
- box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
1653
- max-width: 32rem;
1654
- width: 90vw;
1655
- max-height: 80vh;
1656
- animation: slideIn 0.2s ease;
1657
- display: flex;
1658
- flex-direction: column;
1659
- }
1660
-
1661
- @keyframes slideIn {
1662
- from {
1663
- opacity: 0;
1664
- transform: scale(0.9) translateY(-20px);
1665
- }
1666
- to {
1667
- opacity: 1;
1668
- transform: scale(1) translateY(0);
1669
- }
1670
- }
1671
-
1672
- .cv-modal-header {
1673
- display: flex;
1674
- align-items: center;
1675
- justify-content: space-between;
1676
- padding: 0.5rem 1rem;
1677
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
1678
- }
1679
-
1680
- .cv-modal-header-content {
1681
- display: flex;
1682
- align-items: center;
1683
- gap: 0.75rem;
1684
- }
1685
-
1686
- .cv-modal-icon {
1687
- position: relative;
1688
- width: 1rem;
1689
- height: 1rem;
1690
- display: flex;
1691
- align-items: center;
1692
- justify-content: center;
1693
- border-radius: 9999px;
1694
- }
1695
-
1696
- .cv-modal-icon-svg {
1697
- width: 100%;
1698
- height: 100%;
1699
- opacity: 1;
1700
- }
1701
-
1702
- .cv-modal-title {
1703
- font-size: 1.125rem;
1704
- font-weight: bold;
1705
- color: rgba(0, 0, 0, 0.9);
1706
- margin: 0;
1707
- }
1708
-
1709
- .cv-modal-close {
1710
- width: 2rem;
1711
- height: 2rem;
1712
- display: flex;
1713
- align-items: center;
1714
- justify-content: center;
1715
- border-radius: 9999px;
1716
- background: transparent;
1717
- border: none;
1718
- color: rgba(0, 0, 0, 0.6);
1719
- cursor: pointer;
1720
- transition: all 0.2s ease;
1721
- }
1722
-
1723
- .cv-modal-close:hover {
1724
- background: rgba(62, 132, 244, 0.1);
1725
- color: #3e84f4;
1726
- }
1727
-
1728
- .cv-modal-close-icon {
1729
- width: 1.25rem;
1730
- height: 1.25rem;
1731
- }
1732
-
1733
- .cv-modal-main {
1734
- padding: 1rem;
1735
- flex: 1;
1736
- display: flex;
1737
- flex-direction: column;
1738
- gap: 1rem;
1739
- overflow-y: auto;
1740
- max-height: calc(80vh - 8rem);
1741
- }
1742
-
1743
- .cv-modal-description {
1744
- font-size: 0.875rem;
1745
- color: rgba(0, 0, 0, 0.8);
1746
- margin: 0;
1747
- line-height: 1.4;
1748
- }
1749
-
1750
- .cv-content-section,
1751
- .cv-tab-groups-section {
1752
- display: flex;
1753
- flex-direction: column;
1754
- gap: 0.75rem;
1755
- }
1756
-
1757
- .cv-section-heading {
1758
- font-size: 1rem;
1759
- font-weight: bold;
1760
- color: rgba(0, 0, 0, 0.9);
1761
- margin: 0;
1762
- }
1763
-
1764
- .cv-widget-modal-actions {
1765
- margin-top: 20px;
1766
- padding-top: 16px;
1767
- border-top: 1px solid #e9ecef;
1768
- }
1769
-
1770
- .cv-widget-restore {
1771
- width: 100%;
1772
- padding: 10px 16px;
1773
- background: #28a745;
1774
- color: white;
1775
- border: none;
1776
- border-radius: 4px;
1777
- cursor: pointer;
1778
- font-size: 14px;
1779
- font-weight: 500;
1780
- }
1781
-
1782
- .cv-widget-restore:hover {
1783
- background: #218838;
1784
- }
1785
-
1786
- .cv-widget-create-state {
1787
- width: 100%;
1788
- padding: 10px 16px;
1789
- background: #007bff;
1790
- color: white;
1791
- border: none;
1792
- border-radius: 4px;
1793
- cursor: pointer;
1794
- font-size: 14px;
1795
- font-weight: 500;
1796
- margin-bottom: 10px;
1797
- }
1798
-
1799
- .cv-widget-create-state:hover {
1800
- background: #0056b3;
1801
- }
1802
-
1803
- .cv-widget-theme-dark .cv-widget-modal {
1804
- background: #101722;
1805
- color: #e2e8f0;
1806
- }
1807
-
1808
- .cv-widget-theme-dark .cv-modal-header {
1809
- border-color: rgba(255, 255, 255, 0.1);
1810
- }
1811
-
1812
- .cv-widget-theme-dark .cv-modal-title {
1813
- color: #e2e8f0;
1814
- }
1815
-
1816
- .cv-widget-theme-dark .cv-modal-close {
1817
- color: rgba(255, 255, 255, 0.6);
1818
- }
1819
-
1820
- .cv-widget-theme-dark .cv-modal-close:hover {
1821
- background: rgba(62, 132, 244, 0.2);
1822
- color: #3e84f4;
1823
- }
1824
-
1825
- .cv-widget-theme-dark .cv-modal-description {
1826
- color: rgba(255, 255, 255, 0.8);
1827
- }
1828
-
1829
- .cv-widget-theme-dark .cv-section-heading {
1830
- color: #e2e8f0;
1831
- }
1832
-
1833
- .cv-widget-theme-dark .cv-toggles-container
1834
- .cv-widget-theme-dark .cv-tabgroups-container {
1835
- border-color: rgba(255, 255, 255, 0.1);
1836
- }
1837
-
1838
- .cv-widget-theme-dark .cv-toggle-card,
1839
- .cv-widget-theme-dark .cv-tabgroup-card {
1840
- background: #101722;
1841
- border-color: rgba(255, 255, 255, 0.1);
1842
- }
1843
-
1844
- .cv-widget-theme-dark .cv-toggle-title,
1845
- .cv-widget-theme-dark .cv-tabgroup-title {
1846
- color: #e2e8f0;
1847
- }
1848
-
1849
- .cv-widget-theme-dark .cv-toggle-description,
1850
- .cv-widget-theme-dark .cv-tabgroup-description {
1851
- color: rgba(255, 255, 255, 0.6);
1852
- }
1853
-
1854
- .cv-widget-theme-dark .cv-toggle-slider {
1855
- background: rgba(255, 255, 255, 0.2);
1856
- }
1857
-
1858
- .cv-widget-theme-dark .cv-tab-group-description {
1859
- color: rgba(255, 255, 255, 0.8);
1860
- }
1861
-
1862
- .cv-widget-theme-dark .cv-tabgroup-select {
1863
- background: #101722;
1864
- border-color: rgba(255, 255, 255, 0.2);
1865
- color: #e2e8f0;
1866
- }
1867
-
1868
- .cv-widget-theme-dark .cv-modal-footer {
1869
- border-color: rgba(255, 255, 255, 0.1);
1870
- background: #101722;
1871
- }
1872
-
1873
- .cv-widget-theme-dark .cv-reset-btn {
1874
- color: #e2e8f0;
1875
- background: rgba(255, 255, 255, 0.1);
1876
- }
1877
-
1878
- .cv-widget-theme-dark .cv-reset-btn:hover {
1879
- background: rgba(255, 255, 255, 0.2);
1880
- }
1881
-
1882
- /* Custom state creator styles */
1883
- .cv-custom-state-modal {
1884
- max-width: 500px;
1885
- }
1886
-
1887
- .cv-custom-state-form .cv-section-header {
1888
- font-size: 16px;
1889
- font-weight: 600;
1890
- color: #333;
1891
- border-bottom: 1px solid #e9ecef;
1892
- padding-bottom: 5px;
1893
- }
1894
-
1895
- .cv-custom-state-form p {
1896
- font-size: 15px;
1897
- line-height: 1.6;
1898
- color: #555;
1899
- margin-bottom: 24px;
1900
- text-align: justify;
1901
- }
1902
-
1903
- .cv-custom-state-section {
1904
- margin-bottom: 16px;
1905
- }
1906
-
1907
- .cv-custom-state-section label {
1908
- display: block;
1909
- margin-bottom: 4px;
1910
- font-weight: 500;
1911
- color: #555;
1912
- }
1913
-
1914
- .cv-custom-state-input {
1915
- width: 100%;
1916
- padding: 8px 12px;
1917
- border: 1px solid #ddd;
1918
- border-radius: 4px;
1919
- background: white;
1920
- font-size: 14px;
1921
- }
1922
-
1923
- .cv-custom-state-input:focus {
1924
- outline: none;
1925
- border-color: #007bff;
1926
- box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
1927
- }
1928
-
1929
- /* Toggles Container */
1930
- .cv-toggles-container {
1931
- display: flex;
1932
- flex-direction: column;
1933
- gap: 0.5rem;
1934
- border-radius: 0.5rem;
1935
- border: 1px solid rgba(0, 0, 0, 0.1);
1936
- overflow: hidden;
1937
- }
1938
-
1939
- .cv-toggle-card,
1940
- .cv-tabgroup-card {
1941
- background: white;
1942
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
1943
- }
1944
-
1945
- .cv-toggle-card:last-child {
1946
- border-bottom: none;
1947
- }
1948
-
1949
- .cv-toggle-content {
1950
- display: flex;
1951
- align-items: center;
1952
- justify-content: space-between;
1953
- padding: 0.75rem;
1954
- }
1955
-
1956
- .cv-toggle-title {
1957
- font-weight: 500;
1958
- font-size: 0.875rem;
1959
- color: rgba(0, 0, 0, 0.9);
1960
- margin: 0 0 0.125rem 0;
1961
- }
1962
-
1963
- .cv-toggle-description {
1964
- font-size: 0.75rem;
1965
- color: rgba(0, 0, 0, 0.6);
1966
- margin: 0;
1967
- }
1968
-
1969
- .cv-toggle-label{
1970
- position: relative;
1971
- display: inline-block;
1972
- width: 2.75rem;
1973
- height: 1.5rem;
1974
- cursor: pointer;
1975
- }
1976
-
1977
- .cv-toggle-input {
1978
- opacity: 0;
1979
- width: 0;
1980
- height: 0;
1981
- }
1982
-
1983
- .cv-toggle-slider {
1984
- position: absolute;
1985
- top: 0;
1986
- left: 0;
1987
- right: 0;
1988
- bottom: 0;
1989
- background: rgba(0, 0, 0, 0.2);
1990
- border-radius: 9999px;
1991
- transition: background-color 0.2s ease;
1992
- }
1993
-
1994
- .cv-toggle-slider:before {
1995
- position: absolute;
1996
- content: "";
1997
- height: 1rem;
1998
- width: 1rem;
1999
- left: 0.25rem;
2000
- bottom: 0.25rem;
2001
- background: white;
2002
- border-radius: 50%;
2003
- transition: transform 0.2s ease;
2004
- }
2005
-
2006
- .cv-toggle-input:checked + .cv-toggle-slider {
2007
- background: #3e84f4;
2008
- }
2009
-
2010
- .cv-toggle-input:checked + .cv-toggle-slider:before {
2011
- transform: translateX(1.25rem);
2012
- }
2013
-
2014
- /* Dark theme toggle switch styles */
2015
- .cv-widget-theme-dark .cv-toggle-switch {
2016
- background: #4a5568;
2017
- }
2018
-
2019
- .cv-widget-theme-dark .cv-toggle-switch:hover {
2020
- background: #5a6578;
2021
- }
2022
-
2023
- .cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active {
2024
- background: #63b3ed;
2025
- }
2026
-
2027
- .cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active:hover {
2028
- background: #4299e1;
2029
- }
2030
-
2031
- /* Tab Groups Container */
2032
- .cv-tab-groups-list {
2033
- display: flex;
2034
- flex-direction: column;
2035
- gap: 1px;
2036
- border: 1px solid rgba(0, 0, 0, 0.1);
2037
- border-radius: 0.5rem;
2038
- overflow: hidden;
2039
- }
2040
-
2041
- /* Tab Group Card - Header (Navigation Headers toggle) */
2042
- .cv-tabgroup-card.cv-tabgroup-header {
2043
- display: flex;
2044
- align-items: center;
2045
- justify-content: space-between;
2046
- padding: 0.75rem;
2047
- border-bottom: 0px;
2048
- }
2049
-
2050
- .cv-tabgroup-card.cv-tabgroup-header .cv-tabgroup-row {
2051
- display: flex;
2052
- align-items: center;
2053
- justify-content: space-between;
2054
- width: 100%;
2055
- gap: 1rem;
2056
- }
2057
-
2058
- /* Tab Group Card - Items */
2059
- .cv-tabgroup-card.cv-tabgroup-item {
2060
- display: flex;
2061
- flex-direction: column;
2062
- gap: 0.5rem;
2063
- padding: 0.75rem;
2064
- background: white;
2065
- border-bottom: 1px solid rgba(0, 0, 0, 0.05);
2066
- }
2067
-
2068
- .cv-tabgroup-card.cv-tabgroup-item:last-child {
2069
- border-bottom: none;
2070
- }
2071
-
2072
- /* Tab Group Info */
2073
- .cv-tabgroup-info {
2074
- flex: 1;
2075
- }
2076
-
2077
- .cv-tabgroup-title {
2078
- font-weight: 500;
2079
- font-size: 0.875rem;
2080
- color: rgba(0, 0, 0, 0.9);
2081
- margin: 0 0 0.25rem 0;
2082
- }
2083
-
2084
- .cv-tabgroup-description {
2085
- font-size: 0.75rem;
2086
- color: rgba(0, 0, 0, 0.6);
2087
- margin: 0;
2088
- line-height: 1.3;
2089
- }
2090
-
2091
- /* Tab Group Label (for select dropdowns) */
2092
- .cv-tabgroup-label {
2093
- font-size: 0.875rem;
2094
- color: rgba(0, 0, 0, 0.8);
2095
- margin: 0;
2096
- line-height: 1.4;
2097
- font-weight: 500;
2098
- display: block;
2099
- cursor: pointer;
2100
- }
2101
-
2102
- /* Tab Group Select */
2103
- .cv-tabgroup-select {
2104
- width: 100%;
2105
- border-radius: 0.5rem;
2106
- background: white;
2107
- border: 1px solid rgba(0, 0, 0, 0.15);
2108
- color: rgba(0, 0, 0, 0.9);
2109
- padding: 0.5rem 0.75rem;
2110
- font-size: 0.875rem;
2111
- cursor: pointer;
2112
- transition: all 0.15s ease;
2113
- font-family: inherit;
2114
- }
2115
-
2116
- .cv-tabgroup-select:hover {
2117
- border-color: rgba(0, 0, 0, 0.25);
2118
- }
2119
-
2120
- .cv-tabgroup-select:focus {
2121
- outline: none;
2122
- border-color: #3e84f4;
2123
- box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.2);
2124
- }
2125
-
2126
- /* Modern Toggle Switch */
2127
- .cv-toggle-switch {
2128
- position: relative;
2129
- display: inline-flex;
2130
- align-items: center;
2131
- width: 44px;
2132
- height: 24px;
2133
- background: rgba(0, 0, 0, 0.1);
2134
- border-radius: 9999px;
2135
- padding: 2px;
2136
- box-sizing: border-box;
2137
- cursor: pointer;
2138
- transition: background-color 0.2s ease;
2139
- border: none;
2140
- }
2141
-
2142
- .cv-toggle-switch input {
2143
- display: none;
2144
- }
2145
-
2146
- .cv-toggle-switch .cv-switch-bg {
2147
- position: absolute;
2148
- inset: 0;
2149
- border-radius: 9999px;
2150
- background: rgba(0, 0, 0, 0.1);
2151
- transition: background-color 0.2s ease;
2152
- pointer-events: none;
2153
- }
2154
-
2155
- .cv-toggle-switch .cv-switch-knob {
2156
- position: relative;
2157
- width: 20px;
2158
- height: 20px;
2159
- background: white;
2160
- border-radius: 50%;
2161
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
2162
- transition: transform 0.2s ease;
2163
- z-index: 1;
2164
- }
2165
-
2166
- .cv-toggle-switch input:checked + .cv-switch-bg {
2167
- background: #3e84f4;
2168
- }
2169
-
2170
- .cv-toggle-switch input:checked ~ .cv-switch-knob {
2171
- transform: translateX(20px);
2172
- }
2173
-
2174
- /* Dark Theme - Tab Groups */
2175
- .cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-header {
2176
- background: #101722;
2177
- border-bottom-color: rgba(255, 255, 255, 0.1);
2178
- }
2179
-
2180
- .cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-item {
2181
- background: #101722;
2182
- border-bottom-color: rgba(255, 255, 255, 0.05);
2183
- }
2184
-
2185
- .cv-widget-theme-dark .cv-tabgroup-title {
2186
- color: #e2e8f0;
2187
- }
2188
-
2189
- .cv-widget-theme-dark .cv-tabgroup-description {
2190
- color: rgba(255, 255, 255, 0.6);
2191
- }
2192
-
2193
- .cv-widget-theme-dark .cv-tabgroup-label {
2194
- color: rgba(255, 255, 255, 0.8);
2195
- }
2196
-
2197
- .cv-widget-theme-dark .cv-tab-groups-list {
2198
- border-color: rgba(255, 255, 255, 0.1);
2199
- }
2200
-
2201
- .cv-widget-theme-dark .cv-tabgroup-select {
2202
- background: #101722;
2203
- border-color: rgba(255, 255, 255, 0.15);
2204
- color: #e2e8f0;
2205
- }
2206
-
2207
- .cv-widget-theme-dark .cv-tabgroup-select:hover {
2208
- border-color: rgba(255, 255, 255, 0.25);
2209
- }
2210
-
2211
- .cv-widget-theme-dark .cv-tabgroup-select:focus {
2212
- border-color: #60a5fa;
2213
- box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
2214
- }
2215
-
2216
- /* Dark Theme - Toggle Switch */
2217
- .cv-widget-theme-dark .cv-toggle-switch .cv-switch-bg {
2218
- background: rgba(255, 255, 255, 0.1);
2219
- }
2220
-
2221
- .cv-widget-theme-dark .cv-toggle-switch .cv-switch-knob {
2222
- background: #e2e8f0;
2223
- }
2224
-
2225
- .cv-widget-theme-dark .cv-toggle-switch input:checked + .cv-switch-bg {
2226
- background: #63b3ed;
2227
- }
2228
-
2229
- .cv-modal-footer {
2230
- display: flex;
2231
- justify-content: space-between;
2232
- align-items: center;
2233
- padding: 0.75rem;
2234
- border-top: 1px solid rgba(0, 0, 0, 0.1);
2235
- }
2236
-
2237
- .cv-reset-btn,
2238
- .cv-share-btn {
2239
- display: flex;
2240
- align-items: center;
2241
- gap: 0.5rem;
2242
- padding: 0.375rem 0.75rem;
2243
- border-radius: 0.5rem;
2244
- font-weight: 600;
2245
- font-size: 0.875rem;
2246
- cursor: pointer;
2247
- transition: all 0.2s ease;
2248
- border: none;
2249
- }
2250
-
2251
- .cv-reset-btn {
2252
- color: rgba(0, 0, 0, 0.9);
2253
- background: rgba(0, 0, 0, 0.1);
2254
- }
2255
-
2256
- .cv-reset-btn:hover {
2257
- background: rgba(0, 0, 0, 0.2);
2258
- }
2259
-
2260
- .cv-share-btn {
2261
- color: white;
2262
- background: #3e84f4;
2263
- }
2264
-
2265
- .cv-share-btn:hover {
2266
- background: rgba(62, 132, 244, 0.9);
2267
- }
2268
-
2269
- .cv-btn-icon {
2270
- width: 1rem;
2271
- height: 1rem;
2272
- }
2273
-
2274
- /* Dark theme custom state styles */
2275
- /* Welcome modal styles */
2276
- .cv-welcome-modal {
2277
- max-width: 32rem;
2278
- width: 90vw;
2279
- background: white;
2280
- border-radius: 0.75rem;
2281
- box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
2282
- animation: slideIn 0.2s ease;
2283
- display: flex;
2284
- flex-direction: column;
2285
- }
2286
-
2287
- .cv-modal-main {
2288
- padding: 1rem;
2289
- flex: 1;
2290
- display: flex;
2291
- flex-direction: column;
2292
- gap: 1rem;
2293
- overflow-y: auto;
2294
- max-height: calc(80vh - 8rem);
2295
- }
2296
-
2297
- .cv-welcome-message {
2298
- font-size: 0.875rem;
2299
- color: rgba(0, 0, 0, 0.8);
2300
- margin: 0;
2301
- line-height: 1.4;
2302
- text-align: center;
2303
- }
2304
-
2305
- .cv-welcome-message a {
2306
- color: #3e84f4;
2307
- text-align: justify;
2308
- text-decoration: none;
2309
- }
2310
-
2311
- .cv-welcome-message a:hover {
2312
- text-decoration: underline;
2313
- }
2314
-
2315
- .cv-welcome-widget-preview {
2316
- display: flex;
2317
- align-items: center;
2318
- justify-content: center;
2319
- gap: 1rem;
2320
- padding: 1rem;
2321
- background: #f8f9fa;
2322
- border-radius: 0.5rem;
2323
- margin: 1rem 0;
2324
- }
2325
-
2326
- .cv-welcome-widget-icon {
2327
- width: 2rem;
2328
- height: 2rem;
2329
- background: rgba(62, 132, 244, 0.1);
2330
- border-radius: 9999px;
2331
- display: flex;
2332
- align-items: center;
2333
- justify-content: center;
2334
- animation: cv-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
2335
- color: #3e84f4;
2336
- }
2337
-
2338
- .cv-welcome-widget-label {
2339
- font-size: 0.875rem;
2340
- font-weight: 500;
2341
- color: rgba(0, 0, 0, 0.8);
2342
- margin: 0;
2343
- }
2344
-
2345
- .cv-welcome-got-it {
2346
- width: 100%;
2347
- background: #3e84f4;
2348
- color: white;
2349
- font-weight: 600;
2350
- padding: 0.75rem 1rem;
2351
- border-radius: 0.5rem;
2352
- border: none;
2353
- cursor: pointer;
2354
- font-size: 0.875rem;
2355
- transition: background-color 0.2s ease;
2356
- outline: none;
2357
- }
2358
-
2359
- .cv-welcome-got-it:hover {
2360
- background: rgba(62, 132, 244, 0.9);
2361
- }
2362
-
2363
- .cv-welcome-got-it:focus {
2364
- box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.5);
2365
- }
2366
-
2367
- /* Animations */
2368
- @keyframes cv-pulse {
2369
- 0%, 100% {
2370
- opacity: 1;
2371
- }
2372
- 50% {
2373
- opacity: 0.5;
2374
- }
2375
- }
2376
-
2377
- /* Dark theme welcome modal styles */
2378
- .cv-widget-theme-dark .cv-welcome-modal {
2379
- background: #101722;
2380
- }
2381
-
2382
- .cv-widget-theme-dark .cv-welcome-message {
2383
- color: rgba(255, 255, 255, 0.8);
2384
- }
2385
-
2386
- .cv-widget-theme-dark .cv-welcome-message a {
2387
- color: #60a5fa;
2388
- }
2389
-
2390
- .cv-widget-theme-dark .cv-welcome-widget-preview {
2391
- background: rgba(255, 255, 255, 0.1);
2392
- }
2393
-
2394
- .cv-widget-theme-dark .cv-welcome-widget-label {
2395
- color: #e2e8f0;
2396
- }
1396
+ const WIDGET_STYLES = `
1397
+ /* Rounded rectangle widget icon styles */
1398
+ .cv-widget-icon {
1399
+ position: fixed;
1400
+ /* Slightly transparent by default so the widget is subtle at the page edge */
1401
+ background: rgba(255, 255, 255, 0.92);
1402
+ color: rgba(0, 0, 0, 0.9);
1403
+ opacity: 0.6;
1404
+ display: flex;
1405
+ align-items: center;
1406
+ justify-content: center;
1407
+ font-size: 18px;
1408
+ font-weight: bold;
1409
+ cursor: pointer;
1410
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
1411
+ z-index: 9998;
1412
+ transition: all 0.3s ease;
1413
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
1414
+ }
1415
+
1416
+ .cv-widget-icon:hover {
1417
+ /* Become fully opaque on hover to improve readability */
1418
+ background: rgba(255, 255, 255, 1);
1419
+ color: rgba(0, 0, 0, 1);
1420
+ opacity: 1;
1421
+ }
1422
+
1423
+ /* Top-right: rounded end on left, sticks out leftward on hover */
1424
+ .cv-widget-top-right {
1425
+ top: 20px;
1426
+ right: 0;
1427
+ border-radius: 18px 0 0 18px;
1428
+ padding-left: 8px;
1429
+ justify-content: flex-start;
1430
+ }
1431
+
1432
+ /* Top-left: rounded end on right, sticks out rightward on hover */
1433
+ .cv-widget-top-left {
1434
+ top: 20px;
1435
+ left: 0;
1436
+ border-radius: 0 18px 18px 0;
1437
+ padding-right: 8px;
1438
+ justify-content: flex-end;
1439
+ }
1440
+
1441
+ /* Bottom-right: rounded end on left, sticks out leftward on hover */
1442
+ .cv-widget-bottom-right {
1443
+ bottom: 20px;
1444
+ right: 0;
1445
+ border-radius: 18px 0 0 18px;
1446
+ padding-left: 8px;
1447
+ justify-content: flex-start;
1448
+ }
1449
+
1450
+ /* Bottom-left: rounded end on right, sticks out rightward on hover */
1451
+ .cv-widget-bottom-left {
1452
+ bottom: 20px;
1453
+ left: 0;
1454
+ border-radius: 0 18px 18px 0;
1455
+ padding-right: 8px;
1456
+ justify-content: flex-end;
1457
+ }
1458
+
1459
+ /* Middle-left: rounded end on right, sticks out rightward on hover */
1460
+ .cv-widget-middle-left {
1461
+ top: 50%;
1462
+ left: 0;
1463
+ transform: translateY(-50%);
1464
+ border-radius: 0 18px 18px 0;
1465
+ padding-right: 8px;
1466
+ justify-content: flex-end;
1467
+ }
1468
+
1469
+ /* Middle-right: rounded end on left, sticks out leftward on hover */
1470
+ .cv-widget-middle-right {
1471
+ top: 50%;
1472
+ right: 0;
1473
+ transform: translateY(-50%);
1474
+ border-radius: 18px 0 0 18px;
1475
+ padding-left: 8px;
1476
+ justify-content: flex-start;
1477
+ }
1478
+
1479
+ .cv-widget-top-right,
1480
+ .cv-widget-middle-right,
1481
+ .cv-widget-bottom-right,
1482
+ .cv-widget-top-left,
1483
+ .cv-widget-middle-left,
1484
+ .cv-widget-bottom-left {
1485
+ height: 36px;
1486
+ width: 36px;
1487
+ }
1488
+
1489
+ .cv-widget-middle-right:hover,
1490
+ .cv-widget-top-right:hover,
1491
+ .cv-widget-bottom-right:hover,
1492
+ .cv-widget-top-left:hover,
1493
+ .cv-widget-middle-left:hover,
1494
+ .cv-widget-bottom-left:hover {
1495
+ width: 55px;
1496
+ }
1497
+
1498
+ /* Modal content styles */
1499
+ .cv-widget-section {
1500
+ margin-bottom: 16px;
1501
+ }
1502
+
1503
+ .cv-widget-section:last-child {
1504
+ margin-bottom: 0;
1505
+ }
1506
+
1507
+ .cv-widget-section label {
1508
+ display: block;
1509
+ margin-bottom: 4px;
1510
+ font-weight: 500;
1511
+ color: #555;
1512
+ }
1513
+
1514
+ .cv-widget-profile-select,
1515
+ .cv-widget-state-select {
1516
+ width: 100%;
1517
+ padding: 8px 12px;
1518
+ border: 1px solid #ddd;
1519
+ border-radius: 4px;
1520
+ background: white;
1521
+ font-size: 14px;
1522
+ }
1523
+
1524
+ .cv-widget-profile-select:focus,
1525
+ .cv-widget-state-select:focus {
1526
+ outline: none;
1527
+ border-color: #007bff;
1528
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
1529
+ }
1530
+
1531
+ .cv-widget-profile-select:disabled,
1532
+ .cv-widget-state-select:disabled {
1533
+ background: #f8f9fa;
1534
+ color: #6c757d;
1535
+ cursor: not-allowed;
1536
+ }
1537
+
1538
+ .cv-widget-current {
1539
+ margin: 16px 0;
1540
+ padding: 12px;
1541
+ background: #f8f9fa;
1542
+ border-radius: 4px;
1543
+ border-left: 4px solid #007bff;
1544
+ }
1545
+
1546
+ .cv-widget-current label {
1547
+ font-size: 12px;
1548
+ text-transform: uppercase;
1549
+ letter-spacing: 0.5px;
1550
+ color: #666;
1551
+ margin-bottom: 4px;
1552
+ }
1553
+
1554
+ .cv-widget-current-view {
1555
+ font-weight: 500;
1556
+ color: #333;
1557
+ }
1558
+
1559
+ .cv-widget-reset {
1560
+ width: 100%;
1561
+ padding: 8px 16px;
1562
+ background: #dc3545;
1563
+ color: white;
1564
+ border: none;
1565
+ border-radius: 4px;
1566
+ cursor: pointer;
1567
+ font-size: 14px;
1568
+ font-weight: 500;
1569
+ }
1570
+
1571
+ .cv-widget-reset:hover {
1572
+ background: #c82333;
1573
+ }
1574
+
1575
+ .cv-widget-reset:active {
1576
+ background: #bd2130;
1577
+ }
1578
+
1579
+ /* Responsive design for mobile */
1580
+ @media (max-width: 768px) {
1581
+ .cv-widget-top-right,
1582
+ .cv-widget-top-left {
1583
+ top: 10px;
1584
+ }
1585
+
1586
+ .cv-widget-bottom-right,
1587
+ .cv-widget-bottom-left {
1588
+ bottom: 10px;
1589
+ }
1590
+
1591
+ /* All widgets stay flush with screen edges */
1592
+ .cv-widget-top-right,
1593
+ .cv-widget-bottom-right,
1594
+ .cv-widget-middle-right {
1595
+ right: 0;
1596
+ }
1597
+
1598
+ .cv-widget-top-left,
1599
+ .cv-widget-bottom-left,
1600
+ .cv-widget-middle-left {
1601
+ left: 0;
1602
+ }
1603
+
1604
+ /* Slightly smaller on mobile */
1605
+ .cv-widget-icon {
1606
+ width: 60px;
1607
+ height: 32px;
1608
+ }
1609
+
1610
+ .cv-widget-icon:hover {
1611
+ width: 75px;
1612
+ }
1613
+ }
1614
+
1615
+ /* Modal styles */
1616
+ .cv-widget-modal-overlay {
1617
+ position: fixed;
1618
+ top: 0;
1619
+ left: 0;
1620
+ right: 0;
1621
+ bottom: 0;
1622
+ background: rgba(0, 0, 0, 0.5);
1623
+ display: flex;
1624
+ align-items: center;
1625
+ justify-content: center;
1626
+ z-index: 10002;
1627
+ animation: fadeIn 0.2s ease;
1628
+ }
1629
+
1630
+ @keyframes fadeIn {
1631
+ from { opacity: 0; }
1632
+ to { opacity: 1; }
1633
+ }
1634
+
1635
+ .cv-widget-modal {
1636
+ background: white;
1637
+ border-radius: 0.75rem;
1638
+ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
1639
+ max-width: 32rem;
1640
+ width: 90vw;
1641
+ max-height: 80vh;
1642
+ animation: slideIn 0.2s ease;
1643
+ display: flex;
1644
+ flex-direction: column;
1645
+ }
1646
+
1647
+ @keyframes slideIn {
1648
+ from {
1649
+ opacity: 0;
1650
+ transform: scale(0.9) translateY(-20px);
1651
+ }
1652
+ to {
1653
+ opacity: 1;
1654
+ transform: scale(1) translateY(0);
1655
+ }
1656
+ }
1657
+
1658
+ .cv-modal-header {
1659
+ display: flex;
1660
+ align-items: center;
1661
+ justify-content: space-between;
1662
+ padding: 0.5rem 1rem;
1663
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
1664
+ }
1665
+
1666
+ .cv-modal-header-content {
1667
+ display: flex;
1668
+ align-items: center;
1669
+ gap: 0.75rem;
1670
+ }
1671
+
1672
+ .cv-modal-icon {
1673
+ position: relative;
1674
+ width: 1rem;
1675
+ height: 1rem;
1676
+ display: flex;
1677
+ align-items: center;
1678
+ justify-content: center;
1679
+ border-radius: 9999px;
1680
+ }
1681
+
1682
+ .cv-modal-icon-svg {
1683
+ width: 100%;
1684
+ height: 100%;
1685
+ opacity: 1;
1686
+ }
1687
+
1688
+ .cv-modal-title {
1689
+ font-size: 1.125rem;
1690
+ font-weight: bold;
1691
+ color: rgba(0, 0, 0, 0.9);
1692
+ margin: 0;
1693
+ }
1694
+
1695
+ .cv-modal-close {
1696
+ width: 2rem;
1697
+ height: 2rem;
1698
+ display: flex;
1699
+ align-items: center;
1700
+ justify-content: center;
1701
+ border-radius: 9999px;
1702
+ background: transparent;
1703
+ border: none;
1704
+ color: rgba(0, 0, 0, 0.6);
1705
+ cursor: pointer;
1706
+ transition: all 0.2s ease;
1707
+ }
1708
+
1709
+ .cv-modal-close:hover {
1710
+ background: rgba(62, 132, 244, 0.1);
1711
+ color: #3e84f4;
1712
+ }
1713
+
1714
+ .cv-modal-close-icon {
1715
+ width: 1.25rem;
1716
+ height: 1.25rem;
1717
+ }
1718
+
1719
+ .cv-modal-main {
1720
+ padding: 1rem;
1721
+ flex: 1;
1722
+ display: flex;
1723
+ flex-direction: column;
1724
+ gap: 1rem;
1725
+ overflow-y: auto;
1726
+ max-height: calc(80vh - 8rem);
1727
+ }
1728
+
1729
+ .cv-modal-description {
1730
+ font-size: 0.875rem;
1731
+ color: rgba(0, 0, 0, 0.8);
1732
+ margin: 0;
1733
+ line-height: 1.4;
1734
+ }
1735
+
1736
+ .cv-content-section,
1737
+ .cv-tab-groups-section {
1738
+ display: flex;
1739
+ flex-direction: column;
1740
+ gap: 0.75rem;
1741
+ }
1742
+
1743
+ .cv-section-heading {
1744
+ font-size: 1rem;
1745
+ font-weight: bold;
1746
+ color: rgba(0, 0, 0, 0.9);
1747
+ margin: 0;
1748
+ }
1749
+
1750
+ .cv-widget-modal-actions {
1751
+ margin-top: 20px;
1752
+ padding-top: 16px;
1753
+ border-top: 1px solid #e9ecef;
1754
+ }
1755
+
1756
+ .cv-widget-restore {
1757
+ width: 100%;
1758
+ padding: 10px 16px;
1759
+ background: #28a745;
1760
+ color: white;
1761
+ border: none;
1762
+ border-radius: 4px;
1763
+ cursor: pointer;
1764
+ font-size: 14px;
1765
+ font-weight: 500;
1766
+ }
1767
+
1768
+ .cv-widget-restore:hover {
1769
+ background: #218838;
1770
+ }
1771
+
1772
+ .cv-widget-create-state {
1773
+ width: 100%;
1774
+ padding: 10px 16px;
1775
+ background: #007bff;
1776
+ color: white;
1777
+ border: none;
1778
+ border-radius: 4px;
1779
+ cursor: pointer;
1780
+ font-size: 14px;
1781
+ font-weight: 500;
1782
+ margin-bottom: 10px;
1783
+ }
1784
+
1785
+ .cv-widget-create-state:hover {
1786
+ background: #0056b3;
1787
+ }
1788
+
1789
+ .cv-widget-theme-dark .cv-widget-modal {
1790
+ background: #101722;
1791
+ color: #e2e8f0;
1792
+ }
1793
+
1794
+ .cv-widget-theme-dark .cv-modal-header {
1795
+ border-color: rgba(255, 255, 255, 0.1);
1796
+ }
1797
+
1798
+ .cv-widget-theme-dark .cv-modal-title {
1799
+ color: #e2e8f0;
1800
+ }
1801
+
1802
+ .cv-widget-theme-dark .cv-modal-close {
1803
+ color: rgba(255, 255, 255, 0.6);
1804
+ }
1805
+
1806
+ .cv-widget-theme-dark .cv-modal-close:hover {
1807
+ background: rgba(62, 132, 244, 0.2);
1808
+ color: #3e84f4;
1809
+ }
1810
+
1811
+ .cv-widget-theme-dark .cv-modal-description {
1812
+ color: rgba(255, 255, 255, 0.8);
1813
+ }
1814
+
1815
+ .cv-widget-theme-dark .cv-section-heading {
1816
+ color: #e2e8f0;
1817
+ }
1818
+
1819
+ .cv-widget-theme-dark .cv-toggles-container
1820
+ .cv-widget-theme-dark .cv-tabgroups-container {
1821
+ border-color: rgba(255, 255, 255, 0.1);
1822
+ }
1823
+
1824
+ .cv-widget-theme-dark .cv-toggle-card,
1825
+ .cv-widget-theme-dark .cv-tabgroup-card {
1826
+ background: #101722;
1827
+ border-color: rgba(255, 255, 255, 0.1);
1828
+ }
1829
+
1830
+ .cv-widget-theme-dark .cv-toggle-title,
1831
+ .cv-widget-theme-dark .cv-tabgroup-title {
1832
+ color: #e2e8f0;
1833
+ }
1834
+
1835
+ .cv-widget-theme-dark .cv-toggle-description,
1836
+ .cv-widget-theme-dark .cv-tabgroup-description {
1837
+ color: rgba(255, 255, 255, 0.6);
1838
+ }
1839
+
1840
+ .cv-widget-theme-dark .cv-toggle-slider {
1841
+ background: rgba(255, 255, 255, 0.2);
1842
+ }
1843
+
1844
+ .cv-widget-theme-dark .cv-tab-group-description {
1845
+ color: rgba(255, 255, 255, 0.8);
1846
+ }
1847
+
1848
+ .cv-widget-theme-dark .cv-tabgroup-select {
1849
+ background: #101722;
1850
+ border-color: rgba(255, 255, 255, 0.2);
1851
+ color: #e2e8f0;
1852
+ }
1853
+
1854
+ .cv-widget-theme-dark .cv-modal-footer {
1855
+ border-color: rgba(255, 255, 255, 0.1);
1856
+ background: #101722;
1857
+ }
1858
+
1859
+ .cv-widget-theme-dark .cv-reset-btn {
1860
+ color: #e2e8f0;
1861
+ background: rgba(255, 255, 255, 0.1);
1862
+ }
1863
+
1864
+ .cv-widget-theme-dark .cv-reset-btn:hover {
1865
+ background: rgba(255, 255, 255, 0.2);
1866
+ }
1867
+
1868
+ /* Custom state creator styles */
1869
+ .cv-custom-state-modal {
1870
+ max-width: 500px;
1871
+ }
1872
+
1873
+ .cv-custom-state-form .cv-section-header {
1874
+ font-size: 16px;
1875
+ font-weight: 600;
1876
+ color: #333;
1877
+ border-bottom: 1px solid #e9ecef;
1878
+ padding-bottom: 5px;
1879
+ }
1880
+
1881
+ .cv-custom-state-form p {
1882
+ font-size: 15px;
1883
+ line-height: 1.6;
1884
+ color: #555;
1885
+ margin-bottom: 24px;
1886
+ text-align: justify;
1887
+ }
1888
+
1889
+ .cv-custom-state-section {
1890
+ margin-bottom: 16px;
1891
+ }
1892
+
1893
+ .cv-custom-state-section label {
1894
+ display: block;
1895
+ margin-bottom: 4px;
1896
+ font-weight: 500;
1897
+ color: #555;
1898
+ }
1899
+
1900
+ .cv-custom-state-input {
1901
+ width: 100%;
1902
+ padding: 8px 12px;
1903
+ border: 1px solid #ddd;
1904
+ border-radius: 4px;
1905
+ background: white;
1906
+ font-size: 14px;
1907
+ }
1908
+
1909
+ .cv-custom-state-input:focus {
1910
+ outline: none;
1911
+ border-color: #007bff;
1912
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
1913
+ }
1914
+
1915
+ /* Toggles Container */
1916
+ .cv-toggles-container {
1917
+ display: flex;
1918
+ flex-direction: column;
1919
+ gap: 0.5rem;
1920
+ border-radius: 0.5rem;
1921
+ border: 1px solid rgba(0, 0, 0, 0.1);
1922
+ overflow: hidden;
1923
+ }
1924
+
1925
+ .cv-toggle-card,
1926
+ .cv-tabgroup-card {
1927
+ background: white;
1928
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
1929
+ }
1930
+
1931
+ .cv-toggle-card:last-child {
1932
+ border-bottom: none;
1933
+ }
1934
+
1935
+ .cv-toggle-content {
1936
+ display: flex;
1937
+ align-items: center;
1938
+ justify-content: space-between;
1939
+ padding: 0.75rem;
1940
+ }
1941
+
1942
+ .cv-toggle-title {
1943
+ font-weight: 500;
1944
+ font-size: 0.875rem;
1945
+ color: rgba(0, 0, 0, 0.9);
1946
+ margin: 0 0 0.125rem 0;
1947
+ }
1948
+
1949
+ .cv-toggle-description {
1950
+ font-size: 0.75rem;
1951
+ color: rgba(0, 0, 0, 0.6);
1952
+ margin: 0;
1953
+ }
1954
+
1955
+ .cv-toggle-label{
1956
+ position: relative;
1957
+ display: inline-block;
1958
+ width: 2.75rem;
1959
+ height: 1.5rem;
1960
+ cursor: pointer;
1961
+ }
1962
+
1963
+ .cv-toggle-input {
1964
+ opacity: 0;
1965
+ width: 0;
1966
+ height: 0;
1967
+ }
1968
+
1969
+ .cv-toggle-slider {
1970
+ position: absolute;
1971
+ top: 0;
1972
+ left: 0;
1973
+ right: 0;
1974
+ bottom: 0;
1975
+ background: rgba(0, 0, 0, 0.2);
1976
+ border-radius: 9999px;
1977
+ transition: background-color 0.2s ease;
1978
+ }
1979
+
1980
+ .cv-toggle-slider:before {
1981
+ position: absolute;
1982
+ content: "";
1983
+ height: 1rem;
1984
+ width: 1rem;
1985
+ left: 0.25rem;
1986
+ bottom: 0.25rem;
1987
+ background: white;
1988
+ border-radius: 50%;
1989
+ transition: transform 0.2s ease;
1990
+ }
1991
+
1992
+ .cv-toggle-input:checked + .cv-toggle-slider {
1993
+ background: #3e84f4;
1994
+ }
1995
+
1996
+ .cv-toggle-input:checked + .cv-toggle-slider:before {
1997
+ transform: translateX(1.25rem);
1998
+ }
1999
+
2000
+ /* Dark theme toggle switch styles */
2001
+ .cv-widget-theme-dark .cv-toggle-switch {
2002
+ background: #4a5568;
2003
+ }
2004
+
2005
+ .cv-widget-theme-dark .cv-toggle-switch:hover {
2006
+ background: #5a6578;
2007
+ }
2008
+
2009
+ .cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active {
2010
+ background: #63b3ed;
2011
+ }
2012
+
2013
+ .cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active:hover {
2014
+ background: #4299e1;
2015
+ }
2016
+
2017
+ /* Tab Groups Container */
2018
+ .cv-tab-groups-list {
2019
+ display: flex;
2020
+ flex-direction: column;
2021
+ gap: 1px;
2022
+ border: 1px solid rgba(0, 0, 0, 0.1);
2023
+ border-radius: 0.5rem;
2024
+ overflow: hidden;
2025
+ }
2026
+
2027
+ /* Tab Group Card - Header (Navigation Headers toggle) */
2028
+ .cv-tabgroup-card.cv-tabgroup-header {
2029
+ display: flex;
2030
+ align-items: center;
2031
+ justify-content: space-between;
2032
+ padding: 0.75rem;
2033
+ border-bottom: 0px;
2034
+ }
2035
+
2036
+ .cv-tabgroup-card.cv-tabgroup-header .cv-tabgroup-row {
2037
+ display: flex;
2038
+ align-items: center;
2039
+ justify-content: space-between;
2040
+ width: 100%;
2041
+ gap: 1rem;
2042
+ }
2043
+
2044
+ /* Tab Group Card - Items */
2045
+ .cv-tabgroup-card.cv-tabgroup-item {
2046
+ display: flex;
2047
+ flex-direction: column;
2048
+ gap: 0.5rem;
2049
+ padding: 0.75rem;
2050
+ background: white;
2051
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
2052
+ }
2053
+
2054
+ .cv-tabgroup-card.cv-tabgroup-item:last-child {
2055
+ border-bottom: none;
2056
+ }
2057
+
2058
+ /* Tab Group Info */
2059
+ .cv-tabgroup-info {
2060
+ flex: 1;
2061
+ }
2062
+
2063
+ .cv-tabgroup-title {
2064
+ font-weight: 500;
2065
+ font-size: 0.875rem;
2066
+ color: rgba(0, 0, 0, 0.9);
2067
+ margin: 0 0 0.25rem 0;
2068
+ }
2069
+
2070
+ .cv-tabgroup-description {
2071
+ font-size: 0.75rem;
2072
+ color: rgba(0, 0, 0, 0.6);
2073
+ margin: 0;
2074
+ line-height: 1.3;
2075
+ }
2076
+
2077
+ /* Tab Group Label (for select dropdowns) */
2078
+ .cv-tabgroup-label {
2079
+ font-size: 0.875rem;
2080
+ color: rgba(0, 0, 0, 0.8);
2081
+ margin: 0;
2082
+ line-height: 1.4;
2083
+ font-weight: 500;
2084
+ display: block;
2085
+ cursor: pointer;
2086
+ }
2087
+
2088
+ /* Tab Group Select */
2089
+ .cv-tabgroup-select {
2090
+ width: 100%;
2091
+ border-radius: 0.5rem;
2092
+ background: white;
2093
+ border: 1px solid rgba(0, 0, 0, 0.15);
2094
+ color: rgba(0, 0, 0, 0.9);
2095
+ padding: 0.5rem 0.75rem;
2096
+ font-size: 0.875rem;
2097
+ cursor: pointer;
2098
+ transition: all 0.15s ease;
2099
+ font-family: inherit;
2100
+ }
2101
+
2102
+ .cv-tabgroup-select:hover {
2103
+ border-color: rgba(0, 0, 0, 0.25);
2104
+ }
2105
+
2106
+ .cv-tabgroup-select:focus {
2107
+ outline: none;
2108
+ border-color: #3e84f4;
2109
+ box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.2);
2110
+ }
2111
+
2112
+ /* Modern Toggle Switch */
2113
+ .cv-toggle-switch {
2114
+ position: relative;
2115
+ display: inline-flex;
2116
+ align-items: center;
2117
+ width: 44px;
2118
+ height: 24px;
2119
+ background: rgba(0, 0, 0, 0.1);
2120
+ border-radius: 9999px;
2121
+ padding: 2px;
2122
+ box-sizing: border-box;
2123
+ cursor: pointer;
2124
+ transition: background-color 0.2s ease;
2125
+ border: none;
2126
+ }
2127
+
2128
+ .cv-toggle-switch input {
2129
+ display: none;
2130
+ }
2131
+
2132
+ .cv-toggle-switch .cv-switch-bg {
2133
+ position: absolute;
2134
+ inset: 0;
2135
+ border-radius: 9999px;
2136
+ background: rgba(0, 0, 0, 0.1);
2137
+ transition: background-color 0.2s ease;
2138
+ pointer-events: none;
2139
+ }
2140
+
2141
+ .cv-toggle-switch .cv-switch-knob {
2142
+ position: relative;
2143
+ width: 20px;
2144
+ height: 20px;
2145
+ background: white;
2146
+ border-radius: 50%;
2147
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
2148
+ transition: transform 0.2s ease;
2149
+ z-index: 1;
2150
+ }
2151
+
2152
+ .cv-toggle-switch input:checked + .cv-switch-bg {
2153
+ background: #3e84f4;
2154
+ }
2155
+
2156
+ .cv-toggle-switch input:checked ~ .cv-switch-knob {
2157
+ transform: translateX(20px);
2158
+ }
2159
+
2160
+ /* Dark Theme - Tab Groups */
2161
+ .cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-header {
2162
+ background: #101722;
2163
+ border-bottom-color: rgba(255, 255, 255, 0.1);
2164
+ }
2165
+
2166
+ .cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-item {
2167
+ background: #101722;
2168
+ border-bottom-color: rgba(255, 255, 255, 0.05);
2169
+ }
2170
+
2171
+ .cv-widget-theme-dark .cv-tabgroup-title {
2172
+ color: #e2e8f0;
2173
+ }
2174
+
2175
+ .cv-widget-theme-dark .cv-tabgroup-description {
2176
+ color: rgba(255, 255, 255, 0.6);
2177
+ }
2178
+
2179
+ .cv-widget-theme-dark .cv-tabgroup-label {
2180
+ color: rgba(255, 255, 255, 0.8);
2181
+ }
2182
+
2183
+ .cv-widget-theme-dark .cv-tab-groups-list {
2184
+ border-color: rgba(255, 255, 255, 0.1);
2185
+ }
2186
+
2187
+ .cv-widget-theme-dark .cv-tabgroup-select {
2188
+ background: #101722;
2189
+ border-color: rgba(255, 255, 255, 0.15);
2190
+ color: #e2e8f0;
2191
+ }
2192
+
2193
+ .cv-widget-theme-dark .cv-tabgroup-select:hover {
2194
+ border-color: rgba(255, 255, 255, 0.25);
2195
+ }
2196
+
2197
+ .cv-widget-theme-dark .cv-tabgroup-select:focus {
2198
+ border-color: #60a5fa;
2199
+ box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
2200
+ }
2201
+
2202
+ /* Dark Theme - Toggle Switch */
2203
+ .cv-widget-theme-dark .cv-toggle-switch .cv-switch-bg {
2204
+ background: rgba(255, 255, 255, 0.1);
2205
+ }
2206
+
2207
+ .cv-widget-theme-dark .cv-toggle-switch .cv-switch-knob {
2208
+ background: #e2e8f0;
2209
+ }
2210
+
2211
+ .cv-widget-theme-dark .cv-toggle-switch input:checked + .cv-switch-bg {
2212
+ background: #63b3ed;
2213
+ }
2214
+
2215
+ .cv-modal-footer {
2216
+ display: flex;
2217
+ justify-content: space-between;
2218
+ align-items: center;
2219
+ padding: 0.75rem;
2220
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
2221
+ }
2222
+
2223
+ .cv-reset-btn,
2224
+ .cv-share-btn {
2225
+ display: flex;
2226
+ align-items: center;
2227
+ gap: 0.5rem;
2228
+ padding: 0.375rem 0.75rem;
2229
+ border-radius: 0.5rem;
2230
+ font-weight: 600;
2231
+ font-size: 0.875rem;
2232
+ cursor: pointer;
2233
+ transition: all 0.2s ease;
2234
+ border: none;
2235
+ }
2236
+
2237
+ .cv-reset-btn {
2238
+ color: rgba(0, 0, 0, 0.9);
2239
+ background: rgba(0, 0, 0, 0.1);
2240
+ }
2241
+
2242
+ .cv-reset-btn:hover {
2243
+ background: rgba(0, 0, 0, 0.2);
2244
+ }
2245
+
2246
+ .cv-share-btn {
2247
+ color: white;
2248
+ background: #3e84f4;
2249
+ }
2250
+
2251
+ .cv-share-btn:hover {
2252
+ background: rgba(62, 132, 244, 0.9);
2253
+ }
2254
+
2255
+ .cv-btn-icon {
2256
+ width: 1rem;
2257
+ height: 1rem;
2258
+ }
2259
+
2260
+ /* Dark theme custom state styles */
2261
+ /* Welcome modal styles */
2262
+ .cv-welcome-modal {
2263
+ max-width: 32rem;
2264
+ width: 90vw;
2265
+ background: white;
2266
+ border-radius: 0.75rem;
2267
+ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
2268
+ animation: slideIn 0.2s ease;
2269
+ display: flex;
2270
+ flex-direction: column;
2271
+ }
2272
+
2273
+ .cv-modal-main {
2274
+ padding: 1rem;
2275
+ flex: 1;
2276
+ display: flex;
2277
+ flex-direction: column;
2278
+ gap: 1rem;
2279
+ overflow-y: auto;
2280
+ max-height: calc(80vh - 8rem);
2281
+ }
2282
+
2283
+ .cv-welcome-message {
2284
+ font-size: 0.875rem;
2285
+ color: rgba(0, 0, 0, 0.8);
2286
+ margin: 0;
2287
+ line-height: 1.4;
2288
+ text-align: center;
2289
+ }
2290
+
2291
+ .cv-welcome-message a {
2292
+ color: #3e84f4;
2293
+ text-align: justify;
2294
+ text-decoration: none;
2295
+ }
2296
+
2297
+ .cv-welcome-message a:hover {
2298
+ text-decoration: underline;
2299
+ }
2300
+
2301
+ .cv-welcome-widget-preview {
2302
+ display: flex;
2303
+ align-items: center;
2304
+ justify-content: center;
2305
+ gap: 1rem;
2306
+ padding: 1rem;
2307
+ background: #f8f9fa;
2308
+ border-radius: 0.5rem;
2309
+ margin: 1rem 0;
2310
+ }
2311
+
2312
+ .cv-welcome-widget-icon {
2313
+ width: 2rem;
2314
+ height: 2rem;
2315
+ background: rgba(62, 132, 244, 0.1);
2316
+ border-radius: 9999px;
2317
+ display: flex;
2318
+ align-items: center;
2319
+ justify-content: center;
2320
+ animation: cv-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
2321
+ color: #3e84f4;
2322
+ }
2323
+
2324
+ .cv-welcome-widget-label {
2325
+ font-size: 0.875rem;
2326
+ font-weight: 500;
2327
+ color: rgba(0, 0, 0, 0.8);
2328
+ margin: 0;
2329
+ }
2330
+
2331
+ .cv-welcome-got-it {
2332
+ width: 100%;
2333
+ background: #3e84f4;
2334
+ color: white;
2335
+ font-weight: 600;
2336
+ padding: 0.75rem 1rem;
2337
+ border-radius: 0.5rem;
2338
+ border: none;
2339
+ cursor: pointer;
2340
+ font-size: 0.875rem;
2341
+ transition: background-color 0.2s ease;
2342
+ outline: none;
2343
+ }
2344
+
2345
+ .cv-welcome-got-it:hover {
2346
+ background: rgba(62, 132, 244, 0.9);
2347
+ }
2348
+
2349
+ .cv-welcome-got-it:focus {
2350
+ box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.5);
2351
+ }
2352
+
2353
+ /* Animations */
2354
+ @keyframes cv-pulse {
2355
+ 0%, 100% {
2356
+ opacity: 1;
2357
+ }
2358
+ 50% {
2359
+ opacity: 0.5;
2360
+ }
2361
+ }
2362
+
2363
+ /* Dark theme welcome modal styles */
2364
+ .cv-widget-theme-dark .cv-welcome-modal {
2365
+ background: #101722;
2366
+ }
2367
+
2368
+ .cv-widget-theme-dark .cv-welcome-message {
2369
+ color: rgba(255, 255, 255, 0.8);
2370
+ }
2371
+
2372
+ .cv-widget-theme-dark .cv-welcome-message a {
2373
+ color: #60a5fa;
2374
+ }
2375
+
2376
+ .cv-widget-theme-dark .cv-welcome-widget-preview {
2377
+ background: rgba(255, 255, 255, 0.1);
2378
+ }
2379
+
2380
+ .cv-widget-theme-dark .cv-welcome-widget-label {
2381
+ color: #e2e8f0;
2382
+ }
2397
2383
  `;
2398
2384
  /**
2399
2385
  * Inject widget styles into the document head
@@ -2416,34 +2402,34 @@ ${TAB_STYLES}
2416
2402
  * Settings gear icon for modal header
2417
2403
  */
2418
2404
  function getGearIcon() {
2419
- return `<svg class="cv-modal-icon-svg" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2420
- <path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M12 8.00002C9.79085 8.00002 7.99999 9.79088 7.99999 12C7.99999 14.2092 9.79085 16 12 16C14.2091 16 16 14.2092 16 12C16 9.79088 14.2091 8.00002 12 8.00002ZM9.99999 12C9.99999 10.8955 10.8954 10 12 10C13.1046 10 14 10.8955 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 9.99999 13.1046 9.99999 12Z" fill="#0F1729"/>
2421
- <path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M10.7673 1.01709C10.9925 0.999829 11.2454 0.99993 11.4516 1.00001L12.5484 1.00001C12.7546 0.99993 13.0075 0.999829 13.2327 1.01709C13.4989 1.03749 13.8678 1.08936 14.2634 1.26937C14.7635 1.49689 15.1915 1.85736 15.5007 2.31147C15.7454 2.67075 15.8592 3.0255 15.9246 3.2843C15.9799 3.50334 16.0228 3.75249 16.0577 3.9557L16.1993 4.77635L16.2021 4.77788C16.2369 4.79712 16.2715 4.81659 16.306 4.8363L16.3086 4.83774L17.2455 4.49865C17.4356 4.42978 17.6693 4.34509 17.8835 4.28543C18.1371 4.2148 18.4954 4.13889 18.9216 4.17026C19.4614 4.20998 19.9803 4.39497 20.4235 4.70563C20.7734 4.95095 21.0029 5.23636 21.1546 5.4515C21.2829 5.63326 21.4103 5.84671 21.514 6.02029L22.0158 6.86003C22.1256 7.04345 22.2594 7.26713 22.3627 7.47527C22.4843 7.7203 22.6328 8.07474 22.6777 8.52067C22.7341 9.08222 22.6311 9.64831 22.3803 10.1539C22.1811 10.5554 21.9171 10.8347 21.7169 11.0212C21.5469 11.1795 21.3428 11.3417 21.1755 11.4746L20.5 12L21.1755 12.5254C21.3428 12.6584 21.5469 12.8205 21.7169 12.9789C21.9171 13.1653 22.1811 13.4446 22.3802 13.8461C22.631 14.3517 22.7341 14.9178 22.6776 15.4794C22.6328 15.9253 22.4842 16.2797 22.3626 16.5248C22.2593 16.7329 22.1255 16.9566 22.0158 17.14L21.5138 17.9799C21.4102 18.1535 21.2828 18.3668 21.1546 18.5485C21.0028 18.7637 20.7734 19.0491 20.4234 19.2944C19.9803 19.6051 19.4613 19.7901 18.9216 19.8298C18.4954 19.8612 18.1371 19.7852 17.8835 19.7146C17.6692 19.6549 17.4355 19.5703 17.2454 19.5014L16.3085 19.1623L16.306 19.1638C16.2715 19.1835 16.2369 19.2029 16.2021 19.2222L16.1993 19.2237L16.0577 20.0443C16.0228 20.2475 15.9799 20.4967 15.9246 20.7157C15.8592 20.9745 15.7454 21.3293 15.5007 21.6886C15.1915 22.1427 14.7635 22.5032 14.2634 22.7307C13.8678 22.9107 13.4989 22.9626 13.2327 22.983C13.0074 23.0002 12.7546 23.0001 12.5484 23H11.4516C11.2454 23.0001 10.9925 23.0002 10.7673 22.983C10.5011 22.9626 10.1322 22.9107 9.73655 22.7307C9.23648 22.5032 8.80849 22.1427 8.49926 21.6886C8.25461 21.3293 8.14077 20.9745 8.07542 20.7157C8.02011 20.4967 7.97723 20.2475 7.94225 20.0443L7.80068 19.2237L7.79791 19.2222C7.7631 19.2029 7.72845 19.1835 7.69396 19.1637L7.69142 19.1623L6.75458 19.5014C6.5645 19.5702 6.33078 19.6549 6.11651 19.7146C5.86288 19.7852 5.50463 19.8611 5.07841 19.8298C4.53866 19.7901 4.01971 19.6051 3.57654 19.2944C3.2266 19.0491 2.99714 18.7637 2.84539 18.5485C2.71718 18.3668 2.58974 18.1534 2.4861 17.9798L1.98418 17.14C1.87447 16.9566 1.74067 16.7329 1.63737 16.5248C1.51575 16.2797 1.36719 15.9253 1.32235 15.4794C1.26588 14.9178 1.36897 14.3517 1.61976 13.8461C1.81892 13.4446 2.08289 13.1653 2.28308 12.9789C2.45312 12.8205 2.65717 12.6584 2.82449 12.5254L3.47844 12.0054V11.9947L2.82445 11.4746C2.65712 11.3417 2.45308 11.1795 2.28304 11.0212C2.08285 10.8347 1.81888 10.5554 1.61972 10.1539C1.36893 9.64832 1.26584 9.08224 1.3223 8.52069C1.36714 8.07476 1.51571 7.72032 1.63732 7.47528C1.74062 7.26715 1.87443 7.04347 1.98414 6.86005L2.48605 6.02026C2.58969 5.84669 2.71714 5.63326 2.84534 5.45151C2.9971 5.23637 3.22655 4.95096 3.5765 4.70565C4.01966 4.39498 4.53862 4.20999 5.07837 4.17027C5.50458 4.1389 5.86284 4.21481 6.11646 4.28544C6.33072 4.34511 6.56444 4.4298 6.75451 4.49867L7.69141 4.83775L7.69394 4.8363C7.72844 4.8166 7.7631 4.79712 7.79791 4.77788L7.80068 4.77635L7.94225 3.95571C7.97723 3.7525 8.02011 3.50334 8.07542 3.2843C8.14077 3.0255 8.25461 2.67075 8.49926 2.31147C8.80849 1.85736 9.23648 1.49689 9.73655 1.26937C10.1322 1.08936 10.5011 1.03749 10.7673 1.01709ZM14.0938 4.3363C14.011 3.85634 13.9696 3.61637 13.8476 3.43717C13.7445 3.2858 13.6019 3.16564 13.4352 3.0898C13.2378 3.00002 12.9943 3.00002 12.5073 3.00002H11.4927C11.0057 3.00002 10.7621 3.00002 10.5648 3.0898C10.3981 3.16564 10.2555 3.2858 10.1524 3.43717C10.0304 3.61637 9.98895 3.85634 9.90615 4.3363L9.75012 5.24064C9.69445 5.56333 9.66662 5.72467 9.60765 5.84869C9.54975 5.97047 9.50241 6.03703 9.40636 6.13166C9.30853 6.22804 9.12753 6.3281 8.76554 6.52822C8.73884 6.54298 8.71227 6.55791 8.68582 6.57302C8.33956 6.77078 8.16643 6.86966 8.03785 6.90314C7.91158 6.93602 7.83293 6.94279 7.70289 6.93196C7.57049 6.92094 7.42216 6.86726 7.12551 6.7599L6.11194 6.39308C5.66271 6.2305 5.43809 6.14921 5.22515 6.16488C5.04524 6.17811 4.87225 6.23978 4.72453 6.34333C4.5497 6.46589 4.42715 6.67094 4.18206 7.08103L3.72269 7.84965C3.46394 8.2826 3.33456 8.49907 3.31227 8.72078C3.29345 8.90796 3.32781 9.09665 3.41141 9.26519C3.51042 9.4648 3.7078 9.62177 4.10256 9.9357L4.82745 10.5122C5.07927 10.7124 5.20518 10.8126 5.28411 10.9199C5.36944 11.036 5.40583 11.1114 5.44354 11.2504C5.47844 11.379 5.47844 11.586 5.47844 12C5.47844 12.414 5.47844 12.621 5.44354 12.7497C5.40582 12.8887 5.36944 12.9641 5.28413 13.0801C5.20518 13.1875 5.07927 13.2876 4.82743 13.4879L4.10261 14.0643C3.70785 14.3783 3.51047 14.5352 3.41145 14.7349C3.32785 14.9034 3.29349 15.0921 3.31231 15.2793C3.33461 15.501 3.46398 15.7174 3.72273 16.1504L4.1821 16.919C4.4272 17.3291 4.54974 17.5342 4.72457 17.6567C4.8723 17.7603 5.04528 17.8219 5.2252 17.8352C5.43813 17.8508 5.66275 17.7695 6.11199 17.607L7.12553 17.2402C7.42216 17.1328 7.5705 17.0791 7.7029 17.0681C7.83294 17.0573 7.91159 17.064 8.03786 17.0969C8.16644 17.1304 8.33956 17.2293 8.68582 17.427C8.71228 17.4421 8.73885 17.4571 8.76554 17.4718C9.12753 17.6719 9.30853 17.772 9.40635 17.8684C9.50241 17.963 9.54975 18.0296 9.60765 18.1514C9.66662 18.2754 9.69445 18.4367 9.75012 18.7594L9.90615 19.6637C9.98895 20.1437 10.0304 20.3837 10.1524 20.5629C10.2555 20.7142 10.3981 20.8344 10.5648 20.9102C10.7621 21 11.0057 21 11.4927 21H12.5073C12.9943 21 13.2378 21 13.4352 20.9102C13.6019 20.8344 13.7445 20.7142 13.8476 20.5629C13.9696 20.3837 14.011 20.1437 14.0938 19.6637L14.2499 18.7594C14.3055 18.4367 14.3334 18.2754 14.3923 18.1514C14.4502 18.0296 14.4976 17.963 14.5936 17.8684C14.6915 17.772 14.8725 17.6719 15.2344 17.4718C15.2611 17.4571 15.2877 17.4421 15.3141 17.427C15.6604 17.2293 15.8335 17.1304 15.9621 17.0969C16.0884 17.064 16.167 17.0573 16.2971 17.0681C16.4295 17.0791 16.5778 17.1328 16.8744 17.2402L17.888 17.607C18.3372 17.7696 18.5619 17.8509 18.7748 17.8352C18.9547 17.8219 19.1277 17.7603 19.2754 17.6567C19.4502 17.5342 19.5728 17.3291 19.8179 16.919L20.2773 16.1504C20.536 15.7175 20.6654 15.501 20.6877 15.2793C20.7065 15.0921 20.6721 14.9034 20.5885 14.7349C20.4895 14.5353 20.2921 14.3783 19.8974 14.0643L19.1726 13.4879C18.9207 13.2876 18.7948 13.1875 18.7159 13.0801C18.6306 12.9641 18.5942 12.8887 18.5564 12.7497C18.5215 12.6211 18.5215 12.414 18.5215 12C18.5215 11.586 18.5215 11.379 18.5564 11.2504C18.5942 11.1114 18.6306 11.036 18.7159 10.9199C18.7948 10.8126 18.9207 10.7124 19.1725 10.5122L19.8974 9.9357C20.2922 9.62176 20.4896 9.46479 20.5886 9.26517C20.6722 9.09664 20.7065 8.90795 20.6877 8.72076C20.6654 8.49906 20.5361 8.28259 20.2773 7.84964L19.8179 7.08102C19.5728 6.67093 19.4503 6.46588 19.2755 6.34332C19.1277 6.23977 18.9548 6.1781 18.7748 6.16486C18.5619 6.14919 18.3373 6.23048 17.888 6.39307L16.8745 6.75989C16.5778 6.86725 16.4295 6.92093 16.2971 6.93195C16.167 6.94278 16.0884 6.93601 15.9621 6.90313C15.8335 6.86965 15.6604 6.77077 15.3142 6.57302C15.2877 6.55791 15.2611 6.54298 15.2345 6.52822C14.8725 6.3281 14.6915 6.22804 14.5936 6.13166C14.4976 6.03703 14.4502 5.97047 14.3923 5.84869C14.3334 5.72467 14.3055 5.56332 14.2499 5.24064L14.0938 4.3363Z" fill="#0F1729"/>
2405
+ return `<svg class="cv-modal-icon-svg" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2406
+ <path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M12 8.00002C9.79085 8.00002 7.99999 9.79088 7.99999 12C7.99999 14.2092 9.79085 16 12 16C14.2091 16 16 14.2092 16 12C16 9.79088 14.2091 8.00002 12 8.00002ZM9.99999 12C9.99999 10.8955 10.8954 10 12 10C13.1046 10 14 10.8955 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 9.99999 13.1046 9.99999 12Z" fill="#0F1729"/>
2407
+ <path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M10.7673 1.01709C10.9925 0.999829 11.2454 0.99993 11.4516 1.00001L12.5484 1.00001C12.7546 0.99993 13.0075 0.999829 13.2327 1.01709C13.4989 1.03749 13.8678 1.08936 14.2634 1.26937C14.7635 1.49689 15.1915 1.85736 15.5007 2.31147C15.7454 2.67075 15.8592 3.0255 15.9246 3.2843C15.9799 3.50334 16.0228 3.75249 16.0577 3.9557L16.1993 4.77635L16.2021 4.77788C16.2369 4.79712 16.2715 4.81659 16.306 4.8363L16.3086 4.83774L17.2455 4.49865C17.4356 4.42978 17.6693 4.34509 17.8835 4.28543C18.1371 4.2148 18.4954 4.13889 18.9216 4.17026C19.4614 4.20998 19.9803 4.39497 20.4235 4.70563C20.7734 4.95095 21.0029 5.23636 21.1546 5.4515C21.2829 5.63326 21.4103 5.84671 21.514 6.02029L22.0158 6.86003C22.1256 7.04345 22.2594 7.26713 22.3627 7.47527C22.4843 7.7203 22.6328 8.07474 22.6777 8.52067C22.7341 9.08222 22.6311 9.64831 22.3803 10.1539C22.1811 10.5554 21.9171 10.8347 21.7169 11.0212C21.5469 11.1795 21.3428 11.3417 21.1755 11.4746L20.5 12L21.1755 12.5254C21.3428 12.6584 21.5469 12.8205 21.7169 12.9789C21.9171 13.1653 22.1811 13.4446 22.3802 13.8461C22.631 14.3517 22.7341 14.9178 22.6776 15.4794C22.6328 15.9253 22.4842 16.2797 22.3626 16.5248C22.2593 16.7329 22.1255 16.9566 22.0158 17.14L21.5138 17.9799C21.4102 18.1535 21.2828 18.3668 21.1546 18.5485C21.0028 18.7637 20.7734 19.0491 20.4234 19.2944C19.9803 19.6051 19.4613 19.7901 18.9216 19.8298C18.4954 19.8612 18.1371 19.7852 17.8835 19.7146C17.6692 19.6549 17.4355 19.5703 17.2454 19.5014L16.3085 19.1623L16.306 19.1638C16.2715 19.1835 16.2369 19.2029 16.2021 19.2222L16.1993 19.2237L16.0577 20.0443C16.0228 20.2475 15.9799 20.4967 15.9246 20.7157C15.8592 20.9745 15.7454 21.3293 15.5007 21.6886C15.1915 22.1427 14.7635 22.5032 14.2634 22.7307C13.8678 22.9107 13.4989 22.9626 13.2327 22.983C13.0074 23.0002 12.7546 23.0001 12.5484 23H11.4516C11.2454 23.0001 10.9925 23.0002 10.7673 22.983C10.5011 22.9626 10.1322 22.9107 9.73655 22.7307C9.23648 22.5032 8.80849 22.1427 8.49926 21.6886C8.25461 21.3293 8.14077 20.9745 8.07542 20.7157C8.02011 20.4967 7.97723 20.2475 7.94225 20.0443L7.80068 19.2237L7.79791 19.2222C7.7631 19.2029 7.72845 19.1835 7.69396 19.1637L7.69142 19.1623L6.75458 19.5014C6.5645 19.5702 6.33078 19.6549 6.11651 19.7146C5.86288 19.7852 5.50463 19.8611 5.07841 19.8298C4.53866 19.7901 4.01971 19.6051 3.57654 19.2944C3.2266 19.0491 2.99714 18.7637 2.84539 18.5485C2.71718 18.3668 2.58974 18.1534 2.4861 17.9798L1.98418 17.14C1.87447 16.9566 1.74067 16.7329 1.63737 16.5248C1.51575 16.2797 1.36719 15.9253 1.32235 15.4794C1.26588 14.9178 1.36897 14.3517 1.61976 13.8461C1.81892 13.4446 2.08289 13.1653 2.28308 12.9789C2.45312 12.8205 2.65717 12.6584 2.82449 12.5254L3.47844 12.0054V11.9947L2.82445 11.4746C2.65712 11.3417 2.45308 11.1795 2.28304 11.0212C2.08285 10.8347 1.81888 10.5554 1.61972 10.1539C1.36893 9.64832 1.26584 9.08224 1.3223 8.52069C1.36714 8.07476 1.51571 7.72032 1.63732 7.47528C1.74062 7.26715 1.87443 7.04347 1.98414 6.86005L2.48605 6.02026C2.58969 5.84669 2.71714 5.63326 2.84534 5.45151C2.9971 5.23637 3.22655 4.95096 3.5765 4.70565C4.01966 4.39498 4.53862 4.20999 5.07837 4.17027C5.50458 4.1389 5.86284 4.21481 6.11646 4.28544C6.33072 4.34511 6.56444 4.4298 6.75451 4.49867L7.69141 4.83775L7.69394 4.8363C7.72844 4.8166 7.7631 4.79712 7.79791 4.77788L7.80068 4.77635L7.94225 3.95571C7.97723 3.7525 8.02011 3.50334 8.07542 3.2843C8.14077 3.0255 8.25461 2.67075 8.49926 2.31147C8.80849 1.85736 9.23648 1.49689 9.73655 1.26937C10.1322 1.08936 10.5011 1.03749 10.7673 1.01709ZM14.0938 4.3363C14.011 3.85634 13.9696 3.61637 13.8476 3.43717C13.7445 3.2858 13.6019 3.16564 13.4352 3.0898C13.2378 3.00002 12.9943 3.00002 12.5073 3.00002H11.4927C11.0057 3.00002 10.7621 3.00002 10.5648 3.0898C10.3981 3.16564 10.2555 3.2858 10.1524 3.43717C10.0304 3.61637 9.98895 3.85634 9.90615 4.3363L9.75012 5.24064C9.69445 5.56333 9.66662 5.72467 9.60765 5.84869C9.54975 5.97047 9.50241 6.03703 9.40636 6.13166C9.30853 6.22804 9.12753 6.3281 8.76554 6.52822C8.73884 6.54298 8.71227 6.55791 8.68582 6.57302C8.33956 6.77078 8.16643 6.86966 8.03785 6.90314C7.91158 6.93602 7.83293 6.94279 7.70289 6.93196C7.57049 6.92094 7.42216 6.86726 7.12551 6.7599L6.11194 6.39308C5.66271 6.2305 5.43809 6.14921 5.22515 6.16488C5.04524 6.17811 4.87225 6.23978 4.72453 6.34333C4.5497 6.46589 4.42715 6.67094 4.18206 7.08103L3.72269 7.84965C3.46394 8.2826 3.33456 8.49907 3.31227 8.72078C3.29345 8.90796 3.32781 9.09665 3.41141 9.26519C3.51042 9.4648 3.7078 9.62177 4.10256 9.9357L4.82745 10.5122C5.07927 10.7124 5.20518 10.8126 5.28411 10.9199C5.36944 11.036 5.40583 11.1114 5.44354 11.2504C5.47844 11.379 5.47844 11.586 5.47844 12C5.47844 12.414 5.47844 12.621 5.44354 12.7497C5.40582 12.8887 5.36944 12.9641 5.28413 13.0801C5.20518 13.1875 5.07927 13.2876 4.82743 13.4879L4.10261 14.0643C3.70785 14.3783 3.51047 14.5352 3.41145 14.7349C3.32785 14.9034 3.29349 15.0921 3.31231 15.2793C3.33461 15.501 3.46398 15.7174 3.72273 16.1504L4.1821 16.919C4.4272 17.3291 4.54974 17.5342 4.72457 17.6567C4.8723 17.7603 5.04528 17.8219 5.2252 17.8352C5.43813 17.8508 5.66275 17.7695 6.11199 17.607L7.12553 17.2402C7.42216 17.1328 7.5705 17.0791 7.7029 17.0681C7.83294 17.0573 7.91159 17.064 8.03786 17.0969C8.16644 17.1304 8.33956 17.2293 8.68582 17.427C8.71228 17.4421 8.73885 17.4571 8.76554 17.4718C9.12753 17.6719 9.30853 17.772 9.40635 17.8684C9.50241 17.963 9.54975 18.0296 9.60765 18.1514C9.66662 18.2754 9.69445 18.4367 9.75012 18.7594L9.90615 19.6637C9.98895 20.1437 10.0304 20.3837 10.1524 20.5629C10.2555 20.7142 10.3981 20.8344 10.5648 20.9102C10.7621 21 11.0057 21 11.4927 21H12.5073C12.9943 21 13.2378 21 13.4352 20.9102C13.6019 20.8344 13.7445 20.7142 13.8476 20.5629C13.9696 20.3837 14.011 20.1437 14.0938 19.6637L14.2499 18.7594C14.3055 18.4367 14.3334 18.2754 14.3923 18.1514C14.4502 18.0296 14.4976 17.963 14.5936 17.8684C14.6915 17.772 14.8725 17.6719 15.2344 17.4718C15.2611 17.4571 15.2877 17.4421 15.3141 17.427C15.6604 17.2293 15.8335 17.1304 15.9621 17.0969C16.0884 17.064 16.167 17.0573 16.2971 17.0681C16.4295 17.0791 16.5778 17.1328 16.8744 17.2402L17.888 17.607C18.3372 17.7696 18.5619 17.8509 18.7748 17.8352C18.9547 17.8219 19.1277 17.7603 19.2754 17.6567C19.4502 17.5342 19.5728 17.3291 19.8179 16.919L20.2773 16.1504C20.536 15.7175 20.6654 15.501 20.6877 15.2793C20.7065 15.0921 20.6721 14.9034 20.5885 14.7349C20.4895 14.5353 20.2921 14.3783 19.8974 14.0643L19.1726 13.4879C18.9207 13.2876 18.7948 13.1875 18.7159 13.0801C18.6306 12.9641 18.5942 12.8887 18.5564 12.7497C18.5215 12.6211 18.5215 12.414 18.5215 12C18.5215 11.586 18.5215 11.379 18.5564 11.2504C18.5942 11.1114 18.6306 11.036 18.7159 10.9199C18.7948 10.8126 18.9207 10.7124 19.1725 10.5122L19.8974 9.9357C20.2922 9.62176 20.4896 9.46479 20.5886 9.26517C20.6722 9.09664 20.7065 8.90795 20.6877 8.72076C20.6654 8.49906 20.5361 8.28259 20.2773 7.84964L19.8179 7.08102C19.5728 6.67093 19.4503 6.46588 19.2755 6.34332C19.1277 6.23977 18.9548 6.1781 18.7748 6.16486C18.5619 6.14919 18.3373 6.23048 17.888 6.39307L16.8745 6.75989C16.5778 6.86725 16.4295 6.92093 16.2971 6.93195C16.167 6.94278 16.0884 6.93601 15.9621 6.90313C15.8335 6.86965 15.6604 6.77077 15.3142 6.57302C15.2877 6.55791 15.2611 6.54298 15.2345 6.52822C14.8725 6.3281 14.6915 6.22804 14.5936 6.13166C14.4976 6.03703 14.4502 5.97047 14.3923 5.84869C14.3334 5.72467 14.3055 5.56332 14.2499 5.24064L14.0938 4.3363Z" fill="#0F1729"/>
2422
2408
  </svg>`;
2423
2409
  }
2424
2410
  /**
2425
2411
  * Close/X icon for modal close button
2426
2412
  */
2427
2413
  function getCloseIcon() {
2428
- return `<svg class="cv-modal-close-icon" fill="currentColor" height="20px" viewBox="0 0 256 256" width="20px" xmlns="http://www.w3.org/2000/svg">
2429
- <path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>
2414
+ return `<svg class="cv-modal-close-icon" fill="currentColor" height="20px" viewBox="0 0 256 256" width="20px" xmlns="http://www.w3.org/2000/svg">
2415
+ <path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>
2430
2416
  </svg>`;
2431
2417
  }
2432
2418
  /**
2433
2419
  * Reset/refresh icon for reset button
2434
2420
  */
2435
2421
  function getResetIcon() {
2436
- return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2437
- <path d="M22.719 12A10.719 10.719 0 0 1 1.28 12h.838a9.916 9.916 0 1 0 1.373-5H8v1H2V2h1v4.2A10.71 10.71 0 0 1 22.719 12z"/><path fill="none" d="M0 0h24v24H0z"/>
2422
+ return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2423
+ <path d="M22.719 12A10.719 10.719 0 0 1 1.28 12h.838a9.916 9.916 0 1 0 1.373-5H8v1H2V2h1v4.2A10.71 10.71 0 0 1 22.719 12z"/><path fill="none" d="M0 0h24v24H0z"/>
2438
2424
  </svg>`;
2439
2425
  }
2440
2426
  /**
2441
2427
  * Share icon for share button
2442
2428
  */
2443
2429
  function getShareIcon() {
2444
- return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2445
- <path xmlns="http://www.w3.org/2000/svg" d="M6 11C6 8.17157 6 6.75736 6.87868 5.87868C7.75736 5 9.17157 5 12 5H15C17.8284 5 19.2426 5 20.1213 5.87868C21 6.75736 21 8.17157 21 11V16C21 18.8284 21 20.2426 20.1213 21.1213C19.2426 22 17.8284 22 15 22H12C9.17157 22 7.75736 22 6.87868 21.1213C6 20.2426 6 18.8284 6 16V11Z" stroke="#1C274C" stroke-width="1.5"/>
2446
- <path xmlns="http://www.w3.org/2000/svg" opacity="0.5" d="M6 19C4.34315 19 3 17.6569 3 16V10C3 6.22876 3 4.34315 4.17157 3.17157C5.34315 2 7.22876 2 11 2H15C16.6569 2 18 3.34315 18 5" stroke="#1C274C" stroke-width="1.5"/>
2430
+ return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2431
+ <path xmlns="http://www.w3.org/2000/svg" d="M6 11C6 8.17157 6 6.75736 6.87868 5.87868C7.75736 5 9.17157 5 12 5H15C17.8284 5 19.2426 5 20.1213 5.87868C21 6.75736 21 8.17157 21 11V16C21 18.8284 21 20.2426 20.1213 21.1213C19.2426 22 17.8284 22 15 22H12C9.17157 22 7.75736 22 6.87868 21.1213C6 20.2426 6 18.8284 6 16V11Z" stroke="#1C274C" stroke-width="1.5"/>
2432
+ <path xmlns="http://www.w3.org/2000/svg" opacity="0.5" d="M6 19C4.34315 19 3 17.6569 3 16V10C3 6.22876 3 4.34315 4.17157 3.17157C5.34315 2 7.22876 2 11 2H15C16.6569 2 18 3.34315 18 5" stroke="#1C274C" stroke-width="1.5"/>
2447
2433
  </svg>`;
2448
2434
  }
2449
2435
 
@@ -2547,18 +2533,18 @@ ${TAB_STYLES}
2547
2533
  this.modal = document.createElement('div');
2548
2534
  this.modal.className = 'cv-widget-modal-overlay';
2549
2535
  this.applyThemeToModal();
2550
- const toggleControlsHtml = toggles.map(toggle => `
2551
- <div class="cv-toggle-card">
2552
- <div class="cv-toggle-content">
2553
- <div>
2554
- <p class="cv-toggle-title">${this.formatToggleName(toggle)}</p>
2555
- </div>
2556
- <label class="cv-toggle-label">
2557
- <input class="cv-toggle-input" type="checkbox" data-toggle="${toggle}"/>
2558
- <span class="cv-toggle-slider"></span>
2559
- </label>
2560
- </div>
2561
- </div>
2536
+ const toggleControlsHtml = toggles.map(toggle => `
2537
+ <div class="cv-toggle-card">
2538
+ <div class="cv-toggle-content">
2539
+ <div>
2540
+ <p class="cv-toggle-title">${this.formatToggleName(toggle)}</p>
2541
+ </div>
2542
+ <label class="cv-toggle-label">
2543
+ <input class="cv-toggle-input" type="checkbox" data-toggle="${toggle}"/>
2544
+ <span class="cv-toggle-slider"></span>
2545
+ </label>
2546
+ </div>
2547
+ </div>
2562
2548
  `).join('');
2563
2549
  // Todo: Re-add description if needed (Line 168, add label field to toggles if needed change structure)
2564
2550
  // <p class="cv-toggle-description">Show or hide the ${this.formatToggleName(toggle).toLowerCase()} area </p>
@@ -2588,82 +2574,82 @@ ${TAB_STYLES}
2588
2574
  ensureFontAwesomeInjected();
2589
2575
  }
2590
2576
  if (this.options.showTabGroups && tabGroups && tabGroups.length > 0) {
2591
- tabGroupControlsHTML = `
2592
- <div class="cv-tabgroup-card cv-tabgroup-header">
2593
- <div class="cv-tabgroup-row">
2594
- <div class="cv-tabgroup-info">
2595
- <p class="cv-tabgroup-title">Navigation Headers</p>
2596
- <p class="cv-tabgroup-description">Show or hide navigation headers</p>
2597
- </div>
2598
- <label class="cv-toggle-switch cv-nav-toggle">
2599
- <input class="cv-nav-pref-input" type="checkbox" aria-label="Show or hide navigation headers" />
2600
- <span class="cv-switch-bg"></span>
2601
- <span class="cv-switch-knob"></span>
2602
- </label>
2603
- </div>
2604
- </div>
2605
- <div class="cv-tab-groups-list">
2606
- ${tabGroups.map(group => `
2607
- <div class="cv-tabgroup-card cv-tabgroup-item">
2608
- <label class="cv-tabgroup-label" for="tab-group-${group.id}">
2609
- ${replaceIconShortcodes(group.label || group.id)}
2610
- </label>
2611
- <select id="tab-group-${group.id}" class="cv-tabgroup-select" data-group-id="${group.id}">
2612
- ${group.tabs.map(tab => `<option value="${tab.id}">${replaceIconShortcodes(tab.label || tab.id)}</option>`).join('')}
2613
- </select>
2614
- </div>
2615
- `).join('')}
2616
- </div>
2577
+ tabGroupControlsHTML = `
2578
+ <div class="cv-tabgroup-card cv-tabgroup-header">
2579
+ <div class="cv-tabgroup-row">
2580
+ <div class="cv-tabgroup-info">
2581
+ <p class="cv-tabgroup-title">Navigation Headers</p>
2582
+ <p class="cv-tabgroup-description">Show or hide navigation headers</p>
2583
+ </div>
2584
+ <label class="cv-toggle-switch cv-nav-toggle">
2585
+ <input class="cv-nav-pref-input" type="checkbox" aria-label="Show or hide navigation headers" />
2586
+ <span class="cv-switch-bg"></span>
2587
+ <span class="cv-switch-knob"></span>
2588
+ </label>
2589
+ </div>
2590
+ </div>
2591
+ <div class="cv-tab-groups-list">
2592
+ ${tabGroups.map(group => `
2593
+ <div class="cv-tabgroup-card cv-tabgroup-item">
2594
+ <label class="cv-tabgroup-label" for="tab-group-${group.id}">
2595
+ ${replaceIconShortcodes(group.label || group.id)}
2596
+ </label>
2597
+ <select id="tab-group-${group.id}" class="cv-tabgroup-select" data-group-id="${group.id}">
2598
+ ${group.tabs.map(tab => `<option value="${tab.id}">${replaceIconShortcodes(tab.label || tab.id)}</option>`).join('')}
2599
+ </select>
2600
+ </div>
2601
+ `).join('')}
2602
+ </div>
2617
2603
  `;
2618
2604
  }
2619
- this.modal.innerHTML = `
2620
- <div class="cv-widget-modal cv-custom-state-modal">
2621
- <header class="cv-modal-header">
2622
- <div class="cv-modal-header-content">
2623
- <div class="cv-modal-icon">
2624
- ${getGearIcon()}
2625
- </div>
2626
- <div class="cv-modal-title">${this.options.title}</div>
2627
- </div>
2628
- <button class="cv-modal-close" aria-label="Close modal">
2629
- ${getCloseIcon()}
2630
- </button>
2631
- </header>
2632
- <main class="cv-modal-main">
2633
- ${this.options.description ? `<p class="cv-modal-description">${this.options.description}</p>` : ''}
2634
-
2635
- ${toggles.length ? `
2636
- <div class="cv-content-section">
2637
- <div class="cv-section-heading">Toggles</div>
2638
- <div class="cv-toggles-container">
2639
- ${toggleControlsHtml}
2640
- </div>
2641
- </div>
2642
- ` : ''}
2643
-
2644
- ${this.options.showTabGroups && tabGroups && tabGroups.length > 0 ? `
2645
- <div class="cv-content-section">
2646
- <div class="cv-section-heading">Tab Groups</div>
2647
- <div class="cv-tabgroups-container">
2648
- ${tabGroupControlsHTML}
2649
- </div>
2650
- </div>
2651
- ` : ''}
2652
- </main>
2653
-
2654
- <footer class="cv-modal-footer">
2655
- ${this.options.showReset ? `
2656
- <button class="cv-reset-btn">
2657
- ${getResetIcon()}
2658
- <span>Reset to Default</span>
2659
- </button>
2660
- ` : ''}
2661
- <button class="cv-share-btn">
2662
- ${getShareIcon()}
2663
- <span>Copy Shareable URL</span>
2664
- </button>
2665
- </footer>
2666
- </div>
2605
+ this.modal.innerHTML = `
2606
+ <div class="cv-widget-modal cv-custom-state-modal">
2607
+ <header class="cv-modal-header">
2608
+ <div class="cv-modal-header-content">
2609
+ <div class="cv-modal-icon">
2610
+ ${getGearIcon()}
2611
+ </div>
2612
+ <div class="cv-modal-title">${this.options.title}</div>
2613
+ </div>
2614
+ <button class="cv-modal-close" aria-label="Close modal">
2615
+ ${getCloseIcon()}
2616
+ </button>
2617
+ </header>
2618
+ <main class="cv-modal-main">
2619
+ ${this.options.description ? `<p class="cv-modal-description">${this.options.description}</p>` : ''}
2620
+
2621
+ ${toggles.length ? `
2622
+ <div class="cv-content-section">
2623
+ <div class="cv-section-heading">Toggles</div>
2624
+ <div class="cv-toggles-container">
2625
+ ${toggleControlsHtml}
2626
+ </div>
2627
+ </div>
2628
+ ` : ''}
2629
+
2630
+ ${this.options.showTabGroups && tabGroups && tabGroups.length > 0 ? `
2631
+ <div class="cv-content-section">
2632
+ <div class="cv-section-heading">Tab Groups</div>
2633
+ <div class="cv-tabgroups-container">
2634
+ ${tabGroupControlsHTML}
2635
+ </div>
2636
+ </div>
2637
+ ` : ''}
2638
+ </main>
2639
+
2640
+ <footer class="cv-modal-footer">
2641
+ ${this.options.showReset ? `
2642
+ <button class="cv-reset-btn">
2643
+ ${getResetIcon()}
2644
+ <span>Reset to Default</span>
2645
+ </button>
2646
+ ` : ''}
2647
+ <button class="cv-share-btn">
2648
+ ${getShareIcon()}
2649
+ <span>Copy Shareable URL</span>
2650
+ </button>
2651
+ </footer>
2652
+ </div>
2667
2653
  `;
2668
2654
  document.body.appendChild(this.modal);
2669
2655
  this.attachStateModalEventListeners();
@@ -2839,7 +2825,7 @@ ${TAB_STYLES}
2839
2825
  });
2840
2826
  // Load tab group selections
2841
2827
  const activeTabs = this.core.getCurrentActiveTabs();
2842
- const tabGroupSelects = this.modal.querySelectorAll('.cv-tab-groupselect');
2828
+ const tabGroupSelects = this.modal.querySelectorAll('.cv-tabgroup-select');
2843
2829
  tabGroupSelects.forEach(select => {
2844
2830
  const groupId = select.dataset.groupId;
2845
2831
  if (groupId && activeTabs[groupId]) {
@@ -2897,29 +2883,29 @@ ${TAB_STYLES}
2897
2883
  this.modal = document.createElement('div');
2898
2884
  this.modal.className = 'cv-widget-modal-overlay cv-welcome-modal-overlay';
2899
2885
  this.applyThemeToModal();
2900
- this.modal.innerHTML = `
2901
- <div class="cv-widget-modal cv-welcome-modal">
2902
- <header class="cv-modal-header">
2903
- <div class="cv-modal-header-content">
2904
- <div class="cv-modal-icon">
2905
- ${getGearIcon()}
2906
- </div>
2907
- <h1 class="cv-modal-title">${this.options.welcomeTitle}</h1>
2908
- </div>
2909
- </header>
2910
- <div class="cv-modal-main">
2911
- <p class="cv-welcome-message">${this.options.welcomeMessage}</p>
2912
-
2913
- <div class="cv-welcome-widget-preview">
2914
- <div class="cv-welcome-widget-icon">
2915
- ${getGearIcon()}
2916
- </div>
2917
- <p class="cv-welcome-widget-label">Look for this widget</p>
2918
- </div>
2919
-
2920
- <button class="cv-welcome-got-it">Got it!</button>
2921
- </div>
2922
- </div>
2886
+ this.modal.innerHTML = `
2887
+ <div class="cv-widget-modal cv-welcome-modal">
2888
+ <header class="cv-modal-header">
2889
+ <div class="cv-modal-header-content">
2890
+ <div class="cv-modal-icon">
2891
+ ${getGearIcon()}
2892
+ </div>
2893
+ <h1 class="cv-modal-title">${this.options.welcomeTitle}</h1>
2894
+ </div>
2895
+ </header>
2896
+ <div class="cv-modal-main">
2897
+ <p class="cv-welcome-message">${this.options.welcomeMessage}</p>
2898
+
2899
+ <div class="cv-welcome-widget-preview">
2900
+ <div class="cv-welcome-widget-icon">
2901
+ ${getGearIcon()}
2902
+ </div>
2903
+ <p class="cv-welcome-widget-label">Look for this widget</p>
2904
+ </div>
2905
+
2906
+ <button class="cv-welcome-got-it">Got it!</button>
2907
+ </div>
2908
+ </div>
2923
2909
  `;
2924
2910
  document.body.appendChild(this.modal);
2925
2911
  this.attachWelcomeModalEventListeners();