.wp-core-ui .notice.is-dismissible { z-index: 10000; } #system_prompt_instructions { transition: height 0.3s ease; } .red-warning { color: red; } .mxchat-form-intent { background-color: rgba(240, 240, 245, 0.5); } /* Style the Add Ons submenu item with subtle gradient */ #adminmenu a[href="admin.php?page=mxchat-addons"] { position: relative; border-left: 3px solid #fa73e6; font-weight: 600; background-color: rgba(120, 115, 245, 0.08) !important; } /* Make the text stand out a bit more when active */ #adminmenu .current a[href="admin.php?page=mxchat-addons"] { color: white !important; } /* Add hover effect with smooth transition */ #adminmenu a[href="admin.php?page=mxchat-addons"]:hover { background-color: rgba(120, 115, 245, 0.12) !important; color: white !important; } .mxchat-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; background: #7873f5; color: white; font-size: 12px; margin-left: 8px; } .mxchat-threshold-readonly { padding: 8px; background: rgba(120, 115, 245, 0.1); border-radius: 4px; text-align: center; } .mxchat-form-intent .mxchat-button-secondary { background: #7873f5; color: white; border: none; padding: 6px 12px; border-radius: 4px; text-decoration: none; display: inline-block; } .mxchat-form-intent .mxchat-button-secondary:hover { background: #6863e5; } /* Tab Navigation */ .mxchat-tabs { border-bottom: 1px solid #ccc; margin-bottom: 20px; padding-bottom: 0; } .mxchat-default-db-h2 { text-align: center; margin: 0px; padding: 0px; } .mxchat-tab-button { background: #f1f1f1; border: 1px solid #ccc; border-bottom: none; color: #555; cursor: pointer; font-size: 14px; margin: 0 5px -1px 0; padding: 10px 15px; transition: all 0.3s ease; } .mxchat-tab-button.active { background: #fff; border-bottom: 1px solid #fff; color: #000; } #default-db.mxchat-tab-content, #pinecone-db.mxchat-tab-content { border: none; box-shadow: none; padding: 0px; } .mxchat-tab-content.active { display: block; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .mxchat-tab-content.active { display: block; } /* Pinecone Settings Styling */ .mxchat-input-group { margin-bottom: 20px; } .mxchat-input-group label { display: block; font-weight: 600; margin-bottom: 5px; } .mxchat-input-group .description { color: #666; font-style: italic; margin-top: 5px; } .mxchat-sync-settings { background: #fff; border-radius: 5px; } .mxchat-toggle-container { margin-bottom: 15px; } .mxchat-toggle-switch { position: relative; display: inline-block; width: 60px; height: 34px; } .mxchat-toggle-switch input { opacity: 0; width: 0; height: 0; } .mxchat-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; } .mxchat-toggle-slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .mxchat-toggle-slider { background-color: #2196F3; } input:checked + .mxchat-toggle-slider:before { transform: translateX(26px); } .mxchat-toggle-label { vertical-align: super; font-weight: 500; } .mxchat-knowledge-container { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; padding: 1rem; background: #fff; border-radius: 10px; border: 1px solid #ddd; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); } /* Left Column */ .mxchat-knowledge-controls { flex: 1; display: flex; gap: 1rem; justify-content: space-between; align-items: center; } .mxchat-controls-header { display: flex; justify-content: space-between; align-items: center; } .displaying-num { color: #666; font-size: 0.9rem; } .mxchat-delete-all { color: #dc3545; border-color: #dc3545; } .mxchat-delete-all:hover { background: #dc3545; color: #fff; } .mxchat-pagination .page-numbers { padding: 0.25rem 0.5rem; margin: 0 0.25rem; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; } .mxchat-pagination .current { background: #2271b1; color: #fff; border-color: #2271b1; } /* Right Column */ .mxchat-knowledge-search { flex: 1; } .search-input { flex: 1; padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px; } .search-button { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; } /* Mobile Responsiveness */ @media screen and (max-width: 782px) { .mxchat-pro-notification ul { padding-left: 1.2em; /* Add left padding so bullets appear nicely */ margin: 0.5em 0; text-align: left; list-style: disc; /* or 'none' if you don’t want bullets */ } .mxchat-pro-notification ul li { text-align: left; margin-bottom: 0.3em; } .mxchat-pro-content p { text-align: left; } .mxchat-knowledge-controls { flex-direction: column; } .mxchat-addon-notice-buttons { flex-direction: column; } .mxchat-grid-container { display: grid; /* Add these properties */ max-width: 100%; /* Constrain to parent width */ width: 100%; overflow-x: hidden; /* Prevent horizontal scrolling */ grid-template-columns: 1fr; /* Single column layout */ grid-gap: 20px; } .mxchat-controls-header { flex-direction: column; gap: 1rem; align-items: flex-start; } .mxchat-search-group { flex-direction: column; } } .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; } .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; border-radius: 10px; } /* 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 input[type="password"], .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-search-group .button.button-primary.search-button { box-shadow: none; border-radius: 0px 20px 20px 0px; margin-bottom: 0px; padding: 0px 15px; } .mxchat-search-group .button.button-primary.search-button:hover { opacity: .8px; } .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; gap: 0px; max-width: 800px; margin: auto; margin-top: 20px; align-items: stretch; flex-direction: row; } .mxchat-admin .mxchat-search-group input[type="text"], .mxchat-admin .mxchat-search-group input[type="url"] { flex-grow: 1; border-radius: 20px 0px 0px 20px; padding: 8px; } .mxchat-search-group #mxchat-intent-search { border-radius: 0px 0px 0px 0px; } .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, .button.button-link-delete.mxchat-delete-all { background: #e74c3c; color: #fff; border-radius: 20px; padding: 0px 15px !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-bottom: 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-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.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; } .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; } } /* 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; } } /* 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%; } } .mxchat-flex-section h2 { margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; } .mxchat-sync-settings, .mxchat-import-section { flex: 1; } .mxchat-toggle-group { display: flex; flex-direction: column; gap: 0.75rem; } .mxchat-toggle-container { display: flex; align-items: center; gap: 0.75rem; } .mxchat-toggle-switch { position: relative; display: inline-block; width: 44px; height: 22px; } .mxchat-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 22px; } .mxchat-toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .mxchat-toggle-slider { background-color: #2196F3; } input:checked + .mxchat-toggle-slider:before { transform: translateX(22px); } .mxchat-url-input-group { display: flex; gap: 0.5rem; } .mxchat-url-input-group input[type="url"] { flex: 1; } .mxchat-status-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eee; } .mxchat-process-status { background: #f8f9fa; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; } .status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .status-header h4 { margin: 0; } .progress-bar { background: #eee; border-radius: 4px; height: 8px; margin-bottom: 0.5rem; } .progress { background: #2196F3; height: 100%; border-radius: 4px; transition: width 0.3s ease; } .status-details { display: flex; justify-content: space-between; font-size: 0.9em; color: #666; } .save-button-settings { background: #3498db !important; color: #fff !important; border-radius: 20px !important; padding: 0px 20px !important; font-size: 1rem !important; font-weight: 700 !important; text-decoration: none !important; transition: all .2s !important; box-shadow: 4px 4px #2980b9 !important; cursor: pointer !important; margin-top: 10px !important; border: none !important; margin-bottom: 10px !important; } .mxchat-import-description { margin-bottom: 1rem; } .description-text { margin: 0 0 0.5rem; color: #666; } .import-options { margin: 0 0 1rem; padding-left: 1.5rem; } .import-options li { margin-bottom: 0.25rem; color: #666; } .import-options strong { color: #333; } .import-section { margin-top: 50px; } /* Mobile Responsiveness */ @media screen and (max-width: 782px) { .mxchat-settings-row { flex-direction: column; } .mxchat-url-input-group input[type="submit"] { width: 100%; } } /* Feedback container for saving indicator */ .feedback-container { display: inline-flex; align-items: right; margin-left: 10px; position: relative; z-index: 2; } /* Spinner animation */ .saving-spinner { width: 16px; height: 16px; border: 2px solid #ccc; border-top-color: #007cba; /* WordPress blue */ border-radius: 50%; animation: spin 0.6s linear infinite; } /* Checkmark icon */ .success-icon { display: none; color: #28a745; /* Green for success */ font-size: 16px; font-weight: bold; margin-left: 5px; animation: fadeInOut 1.5s ease-in-out forwards; } /* Spinner animation keyframes */ @keyframes spin { to { transform: rotate(360deg); } } /* Success icon fade animation */ @keyframes fadeInOut { 0% { opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } } .slider-container { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .range-slider { flex-grow: 1; max-width: 300px; } .range-value { min-width: 30px; text-align: center; } /* Optional: Style the range input */ input[type="range"] { -webkit-appearance: none; width: 100%; height: 8px; background: #ddd; border-radius: 4px; outline: none; } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: #2271b1; border-radius: 50%; cursor: pointer; } /* Container Styles */ .mxchat-import-container { background: #fff; padding: 20px; border: 1px solid #e1e1e1; border-radius: 10px; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); } /* Tabs Navigation */ .mxchat-tabs { display: flex; border-bottom: 2px solid #e1e1e1; margin-bottom: 20px; } .mxchat-tab-button { padding: 10px 20px; cursor: pointer; background: transparent; border: none; border-bottom: 2px solid transparent; transition: all 0.3s ease; font-size: 16px; color: #333; } .mxchat-tab-button:hover, .mxchat-tab-button:focus { background: #f9f9f9; } .mxchat-tab-button.active { border-bottom: 2px solid #0073aa; font-weight: bold; color: #0073aa; } /* Flex Container for Default DB Tab */ .mxchat-flex-container { display: flex; gap: 20px; flex-wrap: wrap; } .mxchat-sync-column, .mxchat-import-column { flex: 1; min-width: 300px; } /* Section Headings and Descriptions */ .mxchat-section h3 { font-size: 18px; margin-bottom: 10px; color: #0073aa; } .mxchat-description { font-size: 14px; margin-bottom: 15px; color: #555; } /* Toggle Switches */ .mxchat-toggle-container { display: flex; align-items: center; margin-bottom: 15px; } .mxchat-toggle-switch { position: relative; display: inline-block; width: 50px; height: 24px; margin-right: 10px; } .mxchat-toggle-switch input { opacity: 0; width: 0; height: 0; } .mxchat-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: 0.4s; border-radius: 24px; } .mxchat-toggle-switch input:checked + .mxchat-toggle-slider { background-color: #212121; } .mxchat-toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: 0.4s; border-radius: 50%; } .mxchat-toggle-switch input:checked + .mxchat-toggle-slider:before { transform: translateX(26px); } .mxchat-toggle-label { font-size: 14px; color: #333; } /* Form Groups */ .mxchat-form-group { margin-bottom: 15px; } .mxchat-form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #333; } .mxchat-form-group .description { font-size: 12px; color: #777; } /* URL and Pinecone Input Groups */ .mxchat-url-input-group, .mxchat-pinecone-input-group { display: flex; gap: 0px; margin-bottom: 15px; } .mxchat-url-input-group input[type="url"], .mxchat-pinecone-input-group input[type="url"] { flex: 1; padding: 8px; border: 1px solid #ccc; border-radius: 4px 0px 0px 4px; } .mxchat-url-input-group input[type="submit"], .mxchat-pinecone-input-group input[type="submit"] { padding: 8px 16px; background-color: #0073aa; color: #fff; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s ease; } .mxchat-url-input-group input[type="submit"]:hover, .mxchat-pinecone-input-group input[type="submit"]:hover { background-color: #005177; } /* Submit Wrapper */ .mxchat-submit-wrapper { margin-top: 20px; } /* Import & Pinecone Options List */ .import-options, .pinecone-options { margin: 10px 0 15px 20px; color: #555; } .import-options li, .pinecone-options li { margin-bottom: 5px; } /* Spinner Styles */ .mxchat-spinner, .mxchat-pinecone-spinner { border: 4px solid #f3f3f3; border-top: 4px solid #0073aa; border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; margin: 10px auto; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Processing Status Messages */ .mxchat-process-status, .mxchat-pinecone-status { border: 1px solid #0073aa; background-color: #f1f8ff; padding: 10px; border-radius: 4px; margin-top: 15px; } .mxchat-process-status h3, .mxchat-pinecone-status h3 { margin-top: 0; font-size: 16px; color: #0073aa; } .mxchat-process-status p, .mxchat-pinecone-status p { margin: 5px 0; font-size: 14px; color: #333; } /* Responsive Adjustments */ @media (max-width: 768px) { .mxchat-flex-container { flex-direction: column; } } .button.button-primary.pinecone-submit { box-shadow: none; border-radius: 0px 4px 4px 0px; background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); margin-bottom: 0px; } .button.button-primary.pinecone-submit:hover { opacity: .8; background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); } /* Pro Hero Section */ body.wp-admin .mxchat-pro-hero { text-align: center; padding: 3.5rem 2rem; position: relative; background: #212121; border-bottom: 4px solid transparent; border-image: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); border-image-slice: 1; } body.wp-admin .mxchat-pro-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient( circle at center, rgba(250, 115, 230, 0.08) 0%, rgba(120, 115, 245, 0.08) 50%, rgba(58, 201, 209, 0.08) 100% ); z-index: 1; } body.wp-admin .mxchat-pro-hero::after { content: ''; position: absolute; bottom: -20px; left: 0; width: 100%; height: 20px; background: linear-gradient(180deg, rgba(33, 33, 33, 0.2) 0%, transparent 100%); z-index: 2; } body.wp-admin .pro-title { font-size: 3.5rem; margin: 0 0 1.5rem; line-height: 1.2; color: white; position: relative; z-index: 2; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; } body.wp-admin .pro-gradient-text { font-weight: 700; background: linear-gradient(135deg, #fa73e6, #7873f5, #3ac9d1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; } body.wp-admin .pro-subtitle { font-size: 1.25rem; color: rgba(255, 255, 255, 0.9); max-width: 600px; margin: 0 auto; position: relative; z-index: 2; line-height: 1.6; } /* Responsive Design */ @media (max-width: 768px) { body.wp-admin .pro-title { font-size: 2.1rem; margin-bottom: 1rem; } body.wp-admin .mxchat-pro-hero { padding: 2.5rem 1.5rem; } body.wp-admin .pro-subtitle { font-size: 1.1rem; } } /* Form Container Styles */ body.wp-admin .wrap.mxchat-admin-activation .mxchat-pro-form-container { max-width: 600px; margin: 2rem auto; background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); } /* Form Table Styles */ body.wp-admin .wrap.mxchat-admin-activation .mxchat-pro-form .form-table { margin: 0; border-collapse: separate; border-spacing: 0 1rem; } body.wp-admin .wrap.mxchat-admin-activation .mxchat-pro-form .form-table th { padding: 0 1rem 0 0; width: 140px; font-weight: 600; color: #212121; font-size: 15px; vertical-align: middle; } /* Input Field Styles */ body.wp-admin .wrap.mxchat-admin-activation .mxchat-pro-input { width: 100%; padding: 10px 16px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 15px; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); } body.wp-admin .wrap.mxchat-admin-activation .mxchat-pro-input:focus { border-color: #7873f5; box-shadow: 0 0 0 3px rgba(120, 115, 245, 0.1); outline: none; } /* Button Container and Button Styles */ body.wp-admin .wrap.mxchat-admin-activation .mxchat-pro-button-container { margin-top: 2rem; text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; } body.wp-admin .wrap.mxchat-admin-activation .mxchat-pro-button { background: linear-gradient(135deg, #fa73e6, #7873f5); border: none; padding: 12px 24px; border-radius: 8px; color: white; font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.3s ease; text-shadow: none; box-shadow: 0 4px 12px rgba(120, 115, 245, 0.2); height: auto; line-height: 1.4; } body.wp-admin .wrap.mxchat-admin-activation .mxchat-pro-button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(120, 115, 245, 0.3); } /* Error Notice Styles */ body.wp-admin .wrap.mxchat-admin-activation .error.notice { margin: 2rem auto; max-width: 600px; border-left-color: #dc3232; background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(220, 50, 50, 0.1); } /* License Status Styles */ body.wp-admin .wrap.mxchat-admin-activation .mxchat-pro-status { max-width: 600px; margin: 2rem; padding: 1.5rem; background: white; border-radius: 12px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); } body.wp-admin .wrap.mxchat-admin-activation .mxchat-pro-status h3 { margin: 0; font-size: 15px; color: #212121; display: flex; align-items: center; gap: 0.5rem; } body.wp-admin .wrap.mxchat-admin-activation .mxchat-status-badge { padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; } body.wp-admin .wrap.mxchat-admin-activation .mxchat-status-badge.active { background: #e8f5e9; color: #2e7d32; } body.wp-admin .wrap.mxchat-admin-activation .mxchat-status-badge.inactive { background: #fff3e0; color: #ef6c00; } /* Spinner Styles */ body.wp-admin .wrap.mxchat-admin-activation .mxchat-activation-spinner { width: 20px; height: 20px; border: 2px solid rgba(120, 115, 245, 0.3); border-radius: 50%; border-top-color: #7873f5; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Responsive Adjustments */ @media (max-width: 782px) { body.wp-admin .wrap.mxchat-admin-activation .mxchat-pro-form .form-table th { padding-bottom: 0.5rem; } body.wp-admin .wrap.mxchat-admin-activation .form-table, body.wp-admin .wrap.mxchat-admin-activation .form-table tbody, body.wp-admin .wrap.mxchat-admin-activation .form-table tr, body.wp-admin .wrap.mxchat-admin-activation .form-table th, body.wp-admin .wrap.mxchat-admin-activation .form-table td { display: block; width: 100%; padding: 0; } body.wp-admin .wrap.mxchat-admin-activation .form-table td { margin-bottom: 1.5rem; } } .video-tutorials-section { max-width: 1200px; margin: 0 auto; padding: 0; } .section-intro { text-align: center; margin-bottom: 2rem; font-size: 1.1rem; } .tutorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; } .tutorial-item { border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; background-color: #fff; } .tutorial-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .tutorial-item h3 { margin-top: 0; font-size: 1.2rem; color: #333; border-bottom: 2px solid #f0f0f0; padding-bottom: 0.75rem; margin-bottom: 1rem; } .video-description p { margin-bottom: 1rem; color: #555; } .video-description small { color: #888; font-style: italic; } .video-link { display: inline-flex; align-items: center; text-decoration: none; color: #0073aa; font-weight: 500; margin-top: 0.5rem; padding: 0.5rem 1rem; border-radius: 4px; background-color: #f7f7f7; transition: background-color 0.2s ease; } .video-link:hover { background-color: #e6f3fa; color: #004d74; } .video-icon { margin-right: 0.5rem; display: inline-flex; color: #e62117; } .support-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e0e0e0; text-align: center; } .support-content { max-width: 800px; margin: 0 auto; background-color: #f9f9f9; padding: 2rem; border-radius: 8px; } .support-content p { margin-bottom: 1rem; font-size: 1.1rem; line-height: 1.6; } .support-content a { color: #0073aa; font-weight: 500; text-decoration: none; padding: 0.2rem 0.4rem; border-radius: 3px; transition: background-color 0.2s; } .support-content a:hover { background-color: #e6f3fa; text-decoration: underline; } .api-info-item h4 { margin-top: 0; color: #333; margin-bottom: 1rem; } @media (max-width: 768px) { .tutorial-grid { grid-template-columns: 1fr; } .tutorial-item { padding: 1rem; } .support-content { padding: 1.5rem; } } /* Additional CSS for the main admin page */ /* Pro and Add-on notice messages */ .mxchat-pro-notice, .mxchat-addon-notice { margin: 0; line-height: 1.6; color: #333; } .mxchat-pro-notice a, .mxchat-addon-notice a { text-decoration: none; font-weight: 600; transition: color 0.2s ease; } .mxchat-pro-notice a:hover, .mxchat-addon-notice a:hover { text-decoration: underline; color: #fff; } /* Tutorial Grid & Items */ .tutorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 20px; } .tutorial-item { background: #f8f9ff; border-radius: 12px; padding: 24px; transition: all 0.3s ease; border: 1px solid rgba(120, 115, 245, 0.1); } .tutorial-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(120, 115, 245, 0.12); } .tutorial-item h3 { margin-top: 0; margin-bottom: 16px; color: #333; font-size: 1.2rem; } .video-description p { color: #666; font-size: 0.95rem; margin-bottom: 16px; } .video-description small { color: #888; font-size: 0.85rem; font-style: italic; } .video-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: white; border-radius: 8px; text-decoration: none; color: #7873f5; font-weight: 600; font-size: 0.9rem; border: 1px solid rgba(120, 115, 245, 0.2); transition: all 0.2s ease; } .video-link:hover { background: #eef0ff; color: #fa73e6; } .video-icon { display: flex; align-items: center; justify-content: center; } /* Support Section */ .support-section { margin-top: 40px; padding: 24px; background: #f8f9ff; border-radius: 12px; border: 1px solid rgba(120, 115, 245, 0.1); } .support-section h3 { margin-top: 0; color: #333; } .support-content p { color: #666; margin-bottom: 12px; } .support-content a { color: #7873f5; text-decoration: none; font-weight: 600; } .support-content a:hover { color: #fa73e6; text-decoration: underline; } /* Updated tab navigation */ .mxchat-tabs { display: flex; gap: 2px; margin-bottom: 20px; border-bottom: 1px solid rgba(120, 115, 245, 0.1); } .mxchat-tab-button { padding: 12px 24px; background: none; border: none; border-bottom: 2px solid transparent; color: #666; cursor: pointer; font-size: 14px; transition: all 0.2s ease; } .mxchat-tab-button:hover { color: #7873f5; } .mxchat-tab-button.active { color: #7873f5; border-bottom-color: #7873f5; } /* Tab content */ .mxchat-tab-content { display: none; } .mxchat-tab-content.active { display: block; } /* Pro Notification Styling */ .mxchat-pro-card { background: linear-gradient(90deg, #f8f9ff 0%, #f0f4ff 100%); border-left: 4px solid #6366f1; border-radius: 8px; box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1); margin-bottom: 25px; overflow: hidden; } .mxchat-pro-notification { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 20px 24px; } @media (max-width: 768px) { .mxchat-pro-notification { flex-direction: column; text-align: center; gap: 15px; } } .mxchat-pro-content { flex: 1; padding-right: 10px; } .mxchat-pro-content h3 { margin-top: 0; margin-bottom: 8px; font-size: 18px; color: #4338ca; font-weight: 600; } .mxchat-pro-content p { margin: 0; color: #4b5563; font-size: 14px; line-height: 1.5; } .mxchat-pro-cta { display: flex; flex-direction: column; gap: 8px; min-width: 180px; } .mxchat-button { display: inline-block; background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%); color: white !important; font-weight: 600; padding: 10px 20px; border-radius: 6px; text-decoration: none !important; text-align: center; transition: all 0.2s ease; box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3); } .mxchat-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); } .mxchat-link { color: #6366f1 !important; text-decoration: none !important; text-align: center; font-size: 14px; padding: 4px; } .mxchat-link:hover { text-decoration: underline !important; } /* API Key field styles */ .api-key-wrapper { margin-bottom: 15px; padding: 15px; border-radius: 5px; border-left: 4px solid #2271b1; background-color: #f0f6fc; transition: all 0.3s ease; } /* Row-level visibility handling */ tr.mxchat-setting-row { display: table-row; transition: all 0.3s ease; } tr.mxchat-setting-row.highlighted { animation: highlight-row 1.5s ease; } .api-key-wrapper input[type="password"] { margin-right: 10px; } .api-key-wrapper button { background: #f6f7f7; border: 1px solid #c3c4c7; color: #50575e; cursor: pointer; border-radius: 3px; padding: 0 10px; height: 30px; line-height: 28px; font-size: 13px; } .api-key-wrapper button:hover { background: #f0f0f1; } .api-key-notice { margin-top: 8px !important; color: #1e1e1e; font-style: italic; } @keyframes highlight-field { 0% { background-color: #e5f5fa; } 50% { background-color: #c7e8f3; } 100% { background-color: #f0f6fc; } } @keyframes highlight-row { 0% { background-color: transparent; } 50% { background-color: #e5f5fa; } 100% { background-color: transparent; } } /* Customize the look based on provider */ .api-key-wrapper[data-provider="openai"] { border-left-color: #10a37f; } .api-key-wrapper[data-provider="xai"] { border-left-color: #0077e6; } .api-key-wrapper[data-provider="claude"] { border-left-color: #a065d5; } .api-key-wrapper[data-provider="deepseek"] { border-left-color: #3b7fc4; } .api-key-wrapper[data-provider="voyage"] { border-left-color: #ff6b00; } /* Add-on styling */ .mxchat-addon-badge { display: inline-block; background: linear-gradient(135deg, #FF8C00, #FFA500); color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; margin-top: 5px; font-weight: 600; margin-left: 6px; } .mxchat-addon-info { font-size: 11px; color: #666; margin-top: 8px; background: rgba(255, 140, 0, 0.1); padding: 4px 8px; border-radius: 4px; display: inline-block; } .mxchat-action-type-card.not-installed { opacity: 0.8; border-style: dashed; background: rgba(255, 255, 255, 0.8); } .mxchat-action-type-card.not-installed:hover { opacity: 1; border-color: #FF8C00; box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1); } /* Add-on Notice */ .mxchat-addon-notice { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 100003; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .mxchat-addon-notice.active { opacity: 1; visibility: visible; } .mxchat-addon-notice-content { background: white; padding: 30px; border-radius: 16px; max-width: 400px; text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); transform: translateY(-20px); transition: transform 0.3s ease; } .mxchat-addon-notice.active .mxchat-addon-notice-content { transform: translateY(0); } .mxchat-addon-notice-icon { font-size: 36px; margin-bottom: 15px; display: block; } .mxchat-addon-notice h3 { margin: 0 0 10px 0; font-size: 20px; background: linear-gradient(135deg, #FF8C00, #FFA500); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; } .mxchat-addon-notice p { margin: 0 0 20px 0; color: #666; } .mxchat-addon-notice-buttons { display: flex; gap: 10px; justify-content: center; } /* CSS for the custom post types accordion */ .mxchat-settings-accordion { margin: 15px 0; border-radius: 4px; overflow: hidden; border: 1px solid #e0e0e5; } .mxchat-accordion-header { border-bottom: none; } .mxchat-accordion-button { background-color: #f7f7f9; border: none; color: #444; cursor: pointer; font-size: 15px; font-weight: 500; padding: 14px 20px; text-align: left; transition: all 0.2s ease; width: 100%; display: flex; justify-content: space-between; align-items: center; outline: none; } .mxchat-accordion-button:hover { background-color: #f0f0f5; } .mxchat-accordion-icon { font-size: 12px; color: #666; transition: transform 0.3s ease; } .mxchat-accordion-content { border-top: 1px solid #e0e0e5; transition: all 0.3s ease; } .mxchat-accordion-inner { padding: 16px 20px; background-color: #fff; } /* Make the custom post types look nicer */ .mxchat-custom-post-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 10px; } .mxchat-description { margin-bottom: 15px; color: #666; } .mxchat-empty-notice { color: #888; font-style: italic; } /* Model Selector Button Styles */ .mxchat-model-selector-wrapper { width: 100%; position: relative; } .mxchat-model-selector-display { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background-color: #fff; border: 1px solid #8c8f94; border-radius: 4px; cursor: pointer; min-height: 30px; line-height: 1.4; box-sizing: border-box; transition: border-color 0.2s; } .mxchat-model-selector-display:hover { border-color: #2271b1; } .mxchat-model-selected-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; } .mxchat-model-selector-arrow { margin-left: 8px; font-size: 10px; color: #555; } /* Provider-specific border colors */ .mxchat-model-provider-gemini { border-left: 3px solid #4285F4; } .mxchat-model-provider-openai { border-left: 3px solid #10A37F; } .mxchat-model-provider-claude { border-left: 3px solid #965de9; } .mxchat-model-provider-xai { border-left: 3px solid #000000; } .mxchat-model-provider-deepseek { border-left: 3px solid #0066cc; } /* Modal Styles */ .mxchat-model-selector-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.5); } .mxchat-model-selector-modal .mxchat-model-selector-modal-content { background-color: #fff; margin: 5% auto; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); width: 80%; max-width: 800px; animation: mxchatModalFade 0.3s; } @keyframes mxchatModalFade { from {opacity: 0; transform: translateY(-20px);} to {opacity: 1; transform: translateY(0);} } .mxchat-model-selector-modal .mxchat-model-selector-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #eee; } .mxchat-model-selector-modal .mxchat-model-selector-modal-header h3 { margin: 0; color: #6750A4; font-size: 20px; } .mxchat-model-selector-modal .mxchat-model-selector-modal-close { font-size: 24px; cursor: pointer; color: #888; } .mxchat-model-selector-modal .mxchat-model-selector-modal-close:hover { color: #333; } .mxchat-model-selector-modal .mxchat-model-selector-modal-body { padding: 24px; max-height: 60vh; overflow-y: auto; } .mxchat-model-selector-modal .mxchat-model-selector-modal-footer { padding: 16px 24px; border-top: 1px solid #eee; text-align: right; } /* Search and Category Styles */ .mxchat-model-selector-modal .mxchat-model-selector-search-container { margin-bottom: 20px; } .mxchat-model-selector-modal .mxchat-model-search-input { width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; } .mxchat-model-selector-modal .mxchat-model-selector-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; } .mxchat-model-selector-modal .mxchat-model-category-btn { background-color: #f5f5f5; border: 1px solid #ddd; padding: 8px 16px; border-radius: 20px; cursor: pointer; transition: all 0.2s; } .mxchat-model-selector-modal .mxchat-model-category-btn.active { background-color: #6750A4; color: white; border-color: #6750A4; } /* Model Grid Styles */ .mxchat-model-selector-modal .mxchat-model-selector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; } .mxchat-model-selector-modal .mxchat-model-selector-card { display: flex; border: 1px solid #ddd; border-radius: 8px; padding: 16px; cursor: pointer; transition: all 0.2s; position: relative; } .mxchat-model-selector-modal .mxchat-model-selector-card:hover { border-color: #6750A4; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-selected { border-color: #6750A4; background-color: rgba(103, 80, 164, 0.05); } /* Provider-specific styles for cards */ .mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-gemini { border-left: 4px solid #4285F4; } .mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-openai { border-left: 4px solid #10A37F; } .mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-claude { border-left: 4px solid #965de9; } .mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-xai { border-left: 4px solid #000000; } .mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-deepseek { border-left: 4px solid #0066cc; } .mxchat-model-selector-modal .mxchat-model-selector-icon { margin-right: 12px; font-size: 24px; display: flex; align-items: center; width: 25px; height: 45px; } .mxchat-model-selector-modal .mxchat-model-icon-gemini { color: #4285F4; } .mxchat-model-selector-modal .mxchat-model-icon-openai { color: #10A37F; } .mxchat-model-selector-modal .mxchat-model-icon-claude { color: #965de9; } .mxchat-model-selector-modal .mxchat-model-icon-xai { color: #000000; } .mxchat-model-selector-modal .mxchat-model-icon-deepseek { color: #0066cc; } .mxchat-model-selector-modal .mxchat-model-selector-info { flex: 1; } .mxchat-model-selector-modal .mxchat-model-selector-title { margin: 0 0 6px 0; font-size: 16px; } .mxchat-model-selector-modal .mxchat-model-selector-description { margin: 0; font-size: 14px; color: #666; } .mxchat-model-selector-modal .mxchat-model-selector-checkmark { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; background-color: #6750A4; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; } /* Media queries for responsive design */ @media screen and (max-width: 782px) { .mxchat-model-selector-modal .mxchat-model-selector-modal-content { width: 95%; margin: 10% auto; } .mxchat-model-selector-modal .mxchat-model-selector-grid { grid-template-columns: 1fr; } .mxchat-model-selector-modal .mxchat-model-selector-categories { overflow-x: auto; padding-bottom: 10px; } } /* Improved styling for the model selector button */ #mxchat_model_selector_btn.mxchat-model-selector-btn { width: 100%; max-width: 400px; text-align: left; padding: 8px 12px; height: auto; min-height: 36px; background-color: #fff; color: #2c3338; border: 1px solid #8c8f94; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); position: relative; font-weight: normal; transition: all 0.2s ease; display: flex; align-items: center; justify-content: space-between; } #mxchat_model_selector_btn.mxchat-model-selector-btn:after { content: "\f140"; font-family: dashicons; position: absolute; right: 10px; font-size: 20px; color: #666; } #mxchat_model_selector_btn.mxchat-model-selector-btn:hover { border-color: #2271b1; color: #2271b1; } #mxchat_model_selector_btn.mxchat-model-selector-btn:focus { box-shadow: 0 0 0 1px #2271b1; outline: none; } /* Embedding Model Selector - completely separate styling to avoid conflicts */ .mxchat-embedding-model-selector-btn { width: 100%; max-width: 400px; text-align: left; padding: 8px 12px; height: auto; min-height: 36px; background-color: #fff; color: #2c3338; border: 1px solid #8c8f94; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); position: relative; font-weight: normal; transition: all 0.2s ease; display: flex; align-items: center; justify-content: space-between; } .mxchat-embedding-model-selector-btn:after { content: "\f140"; font-family: dashicons; position: absolute; right: 10px; font-size: 20px; color: #666; } .mxchat-embedding-model-selector-btn:hover { border-color: #2271b1; color: #2271b1; } .mxchat-embedding-model-selector-btn:focus { box-shadow: 0 0 0 1px #2271b1; outline: none; } /* Modal Styles */ .mxchat-embedding-model-selector-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.5); } .mxchat-embedding-model-selector-modal-content { background-color: #fff; margin: 5% auto; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); width: 80%; max-width: 800px; animation: mxchatEmbeddingModalFade 0.3s; } @keyframes mxchatEmbeddingModalFade { from {opacity: 0; transform: translateY(-20px);} to {opacity: 1; transform: translateY(0);} } .mxchat-embedding-model-selector-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #eee; } .mxchat-embedding-model-selector-modal-header h3 { margin: 0; color: #6750A4; font-size: 20px; } .mxchat-embedding-model-selector-modal-close { font-size: 24px; cursor: pointer; color: #888; } .mxchat-embedding-model-selector-modal-close:hover { color: #333; } .mxchat-embedding-model-selector-modal-body { padding: 24px; max-height: 60vh; overflow-y: auto; } .mxchat-embedding-model-selector-modal-footer { padding: 16px 24px; border-top: 1px solid #eee; text-align: right; } /* Search and Category Styles */ .mxchat-embedding-model-selector-search-container { margin-bottom: 20px; } .mxchat-embedding-model-search-input { width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; } .mxchat-embedding-model-selector-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; } .mxchat-embedding-model-category-btn { background-color: #f5f5f5; border: 1px solid #ddd; padding: 8px 16px; border-radius: 20px; cursor: pointer; transition: all 0.2s; } .mxchat-embedding-model-category-btn.active { background-color: #6750A4; color: white; border-color: #6750A4; } /* Model Grid Styles */ .mxchat-embedding-model-selector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; } .mxchat-embedding-model-selector-card { display: flex; border: 1px solid #ddd; border-radius: 8px; padding: 16px; cursor: pointer; transition: all 0.2s; position: relative; } .mxchat-embedding-model-selector-card:hover { border-color: #6750A4; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .mxchat-embedding-model-selector-card.mxchat-embedding-model-selected { border-color: #6750A4; background-color: rgba(103, 80, 164, 0.05); } /* Provider-specific styles */ .mxchat-embedding-model-provider-openai { border-left: 4px solid #10A37F; } .mxchat-embedding-model-provider-voyage { border-left: 4px solid #0055D4; } /* Provider-specific border color for Gemini */ .mxchat-embedding-model-provider-gemini { border-left: 4px solid #4285F4; } /* Icon color for Gemini */ .mxchat-embedding-model-icon-gemini { color: #4285F4; } .mxchat-embedding-model-selector-icon { margin-right: 12px; font-size: 24px; display: flex; align-items: center; width: 25px; height: 45px; } .mxchat-embedding-model-icon-openai { color: #10A37F; } .mxchat-embedding-model-icon-voyage { color: #0055D4; } .mxchat-embedding-model-selector-info { flex: 1; } .mxchat-embedding-model-selector-title { margin: 0 0 6px 0; font-size: 16px; } .mxchat-embedding-model-selector-description { margin: 0; font-size: 14px; color: #666; } .mxchat-embedding-model-selector-checkmark { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; background-color: #6750A4; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; } /* Media queries for responsive design */ @media screen and (max-width: 782px) { .mxchat-embedding-model-selector-modal-content { width: 95%; margin: 10% auto; } .mxchat-embedding-model-selector-grid { grid-template-columns: 1fr; } .mxchat-embedding-model-selector-categories { overflow-x: auto; padding-bottom: 10px; } } /* Embedding Model Selector Button Styles */ #mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn { width: 100%; max-width: 400px; text-align: left; padding: 8px 12px; height: auto; min-height: 36px; background-color: #fff; color: #2c3338; border: 1px solid #8c8f94; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); position: relative; font-weight: normal; transition: all 0.2s ease; display: flex; align-items: center; justify-content: space-between; } #mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn:after { content: "\f140"; font-family: dashicons; position: absolute; right: 10px; font-size: 20px; color: #666; } #mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn:hover { border-color: #2271b1; color: #2271b1; } #mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn:focus { box-shadow: 0 0 0 1px #2271b1; outline: none; } .mxchat-failed-urls-container { margin-top: 15px; border-top: 1px solid rgba(0, 0, 0, 0.1); padding-top: 10px; } .mxchat-failed-urls-container h4 { margin: 0 0 8px 0; font-size: 14px; color: #d63638; } .mxchat-failed-urls-container details { margin-bottom: 10px; } .mxchat-failed-urls-container summary { cursor: pointer; font-weight: 500; padding: 5px 0; color: #3c434a; } .mxchat-failed-urls-container summary:hover { color: #2271b1; } .mxchat-failed-urls-list { margin-top: 10px; max-height: 300px; overflow-y: auto; border: 1px solid #dcdcde; border-radius: 4px; background: #f8f9fa; } .mxchat-failed-url-item { padding: 8px 12px; border-bottom: 1px solid #dcdcde; display: grid; grid-template-columns: 1fr; grid-gap: 6px; font-size: 12px; } .mxchat-failed-url-item:last-child { border-bottom: none; } .mxchat-failed-url-address { font-weight: 500; word-break: break-all; } .mxchat-failed-url-address a { color: #2271b1; text-decoration: none; } .mxchat-failed-url-address a:hover { text-decoration: underline; } .mxchat-failed-url-error { color: #d63638; } .mxchat-failed-url-time { color: #50575e; font-style: italic; font-size: 11px; } .mxchat-failed-urls-more { text-align: center; padding: 8px; background: #f0f0f1; border-top: 1px solid #dcdcde; color: #50575e; font-style: italic; font-size: 12px; } /* Responsive design for larger screens */ @media screen and (min-width: 783px) { .mxchat-failed-url-item { grid-template-columns: 2fr 3fr 1fr; align-items: center; } } /* Style for addon-managed option group */ .addon-managed-optgroup { color: #888 !important; font-style: italic; background: #f5f5f5; } /* Selected text style */ select option:disabled { color: #888; font-style: italic; } .mxchat-rate-limits-container { max-width: 900px; } .mxchat-rate-limit-row { display: flex; flex-wrap: wrap; align-items: flex-start; margin-bottom: 20px; padding: 20px; background: #fff; border-radius: 8px; border: 1px solid #e0e0e0; box-shadow: 0 2px 4px rgba(0,0,0,0.04); transition: all 0.2s ease; } .mxchat-rate-limit-row:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.08); border-color: #c7c7c7; } .mxchat-rate-limit-role { width: 160px; font-weight: 600; font-size: 15px; margin-right: 20px; padding-top: 4px; color: #23282d; } .mxchat-rate-limit-controls-wrapper { flex: 1; } .mxchat-rate-limit-controls { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-bottom: 15px; } .mxchat-rate-limit-controls > div { margin-bottom: 5px; } .mxchat-rate-limit-controls label { display: block; margin-bottom: 5px; font-weight: 500; color: #50575e; } .mxchat-rate-limit-message { width: 100%; margin-top: 15px; } .mxchat-rate-limit-message label { display: block; margin-bottom: 5px; font-weight: 500; color: #50575e; } .mxchat-rate-limit-message textarea { width: 100%; min-height: 70px; padding: 8px 12px; border-radius: 4px; resize: vertical; font-size: 14px; } .mxchat-rate-limit-controls select { min-width: 120px; padding: 6px 24px 6px 10px; } @media (max-width: 782px) { .mxchat-rate-limit-row { flex-direction: column; } .mxchat-rate-limit-role { margin-bottom: 15px; width: 100%; font-size: 16px; } .mxchat-rate-limit-controls { flex-direction: column; align-items: flex-start; gap: 12px; } .mxchat-rate-limit-controls > div { width: 100%; } .mxchat-rate-limit-controls select { width: 100%; } } /* Support notification styles */ .support-notification { background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); border: 2px solid #f39c12; border-radius: 12px; padding: 20px; margin-bottom: 25px; display: flex; align-items: flex-start; gap: 15px; box-shadow: 0 4px 12px rgba(243, 156, 18, 0.15); position: relative; overflow: hidden; } .support-notification::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #f39c12, #e67e22, #f39c12); background-size: 200% 100%; animation: shimmer 2s ease-in-out infinite; } @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } .support-notification-icon { flex-shrink: 0; width: 24px; height: 24px; color: #e67e22; margin-top: 2px; } .support-notification-content { flex: 1; } .support-notification-title { font-size: 18px; font-weight: 600; color: #8b4513; margin: 0 0 8px 0; display: flex; align-items: center; gap: 8px; } .support-notification-message { font-size: 15px; color: #8b4513; margin: 0 0 15px 0; line-height: 1.5; } .support-notification-button { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); color: white; padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.3s ease; border: none; cursor: pointer; box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3); } .support-notification-button:hover { background: linear-gradient(135deg, #d35400 0%, #c0392b 100%); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4); color: white; text-decoration: none; } .support-notification-button:active { transform: translateY(0); } .support-notification-button svg { width: 16px; height: 16px; } /* Responsive design */ @media (max-width: 768px) { .support-notification { padding: 16px; gap: 12px; } .support-notification-title { font-size: 16px; } .support-notification-message { font-size: 14px; } .support-notification-button { padding: 10px 16px; font-size: 13px; } } /* Sample instructions button styles */ .mxchat-instructions-container { margin-top: 8px; } .mxchat-instructions-btn { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 8px 14px; border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2); } .mxchat-instructions-btn:hover { background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3); } .mxchat-instructions-btn:active { transform: translateY(0); } .mxchat-instructions-btn svg { width: 14px; height: 14px; } /* Modal styles - Positioned relative to viewport */ .mxchat-instructions-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 999999; } .mxchat-instructions-modal-overlay.mxchat-instructions-show { display: flex; align-items: center; justify-content: center; padding: 20px; } .mxchat-instructions-modal-content { background: white; border-radius: 12px; max-width: 700px; width: 100%; max-height: 90vh; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); } .mxchat-instructions-modal-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; } .mxchat-instructions-modal-title { font-size: 18px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 10px; } .mxchat-instructions-modal-close { background: rgba(255, 255, 255, 0.2); border: none; color: white; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; } .mxchat-instructions-modal-close:hover { background: rgba(255, 255, 255, 0.3); } .mxchat-instructions-modal-body { padding: 24px; overflow-y: auto; max-height: calc(90vh - 140px); } .mxchat-instructions-content { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 8px; padding: 20px; font-family: 'Courier New', Monaco, monospace; font-size: 13px; line-height: 1.6; color: #2d3748; white-space: pre-wrap; word-wrap: break-word; } .mxchat-instructions-copy-btn { margin-top: 16px; background: #48bb78; color: white; border: none; padding: 10px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; } .mxchat-instructions-copy-btn:hover { background: #38a169; transform: translateY(-1px); } .mxchat-instructions-copy-btn svg { width: 16px; height: 16px; } .mxchat-instructions-modal-footer { padding: 16px 24px; background: #f7fafc; border-top: 1px solid #e2e8f0; text-align: right; } .mxchat-instructions-btn-secondary { background: #e2e8f0; color: #4a5568; border: none; padding: 8px 16px; border-radius: 6px; font-size: 14px; cursor: pointer; transition: background 0.2s ease; } .mxchat-instructions-btn-secondary:hover { background: #cbd5e0; } /* Responsive design */ @media (max-width: 782px) { .mxchat-instructions-modal-overlay.mxchat-instructions-show { padding: 10px; } .mxchat-instructions-modal-content { max-height: 95vh; } .mxchat-instructions-modal-header { padding: 16px 20px; } .mxchat-instructions-modal-body { padding: 20px; max-height: calc(95vh - 120px); } .mxchat-instructions-content { font-size: 12px; padding: 16px; } } /* Completion Card - Modern Theme */ .mxchat-completion-card { margin: 20px 0; background: #ffffff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06); overflow: hidden; transition: all 0.3s ease; border: 1px solid rgba(0, 0, 0, 0.06); } .mxchat-completion-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.08); } /* Header Section */ .mxchat-completion-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 24px; display: flex; align-items: center; gap: 16px; } .mxchat-completion-icon { width: 48px; height: 48px; background: rgba(255, 255, 255, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .mxchat-completion-icon svg { color: #ffffff; width: 28px; height: 28px; } .mxchat-completion-title h3 { margin: 0; color: #ffffff; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; } .mxchat-completion-time { margin: 4px 0 0 0; color: rgba(255, 255, 255, 0.8); font-size: 14px; } /* Summary Section */ .mxchat-completion-summary { padding: 24px; border-bottom: 1px solid #f0f0f1; } .mxchat-completion-summary h4 { margin: 0 0 16px 0; color: #1d2327; font-size: 16px; font-weight: 600; } .mxchat-summary-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; } .mxchat-stat-card { background: #f6f7f7; padding: 16px; border-radius: 8px; text-align: center; transition: all 0.2s ease; } .mxchat-stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); } .mxchat-stat-label { display: block; font-size: 12px; color: #646970; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; } .mxchat-stat-value { display: block; font-size: 24px; font-weight: 700; color: #1d2327; } .mxchat-stat-success { background: #e6f5e6; } .mxchat-stat-success .mxchat-stat-value { color: #00a32a; } .mxchat-stat-failed { background: #fef1f1; } .mxchat-stat-failed .mxchat-stat-value { color: #d63638; } /* Failed URLs Section */ .mxchat-failed-urls-section { padding: 24px; background: #fafafa; border-top: 1px solid #f0f0f1; } .mxchat-failed-urls-section h4 { margin: 0 0 16px 0; color: #d63638; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; } .mxchat-icon-warning { flex-shrink: 0; } .mxchat-failed-urls-table-wrapper { max-height: 300px; overflow-y: auto; background: #ffffff; border-radius: 8px; border: 1px solid #e0e0e0; } .mxchat-failed-urls-table { width: 100%; border-collapse: collapse; } .mxchat-failed-urls-table thead { position: sticky; top: 0; background: #f6f7f7; z-index: 1; } .mxchat-failed-urls-table th { text-align: left; padding: 12px 16px; font-weight: 600; font-size: 13px; color: #1d2327; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #e0e0e0; } .mxchat-failed-urls-table tbody tr { transition: background-color 0.2s ease; } .mxchat-failed-urls-table tbody tr:hover { background-color: #f6f7f7; } .mxchat-failed-urls-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f1; font-size: 14px; } .mxchat-url-cell { word-break: break-all; } .mxchat-url-cell a { color: #667eea; text-decoration: none; transition: color 0.2s ease; } .mxchat-url-cell a:hover { color: #764ba2; text-decoration: underline; } .mxchat-error-cell { color: #d63638; } .mxchat-time-cell { color: #646970; white-space: nowrap; } /* Action Buttons */ .mxchat-completion-actions { padding: 24px; display: flex; gap: 12px; justify-content: flex-end; background: #fafafa; } .mxchat-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; text-decoration: none; } .mxchat-btn svg { width: 16px; height: 16px; } .mxchat-btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #ffffff; } .mxchat-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); } .mxchat-btn-secondary { background: #ffffff; color: #667eea; border: 1px solid #667eea; } .mxchat-btn-secondary:hover { background: #f6f7ff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2); } .mxchat-btn:disabled { opacity: 0.5; cursor: not-allowed; } .mxchat-btn:disabled:hover { transform: none; box-shadow: none; } /* Responsive adjustments */ @media (max-width: 768px) { .mxchat-summary-stats { grid-template-columns: 1fr; } .mxchat-completion-actions { flex-direction: column; } .mxchat-btn { width: 100%; justify-content: center; } } /* Scrollbar styling for failed URLs table */ .mxchat-failed-urls-table-wrapper::-webkit-scrollbar { width: 8px; } .mxchat-failed-urls-table-wrapper::-webkit-scrollbar-track { background: #f0f0f1; border-radius: 4px; } .mxchat-failed-urls-table-wrapper::-webkit-scrollbar-thumb { background: #c3c4c7; border-radius: 4px; } .mxchat-failed-urls-table-wrapper::-webkit-scrollbar-thumb:hover { background: #a7aaad; } /* Live Agent Disabled Notice Styles - Enhanced design */ .mxchat-live-agent-disabled-notice { margin-bottom: 20px; } .mxchat-live-agent-disabled-notice .mxchat-pro-notification { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; padding: 24px 24px 24px 24px; color: white; position: relative; box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); } .mxchat-dismiss-btn { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; color: rgba(255, 255, 255, 0.8); cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; backdrop-filter: blur(10px); } .mxchat-dismiss-btn:hover { background: rgba(255, 255, 255, 0.2); color: white; transform: scale(1.05); } .mxchat-dismiss-btn:active { transform: scale(0.95); } .mxchat-live-agent-content { padding-right: 60px; /* Space for dismiss button */ } .mxchat-live-agent-content h3 { margin: 0 0 16px 0; font-size: 20px; font-weight: 600; color: white; display: flex; align-items: center; gap: 8px; } .mxchat-live-agent-content p { margin: 0; font-size: 15px; line-height: 1.6; opacity: 0.95; color: rgba(255, 255, 255, 0.95); } .mxchat-live-agent-content strong { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.1); padding: 2px 6px; border-radius: 4px; font-size: 14px; } .mxchat-processing-controls { display: flex; gap: 10px; align-items: center; } /* Status Card Container */ .mxchat-status-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; } /* Status Header */ .mxchat-status-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; } .mxchat-status-header h4 { margin: 0; font-size: 18px; font-weight: 600; color: #333; } .mxchat-status-header h5 { margin: 0 0 10px 0; font-size: 16px; font-weight: 600; color: #333; } /* Dismiss Button */ .mxchat-dismiss-button { padding: 6px 12px; background: #dc3545; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 500; transition: background-color 0.2s ease; } .mxchat-dismiss-button:hover { background: #c82333; } .mxchat-dismiss-button:active { transform: translateY(1px); } /* Process Batch Button */ .mxchat-manual-batch-btn { padding: 8px 16px; background: #007cba; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s ease; text-decoration: none; display: inline-block; } .mxchat-manual-batch-btn:hover { background: #005a87; color: white; text-decoration: none; } .mxchat-manual-batch-btn:active { transform: translateY(1px); } .mxchat-manual-batch-btn:focus { outline: 2px solid #007cba; outline-offset: 2px; } /* MxChat Plugin Activation Page Styles */ .mxchat-license-details { background: #f9f9f9; padding: 15px; border-radius: 5px; margin-top: 15px; border-left: 4px solid #2271b1; } .mxchat-license-details p { margin: 8px 0; } .mxchat-license-details small { color: #666; } .mxchat-license-details a { color: #2271b1; text-decoration: none; } .mxchat-license-details a:hover { text-decoration: underline; } /* Domain linking styles */ #link-domain-button { background: #2271b1; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 13px; } #link-domain-button:hover { background: #1a5a8a; } #link-domain-button:disabled { background: #ccc; cursor: not-allowed; } #domain-link-status { font-size: 13px; font-weight: 500; } /* Status badges */ .mxchat-status-badge.active { color: #2d8f47; background: #d4edda; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; } .mxchat-status-badge.inactive { color: #842029; background: #f8d7da; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; } /* Notice styles for domain linking */ .notice.notice-info { background: #e7f3ff; border-left-color: #2271b1; z-index: 100000000000000000; position: relative; } .notice.notice-success { background: #d1eddb; border-left-color: #2d8f47; } /* Animation for status changes */ .license-status-updating { opacity: 0.6; transition: opacity 0.3s ease; } /* Spinner for domain linking */ .domain-link-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #f3f3f3; border-top: 2px solid #2271b1; border-radius: 50%; animation: spin 1s linear infinite; margin-left: 8px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .mxchat-pro-notification .old-price { text-decoration: line-through; color: #888; } .mxchat-pro-notification .new-price { font-weight: bold; color: #d9534f; /* red for urgency */ } #mxchat-test-streaming-btn:disabled { opacity: 0.6; cursor: not-allowed; } #mxchat-test-streaming-result { padding: 8px 12px; border-radius: 4px; display: none; } #mxchat-test-streaming-result:not(:empty) { display: block; background: #f0f0f1; border-left: 4px solid #72aee6; } /* Hide email-dependent fields by default */ tr:has(#email_blocker_header_content), tr:has(#email_blocker_button_text), tr:has(#enable_name_field), tr:has(#name_field_placeholder) { display: none; } /* Show them when email block is enabled */ body.email-block-enabled tr:has(#email_blocker_header_content), body.email-block-enabled tr:has(#email_blocker_button_text), body.email-block-enabled tr:has(#enable_name_field), body.email-block-enabled tr:has(#name_field_placeholder) { display: table-row; } /* Style for email-dependent fields */ .email-dependent-field { background-color: #f8f9fa; border-left: 4px solid #0073aa; padding-left: 15px; margin-left: 10px; } .email-dependent-field td, .email-dependent-field th { background-color: #f8f9fa; } /* NEW: Role restriction styles */ .mxchat-role-restriction-container { margin-bottom: 8px; } .mxchat-role-select { width: 100%; max-width: 180px; padding: 4px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 12px; background: white; } .mxchat-role-select.updating { opacity: 0.6; pointer-events: none; } .mxchat-role-select.updated { border-color: #46b450; box-shadow: 0 0 0 1px #46b450; } .mxchat-action-buttons { display: flex; gap: 4px; justify-content: center; } .mxchat-actions-cell { min-width: 200px; text-align: center; } .mxchat-bot-selector { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; border: 1px solid #ddd; padding: 12px; border-radius: 4px; background: #f9f9f9; } .mxchat-bot-option { display: flex; align-items: center; } .mxchat-checkbox-label { display: flex; align-items: center; cursor: pointer; font-size: 14px; gap: 8px; } .mxchat-checkbox-label input[type="checkbox"] { margin: 0; } .mxchat-checkmark { display: inline-block; } .mxchat-card-bots { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e7eb; } .mxchat-card-bots strong { display: block; margin-bottom: 6px; color: #374151; font-size: 13px; font-weight: 600; } .mxchat-bot-badges { display: flex; flex-wrap: wrap; gap: 6px; } .mxchat-bot-badge { display: inline-flex; align-items: center; padding: 3px 8px; background-color: #f3f4f6; border: 1px solid #d1d5db; border-radius: 12px; font-size: 11px; font-weight: 500; color: #6b7280; line-height: 1.2; white-space: nowrap; } .mxchat-bot-badge:first-child { background-color: #dbeafe; border-color: #93c5fd; color: #1e40af; }