/* Intent Manager Specific Styles */ .mxchat-intent-documentation { background: rgba(120, 115, 245, 0.05); border-left: 4px solid #7873f5; padding: 15px 20px; margin-bottom: 30px; border-radius: 0 8px 8px 0; } .mxchat-intent-documentation a { color: #7873f5; text-decoration: none; font-weight: 500; } .mxchat-intent-documentation a:hover { color: #fa73e6; } /* Form Elements */ .mxchat-intent-input, .mxchat-intent-select, .mxchat-intent-textarea { width: 100%; padding: 12px 15px; border: 2px solid rgba(120, 115, 245, 0.2); border-radius: 8px; font-size: 14px; transition: all 0.3s ease; background: white; } .mxchat-intent-textarea { min-height: 120px; resize: vertical; } .mxchat-intent-input:focus, .mxchat-intent-select:focus, .mxchat-intent-textarea:focus { border-color: #7873f5; box-shadow: 0 0 0 3px rgba(120, 115, 245, 0.1); outline: none; } /* Slider Styling */ .mxchat-intent-slider { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: rgba(120, 115, 245, 0.1); outline: none; margin: 10px 0; } .mxchat-intent-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #fa73e6, #7873f5); cursor: pointer; border: 2px solid white; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); } .mxchat-intent-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #fa73e6, #7873f5); cursor: pointer; border: 2px solid white; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); } /* Threshold Form and Slider Group */ .mxchat-threshold-form { display: flex; align-items: center; gap: 10px; position: relative; } .mxchat-slider-group { display: flex; align-items: center; gap: 15px; width: 100%; position: relative; } .mxchat-slider-group .dashicons-saved { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); color: #00a32a; } .mxchat-intent-output { min-width: 60px; text-align: center; padding: 4px 8px; background: rgba(120, 115, 245, 0.1); border-radius: 4px; font-size: 14px; color: #7873f5; } /* Modal Styling */ .mxchat-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 100000; opacity: 0; transition: opacity 0.3s ease; } .mxchat-modal.active { display: flex; align-items: center; justify-content: center; opacity: 1; } .mxchat-modal-content { background: white; padding: 30px; border-radius: 16px; width: 90%; max-width: 600px; position: relative; transform: translateY(-20px); transition: transform 0.3s ease; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); } .mxchat-card-header { margin: -30px -30px 30px -30px; padding: 30px; border-bottom: 1px solid rgba(120, 115, 245, 0.1); } .mxchat-modal.active .mxchat-modal-content { transform: translateY(0); } .mxchat-modal-close { position: absolute; right: 20px; top: 20px; font-size: 24px; color: #666; cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s ease; } .mxchat-modal-close:hover { background: rgba(120, 115, 245, 0.1); color: #7873f5; } .mxchat-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(120, 115, 245, 0.1); } /* Loading Spinner - Completely Isolated Styles */ .mxchat-intent-loading { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.95); padding: 30px; border-radius: 16px; box-shadow: 0 4px 20px rgba(120, 115, 245, 0.15); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 100001; min-width: 200px; text-align: center; } .mxchat-intent-loading-spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; border-top-color: #7873f5; border-right-color: #7873f5; animation: mxchatIntentSpin 0.8s linear infinite; margin-bottom: 15px; } .mxchat-intent-loading-text { color: #333; font-weight: 500; font-size: 14px; margin: 0; padding: 0; } @keyframes mxchatIntentSpin { to { transform: rotate(360deg); } } .mxchat-loading-text { margin-top: 15px; color: #333; font-weight: 500; } /* Table Specific */ .mxchat-content-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Search and Filter */ .mxchat-search-form { display: flex; gap: 15px; align-items: center; } .mxchat-intent-filter { min-width: 200px; } /* Delete Form Button */ .mxchat-delete-form { display: inline-block; } .mxchat-delete-form .mxchat-button-icon { color: #ff4d4d; } .mxchat-delete-form .mxchat-button-icon:hover { background: #fff5f5; } /* General Spacing */ .mxchat-form-group { margin-bottom: 25px; } .mxchat-form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; } .mxchat-intent-slider { min-width: 100px; } /* Responsive Adjustments */ @media screen and (max-width: 782px) { .mxchat-modal-content { width: 95%; margin: 10px; padding: 20px; } .mxchat-card-header { margin: -20px -20px 20px -20px; padding: 20px; } .mxchat-threshold-form { flex-direction: column; align-items: stretch; gap: 5px; padding: 10px 0; } .mxchat-slider-group { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0; } .mxchat-slider-group .dashicons-saved { bottom: -15px; } .mxchat-intent-slider { height: 8px; margin: 5px 0; } .mxchat-intent-slider::-webkit-slider-thumb { width: 24px; height: 24px; } .mxchat-intent-slider::-moz-range-thumb { width: 24px; height: 24px; } .mxchat-intent-output { min-width: 50px; font-size: 13px; padding: 6px 10px; } .mxchat-records-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } .mxchat-content-cell { max-width: 200px; } .mxchat-modal-actions { flex-direction: column-reverse; gap: 10px; margin-top: 20px; } .mxchat-modal-actions button { width: 100%; padding: 12px; } .mxchat-search-form { flex-direction: column; width: 100%; } .mxchat-intent-filter { width: 100%; } }