.mxchat-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.4); } .mxchat-modal-content { background-color: #fefefe; margin: 15% auto; padding: 20px; border: 1px solid #ddd; width: 70%; max-width: 600px; border-radius: 4px; } .mxchat-modal-close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; } .mxchat-modal-close:hover { color: black; } .mxchat-admin .button.button-secondary.mxchat-edit-button { background: #3498db; color: #fff; border-radius: 20px; padding: 0px 20px !important; font-size: 1rem; font-weight: 700; text-decoration: none; transition: all .2s; justify-content: center; align-items: center; box-shadow: 4px 4px #2980b9; cursor: pointer; margin-top: 10px; border: none; width: 100%; } .mxchat-admin .mxchat-intents-table .mxchat-delete-all { width: 100%; } .mxchat-admin .mxchat-intents-table .mxchat-save-button { max-width: 100% !important; width: 100% !important; } .mxchat-agents-banner { background-color: #fff; margin-bottom: 20px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); position: relative; margin-left: auto; margin-right: auto; padding: 0px 15px; } .mxchat-agents-banner::before { content: ''; position: absolute; top: 0; left: 0px; width: 10px; /* Matches border-left width */ height: 100%; background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); /* Gradient */ border-radius: 4px 0 0 4px; /* Match overall border radius */ } .mxchat-agents-banner p { font-size: 14px; line-height: 1.6; color: #444; /* Dark gray text */ margin: 0; padding: 15px 10px; } .mxchat-agents-banner a { background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); /* Gradient text */ -webkit-background-clip: text; -webkit-text-fill-color: transparent; /* Makes gradient visible */ font-weight: bold; text-decoration: none; transition: opacity 0.2s ease; } .mxchat-agents-banner a:hover { opacity: 0.8; /* Subtle fade on hover */ text-decoration: underline; /* Underline for accessibility */ } .mxchat-timestamp { font-size: 10px; color: #8c8f94; margin-top: 2px; padding: 0 8px; } .mxchat-messages::-webkit-scrollbar { width: 6px; } .mxchat-messages::-webkit-scrollbar-track { background: #f1f1f1; } .mxchat-messages::-webkit-scrollbar-thumb { background: #888; border-radius: 3px; } .mxchat-process-status { margin-top: 20px; padding: 15px; background: #fff; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .mxchat-process-status h3 { margin: 0 0 15px 0; color: #23282d; font-size: 14px; font-weight: 600; } .mxchat-process-status p { margin: 8px 0; color: #555; font-size: 13px; } .mxchat-process-status .status-complete { color: #46b450; font-weight: 500; } .mxchat-process-status.complete { border-color: #46b450; } /* Toggle Switch Styles */ .mxchat-switch { position: relative; display: inline-block; width: 60px; height: 34px; margin-right: 10px; } .mxchat-switch input { opacity: 0; width: 0; height: 0; } .mxchat-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; } .mxchat-slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .mxchat-slider { background-color: #2196F3; } input:disabled + .mxchat-slider { opacity: 0.5; cursor: not-allowed; } input:checked + .mxchat-slider:before { transform: translateX(26px); } .mxchat-status-label { display: inline-block; vertical-align: middle; margin-left: 10px; } .status-text { font-weight: 500; } .mxchat-question-row { margin-bottom: 10px; } .mxchat-similarity-threshold .mxchat-slider-container { display: flex; align-items: center; gap: 15px; margin-top: 10px; } .mxchat-similarity-threshold input[type="range"] { flex: 1; margin: 0; } .mxchat-similarity-threshold .button-primary { white-space: nowrap; } .mxchat-similarity-threshold label { font-weight: bold; display: block; margin-bottom: 5px; } .mxchat-similarity-threshold { max-width: 600px; } #threshold_value_display { font-weight: normal; margin-left: 10px; color: #0073aa; } .mxchat-form-group { margin-bottom: 20px; } .mxchat-form-group input[type="range"] { width: 100%; margin-top: 10px; } .mxchat-form-group label { font-weight: bold; display: block; margin-bottom: 5px; } .mxchat-form-group .description { font-size: 0.9em; color: #666; } #threshold_value_display { font-weight: normal; margin-left: 10px; color: #0073aa; } .mxchat-product-image, .mxchat-generated-image, .mxchat-image-thumbnail { max-width: 100%; } .description { margin-top: -10px; } .mxchat-search-group { margin-top: 20px; } .tablenav .tablenav-pages { display: flex; align-items: center; margin-left: 20px; gap: 5px; } /* General Styles */ .mxchat-admin body, .mxchat-admin html { font-family: Arial, sans-serif; background-color: #fff; color: #212121; margin: 0; padding: 0; } /* Main Wrapper */ .mxchat-admin .wrap { max-width: 1200px; margin: 0 auto; padding: 20px; background: #f9f9f9; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); } /* Header */ .mxchat-admin .wrap h2 { border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; color: #212121; } .wrap.mxchat-admin .admin-title { text-shadow: 0 2px 0 #c6c6c6; font-weight: bold; letter-spacing: 5px; color: #212121; font-size: 2.5rem; } .mxchat-admin .admin-emphasis { color: white; text-shadow: 2px 1px 0 #000, -1px -1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, 0px 0 0 #000, 4px 0 0 #000, 0 0px 0 #000, 0 0px 0 #000; font-weight: bold; letter-spacing: 5px; font-size: 2.5rem; } /* Grid Layout */ .mxchat-admin .mxchat-grid-container { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 20px; } .mxchat-admin .mxchat-grid-item { background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); padding: 20px; } /* Full Width for Submit Content */ .mxchat-admin .mxchat-grid-item.full-width { grid-column: span 2; } /* Form Styles */ .mxchat-admin .mxchat-form-group { display: flex; flex-direction: column; margin-bottom: 20px; } .mxchat-admin .mxchat-form-group label { margin-bottom: 10px; font-weight: bold; color: #212121; } .mxchat-admin .mxchat-form-group input[type="url"], .mxchat-admin .mxchat-form-group input[type="text"], .mxchat-admin .mxchat-form-group textarea { padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; width: 100%; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); } /* Larger Textarea for Content Submission */ .mxchat-admin .mxchat-form-group textarea { min-height: 200px; } /* Button Styles */ .mxchat-admin .button.button-primary { color: #fff; background: #212121; border-radius: 20px; padding: 0px 30px; font-size: 1rem; font-weight: 700; text-decoration: none; transition: all .2s; display: inline-flex; justify-content: center; align-items: center; max-width: 200px; width: auto; box-shadow: 4px 4px #14141499; border: none; cursor: pointer; } .mxchat-admin .button.button-primary:hover, .mxchat-admin .button.button-primary:active { background: #444; } .submit-content-button { margin-top: 10px !important; } /* Search and Sitemap Group */ .mxchat-admin .mxchat-search-group { display: flex; align-items: center; gap: 10px; } .mxchat-admin .mxchat-search-group input[type="text"], .mxchat-admin .mxchat-search-group input[type="url"] { flex-grow: 1; } .mxchat-admin .mxchat-search-group input[type="submit"] { background: #212121; color: #fff; border-radius: 20px; padding: 0px 30px; font-size: 1rem; font-weight: 700; box-shadow: 4px 4px #14141499; border: none; transition: background-color .2s; cursor: pointer; } .mxchat-admin .mxchat-search-group input[type="submit"]:hover { background-color: #444; } .mxchat-admin .mxchat-delete-all { background: #e74c3c; color: #fff; border-radius: 20px; padding: 10px 20px !important; font-size: 1rem; font-weight: 700; text-decoration: none; transition: all .2s; justify-content: center; align-items: center; box-shadow: 4px 4px #c0392b; cursor: pointer; margin-top: 10px; border: none; } .mxchat-admin .mxchat-delete-all:hover { color: #fff; background-color: #c0392b; box-shadow: 4px 4px #a93226 } .mxchat-admin .mxchat-intents-table .mxchat-delete-all { background: #e74c3c; color: #fff; border-radius: 20px; padding: 0px 20px !important; font-size: 1rem; font-weight: 700; text-decoration: none; transition: all .2s; justify-content: center; align-items: center; box-shadow: 4px 4px #c0392b; cursor: pointer; margin-top: 10px; border: none; } .mxchat-admin .mxchat-intents-table .mxchat-delete-all:hover { color: #fff; background-color: #c0392b; box-shadow: 4px 4px #a93226; } /* Table Styles */ .mxchat-admin .wp-list-table { width: 100%; margin-top: 20px; border-collapse: collapse; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); } .mxchat-admin .wp-list-table th, .mxchat-admin .wp-list-table td { padding: 15px; border-bottom: 1px solid #ddd; text-align: left; } .mxchat-admin .wp-list-table th { background: #f0f2f5; color: #212121; } .mxchat-admin .wp-list-table tr:nth-child(even) { background: #f9f9f9; } .mxchat-admin .mxchat-pro-banner { background-color: #fff; padding: 0px 15px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */ position: relative; /* Required for the ::before pseudo-element */ } .mxchat-admin .mxchat-pro-banner::before { content: ''; position: absolute; top: 0; left: 0px; width: 10px; /* Matches the border-left width in your original CSS */ height: 100%; background-color: #212121; /* Dark bar color */ border-radius: 4px 0 0 4px; /* Rounded corners on the left */ } .mxchat-admin .mxchat-pro-banner p { margin: 0; font-size: 16px; color: #212121; padding: 15px 10px; } .mxchat-admin .mxchat-pro-banner a { color: #212121; text-decoration: none; font-weight: bold; } .mxchat-admin .mxchat-pro-banner a:hover { text-decoration: underline; } /* Toggle Switch Styles */ .mxchat-admin .toggle-switch { position: relative; display: inline-block; width: 60px; height: 34px; } .mxchat-admin .toggle-switch input { opacity: 0; width: 0; height: 0; } .mxchat-admin .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; } .mxchat-admin .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; } .mxchat-admin input:checked + .slider { background-color: #212121; } .mxchat-admin input:checked + .slider:before { transform: translateX(26px); } /* Toggle Switch Label */ .mxchat-admin .toggle-switch-label { display: flex; align-items: center; font-weight: 600; color: #212121; margin-bottom: 20px; } .mxchat-loading-text { display: none; margin-top: 10px; color: #333; } .mxchat-spinner { border: 8px solid #f3f3f3; border-top: 8px solid #333; border-radius: 50%; width: 30px; height: 30px; animation: mxchat-spin 1s linear infinite; display: flex; justify-content: center; align-items: center; } #mxchat-content-loading-text { display: none; margin-top: 10px; color: #333; } .mxchat-content-spinner { border: 8px solid #f3f3f3; border-top: 8px solid #333; border-radius: 50%; width: 30px; height: 30px; animation: mxchat-spin 1s linear infinite; display: flex; justify-content: center; align-items: center; } #mxchat-intent-loading { border: 8px solid #f3f3f3; border-top: 8px solid #333; border-radius: 50%; width: 30px; height: 30px; animation: mxchat-spin 1s linear infinite; display: inline-block; /* Display as inline for better alignment */ margin-left: 10px; vertical-align: middle; } #mxchat-intent-loading-text { display: none; margin-top: 10px; color: #333; } #mxchat-activation-spinner { border: 4px solid #f3f3f3; border-top: 4px solid #007cba; /* Match the WordPress primary button color */ border-radius: 50%; width: 20px; height: 20px; animation: mxchat-spin 1s linear infinite; display: inline-block; vertical-align: middle; margin-left: 10px; } @keyframes mxchat-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .pro-feature-wrapper.active select, .pro-feature-wrapper.active textarea { opacity: 1; /* Fully opaque when active */ } .pro-feature-wrapper.inactive select, .pro-feature-wrapper.inactive textarea { opacity: 0.5; /* Grayed out when inactive */ } .pro-feature-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; pointer-events: none; } .pro-feature-overlay img { max-width: 100px; pointer-events: auto; /* Allow clicking the image */ } .pro-feature-wrapper a { text-decoration: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; /* Ensure the link is above everything else */ } .mxchat-admin .chat-session { border: 1px solid #ddd; padding: 15px; width: calc(33.333% - 20px); box-sizing: border-box; background-color: #f9f9f9; display: flex; flex-direction: column; max-height: 500px; overflow: auto; } .mxchat-admin .chat-message { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px; } .mxchat-admin .chat-session h4 { margin-bottom: 15px; font-size: 1.1em; font-weight: 700; } .mxchat-controls { display: flex; align-items: center; margin-bottom: 15px; } .mxchat-select-all-label { margin-right: 15px; display: flex; align-items: center; } .mxchat-select-all-label input[type="checkbox"] { margin-right: 5px; } .mxchat-controls .delete-chats-button.button { padding: 6px 12px; font-size: 14px; background: #e74c3c; color: #fff; border-radius: 20px; font-weight: 700; text-decoration: none; transition: all .2s; justify-content: center; align-items: center; cursor: pointer; border: none; line-height: 1; } .mxchat-controls .delete-chats-button.button:hover { color: #fff; background-color: #c0392b; box-shadow: 4px 4px #a93226 } .mxchat-license-status.active { color: green; font-weight: bold; } .mxchat-license-status.inactive { color: red; font-weight: bold; } .mxchat-nav-tab-wrapper { margin: 0px 0px; padding: 0px 0px; display: flex; padding-left: 20px; } .mxchat-nav-tab { font-size: 14px; padding: 10px 20px; margin-right: 10px; background: #f1f1f1; border: 1px solid #ddd; border-bottom: none; cursor: pointer; box-shadow: none; color: #333; text-decoration: none; } .mxchat-nav-tab:hover, .mxchat-nav-tab:focus { background: #fff; color: #0073aa; box-shadow: none; } .mxchat-nav-tab-active { background: #fff; border-bottom: 1px solid #fff; color: #0073aa; } .mxchat-tab-content { display: none; padding: 20px; background: #fff; border: 1px solid #ddd; } .mxchat-tab-content.active { display: block; } .mxchat-settings-section { padding: 20px 0; } .mxchat-settings-section h2 { font-size: 1.2em; margin-bottom: 10px; color: #333; font-weight: bold; } .section-divider { width: 95%; height: 2px; background-color: #e0e0e0; margin: 20px auto; border-radius: 1px; } .form-table th { padding: 10px 0; vertical-align: top; width: 220px; } .form-table td { padding: 10px 0; } .mxchat-table { width: 100%; table-layout: fixed; border-collapse: collapse; border: 1px solid #ccc; /* Adds a border around the table */ } /* Header styling to match theme */ .mxchat-table th { background-color: #212121; /* Dark gray/black background */ color: #fff; /* White text */ font-weight: bold; padding: 10px; border-bottom: 3px solid #ccc; /* Thicker divider for the header */ } /* General cell styling */ .mxchat-table th, .mxchat-table td { padding: 8px 10px; text-align: left; vertical-align: top; /* Aligns content to the top of the cell */ border-bottom: 2px solid #ddd; /* Adds prominent dividers between rows */ } /* Alternate row background for better readability */ .mxchat-table tbody tr:nth-child(odd) { background-color: #f9f9f9; } .mxchat-table tbody tr:nth-child(even) { background-color: #fff; } /* ID column should be small */ .mxchat-table td:nth-child(1), .mxchat-table th:nth-child(1) { width: 15%; /* ID column */ text-align: center; } /* Content column should be wide */ .mxchat-table td:nth-child(2), .mxchat-table th:nth-child(2) { width: 50%; /* Content column */ } /* URL column */ .mxchat-table td:nth-child(3), .mxchat-table th:nth-child(3) { width: 20%; /* URL column */ text-align: left; overflow-x: auto; /* Allow the URL to scroll horizontally if it's too long */ white-space: nowrap; } /* Actions column */ .mxchat-table td:nth-child(4), .mxchat-table th:nth-child(4) { width: 15%; /* Edit/Delete column */ text-align: center; } .mxchat-intents-table { width: 100%; table-layout: fixed; border-collapse: collapse; border: 1px solid #ccc; } .mxchat-intents-table th { background-color: #212121; color: #fff; font-weight: bold; padding: 10px; border-bottom: 3px solid #ccc; } .mxchat-intents-table th, .mxchat-intents-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 2px solid #ddd; } .mxchat-intents-table tbody tr:nth-child(odd) { background-color: #f9f9f9; } .mxchat-intents-table tbody tr:nth-child(even) { background-color: #fff; } /* Intent Label column */ .mxchat-intents-table td:nth-child(1), .mxchat-intents-table th:nth-child(1) { width: 20%; } /* Phrases column */ .mxchat-intents-table td:nth-child(2), .mxchat-intents-table th:nth-child(2) { width: 30%; overflow-x: auto; } /* Callback Function column */ .mxchat-intents-table td:nth-child(3), .mxchat-intents-table th:nth-child(3) { width: 20%; } /* Similarity Threshold column */ .mxchat-intents-table td:nth-child(4), .mxchat-intents-table th:nth-child(4) { width: 15%; text-align: center; } /* Actions column */ .mxchat-intents-table td:nth-child(5), .mxchat-intents-table th:nth-child(5) { width: 15%; text-align: center; } /* Style the threshold range slider */ .mxchat-intents-threshold-form input[type="range"] { width: 100%; margin: 5px 0; } .mxchat-intents-threshold-form button { margin-top: 5px; } /* Edit content textarea styling */ .content-edit { width: 100%; /* Make textarea fill the column */ height: 100px; /* Adjust height as needed */ box-sizing: border-box; /* Ensure padding and border are included in the width/height */ } /* Button styling to match theme */ .mxchat-table td .button { display: inline-block; margin-right: 5px; background-color: #212121; color: #fff; border: none; padding: 5px 10px; text-decoration: none; border-radius: 3px; cursor: pointer; box-shadow: 4px 4px #14141499; } /* Hover state */ .mxchat-table td .button:hover { display: inline-block; margin-right: 5px; background-color: #444; color: #fff; border: none; padding: 5px 10px; text-decoration: none; border-radius: 3px; cursor: pointer; box-shadow: 4px 4px #14141499; } /* Active state */ .mxchat-table td .button:active { display: inline-block; margin-right: 5px; background-color: #444; color: #fff; border: none; padding: 5px 10px; text-decoration: none; border-radius: 3px; cursor: pointer; box-shadow: 4px 4px #14141499; } /* Focus state */ .mxchat-table td .button:focus { display: inline-block; margin-right: 5px; background-color: #444; color: #fff; border: none; padding: 5px 10px; text-decoration: none; border-radius: 3px; cursor: pointer; box-shadow: 4px 4px #14141499; outline: none; /* Removes default outline */ } /* Responsive Design */ @media (max-width: 1024px) { .mxchat-admin .mxchat-grid-container { grid-template-columns: 1fr; } .mxchat-admin .mxchat-grid-item.full-width { grid-column: span 1; } .mxchat-admin .chat-session { width: calc(100% - 0px); } .mxchat-nav-tab { padding: 10px 12px; } /* Search and Sitemap Group */ .mxchat-admin .mxchat-search-group { align-items: normal; flex-direction: column; } .mxchat-admin .mxchat-nav-tab-wrapper, .mxchat-admin .wrap h2.mxchat-nav-tab-wrapper, .mxchat-admin h1.mxchat-nav-tab-wrapper { border-bottom: 0; justify-content: space-evenly; display: flex; } .mxchat-admin .mxchat-nav-tab-wrapper .mxchat-nav-tab { margin: 0; } .mxchat-nav-tab-wrapper { padding-left: 0px; } .mxchat-session { width: 100%; } } /* Basic responsive table styles */ @media screen and (max-width: 782px) { .mxchat-intents-table { display: block; width: 100%; } .mxchat-intents-table thead { display: none; /* Hide header on mobile */ } .mxchat-intents-table tbody, .mxchat-intents-table tr, .mxchat-intents-table td { display: block; width: 100%; } .mxchat-intents-table tr { margin-bottom: 1.5rem; background: #fff; padding: 1rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); max-width: 300px; } /* Add labels before content */ .mxchat-intents-table td:before { content: attr(data-label); font-weight: 600; display: block; margin-bottom: 0.5rem; color: #1d2327; } /* Spacing between cells */ .mxchat-intents-table td { padding: 0.5rem 0; border: none; } /* Handle the slider container */ .mxchat-intents-table td:nth-child(4) { margin: 1rem 0; } /* Style the range input */ .mxchat-intents-table input[type="range"] { width: 100%; margin: 0.5rem 0; } /* Style the actions column */ .mxchat-intents-table td:last-child { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; } /* Make buttons full width on mobile */ .mxchat-intents-table .mxchat-save-button, .mxchat-intents-table .mxchat-edit-button, .mxchat-intents-table .mxchat-delete-all { width: 100%; margin: 0; } /* Adjust output display */ .mxchat-intents-table output { display: block; text-align: center; margin-top: 0.25rem; } /* Additional spacing for forms */ .mxchat-intents-table form { margin: 0; } } /* Filter section responsive styles */ @media screen and (max-width: 782px) { .mxchat-search-group { display: flex; flex-direction: column; gap: 0.5rem; } .mxchat-search-group input, .mxchat-search-group select, .mxchat-search-group button { width: 100%; margin: 0; } } /* Stats Grid */ .mxchat-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; margin-top: 20px; } .mxchat-stat-card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 15px; } .stat-icon { font-size: 24px; background: #f0f0f1; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 10px; } .stat-content { display: flex; flex-direction: column; } .stat-value { font-size: 24px; font-weight: bold; color: #1d2327; } .stat-label { color: #50575e; font-size: 14px; } /* Controls Section */ .mxchat-controls-wrapper { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; } .mxchat-controls { display: flex; gap: 15px; align-items: center; } .mxchat-search-box input { padding: 8px 12px; border-radius: 5px; border: 1px solid #dcdcde; width: 300px; } /* Select/Delete Buttons */ .mxchat-select-button { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #fff; border: 1px solid #0073aa; border-radius: 4px; color: #0073aa; cursor: pointer; transition: all 0.2s ease; } .mxchat-select-button:hover { background: #f0f7ff; } .mxchat-select-button.selected { background: #0073aa; color: #fff; } .mxchat-select-button .dashicons { font-size: 18px; width: 18px; height: 18px; transition: transform 0.2s ease; } .mxchat-select-button.selected .dashicons { transform: scale(1.2); } .delete-chats-button { display: flex !important; align-items: center; gap: 8px; background: #dc3232 !important; color: #fff !important; border: none !important; padding: 8px 16px !important; border-radius: 4px !important; cursor: pointer; transition: all 0.2s ease !important; } .delete-chats-button:hover { background: #b32d2e !important; } .delete-chats-button .dashicons { font-size: 18px; width: 18px; height: 18px; } /* Transcript Grid */ .mxchat-transcript { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } /* Session Cards */ .mxchat-session { background: white; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #dcdcde; display: flex; flex-direction: column; } .mxchat-session-header { background: #f0f0f1; padding: 15px; border-bottom: 1px solid #dcdcde; } .mxchat-messages { padding: 15px; max-height: 400px; overflow-y: auto; flex-grow: 1; overflow-x: hidden; } /* Message Styling */ .mxchat-message { margin-bottom: 15px; max-width: 85%; } .mxchat-message.user-message { margin-left: auto; } .mxchat-message-content { padding: 10px 15px; border-radius: 15px; margin: 5px 0; } .user-message .mxchat-message-content { background: #0073aa; color: white; border-radius: 18px 0 18px 18px; } .bot-message .mxchat-message-content { background: #f0f0f1; border-radius: 0 18px 18px; } .mxchat-timestamp { font-size: 12px; color: #50575e; } /* Responsive Design */ @media (max-width: 782px) { .mxchat-controls-wrapper { flex-direction: column; align-items: stretch; } .mxchat-controls { flex-direction: column; width: 100%; } .mxchat-search-box input { width: 100%; } .mxchat-transcript { grid-template-columns: 1fr; } .mxchat-select-button, .delete-chats-button { width: 100%; justify-content: center; } } /* Settings Page Container */ .mxchat-tab-content { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); } /* Form Table Layout */ .form-table { border-collapse: separate; border-spacing: 0 20px; margin-top: -20px; /* Compensate for border-spacing */ width: 100%; } .form-table th { padding: 20px 10px 20px 0; width: 200px; vertical-align: top; font-weight: 600; color: #1d2327; } .form-table td { padding: 15px 10px; vertical-align: top; } /* Input Styling */ .form-table input[type="text"], .form-table input[type="password"], .form-table textarea, .form-table select { width: 100%; max-width: 500px; padding: 8px 12px; border: 1px solid #dcdcde; border-radius: 4px; background-color: #fff; transition: all 0.2s ease; } .form-table input[type="text"]:focus, .form-table input[type="password"]:focus, .form-table textarea:focus, .form-table select:focus { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; outline: none; } /* Range Input Styling */ input[type="range"] { -webkit-appearance: none; width: 200px; height: 4px; background: #dcdcde; border-radius: 2px; vertical-align: middle; } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: #2271b1; cursor: pointer; transition: all 0.2s ease; } input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); } #mxchat_threshold_value { display: inline-block; padding: 4px 8px; background: #2271b1; color: white; border-radius: 4px; margin-left: 10px; font-size: 12px; min-width: 30px; text-align: center; } /* Toggle Switch */ .toggle-switch { position: relative; display: inline-block; width: 50px; height: 24px; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: #2271b1; } input:checked + .slider:before { transform: translateX(26px); } /* Description Text */ .description { margin-top: 8px; color: #646970; font-style: italic; font-size: 13px; } /* Show/Hide Password Button */ button[id^="toggleApiKey"], button[id^="toggleXaiKey"], button[id^="toggleClaudeKey"] { margin-left: 10px; padding: 4px 12px; background: #f0f0f1; border: 1px solid #c3c4c7; border-radius: 3px; cursor: pointer; transition: all 0.2s ease; } button[id^="toggleApiKey"]:hover, button[id^="toggleXaiKey"]:hover, button[id^="toggleClaudeKey"]:hover { background: #e5e5e5; } /* Additional Questions Section */ .mxchat-question-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; } .mxchat-question-row input { flex: 1; } .mxchat-remove-question, .mxchat-add-question { padding: 4px 12px !important; height: auto !important; } .mxchat-remove-question { background: #dc3232 !important; color: white !important; border: none !important; } .mxchat-add-question { background: #2271b1 !important; color: white !important; border: none !important; margin-top: 10px; } /* Pro Feature Wrapper */ .pro-feature-wrapper { position: relative; } .pro-feature-wrapper.inactive { opacity: 0.7; } /* Responsive Design */ @media screen and (max-width: 782px) { .form-table td { padding-left: 0; } .form-table input[type="text"], .form-table input[type="password"], .form-table textarea, .form-table select { max-width: 100%; } .form-table th { padding-bottom: 5px; } .mxchat-question-row { flex-direction: column; gap: 5px; } input[type="range"] { width: 100%; max-width: 300px; } } /* Section Headers */ .mxchat-tab-content h2 { font-size: 1.5em; padding-bottom: 15px; margin-bottom: 25px; border-bottom: 2px solid #f0f0f1; color: #1d2327; } /* Grouped Settings */ .form-table tr:not(:last-child) { border-bottom: 1px solid #f0f0f1; } /* Show/Hide Button - Universal Selector for all toggle buttons */ button[id^="toggle"] { padding: 8px 16px; background: #f0f0f1; border: 1px solid #dcdcde; border-radius: 4px; cursor: pointer; color: #1d2327; font-size: 13px; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; height: 36px; min-width: 80px; margin-left: 10px; } /* Specific selectors for backward compatibility */ button[id^="toggleApiKey"], button[id^="toggleXaiApiKey"], button[id^="toggleClaudeApiKey"], button[id^="toggleWooCommerceSecretVisibility"], button[id^="toggleBraveApiKeyVisibility"], button[id^="toggleLoopsApiKeyVisibility"], button[id^="toggleWebhookUrlVisibility"], button[id^="toggleSecretKeyVisibility"], button[id^="toggleBotTokenVisibility"] { padding: 8px 16px; background: #f0f0f1; border: 1px solid #dcdcde; border-radius: 4px; cursor: pointer; color: #1d2327; font-size: 13px; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; height: 36px; min-width: 80px; margin-left: 10px; } /* Hover state for all toggle buttons */ button[id^="toggle"]:hover { background: #e5e5e5; border-color: #c3c4c7; } /* Active state for all toggle buttons */ button[id^="toggle"]:active { background: #dcdcde; border-color: #c3c4c7; transform: translateY(1px); } /* Responsive Design */ @media screen and (max-width: 782px) { .pro-feature-wrapper { flex-wrap: wrap; } /* Make all toggle buttons full width on mobile */ button[id^="toggle"] { width: 100%; margin-left: 0; margin-top: 10px; } .mxchat-remove-question { width: 100%; } }