| @@ -4,8 +4,11 @@ | ||
| 4 | 4 | |
| 5 | 5 | #system_prompt_instructions { |
| 6 | 6 | transition: height 0.3s ease; |
| 7 | 7 | } |
| 8 | +.red-warning { | |
| 9 | + color: red; | |
| 10 | +} | |
| 8 | 11 | |
| 9 | 12 | .mxchat-form-intent { |
| 10 | 13 | background-color: rgba(240, 240, 245, 0.5); |
| 11 | 14 | } |
| @@ -71,19 +74,8 @@ | ||
| 71 | 74 | border-bottom: 1px solid #fff; |
| 72 | 75 | color: #000; |
| 73 | 76 | } |
| 74 | 77 | |
| 75 | -/* Tab Content */ | |
| 76 | -.mxchat-tab-content { | |
| 77 | - display: none; | |
| 78 | - padding: 25px; | |
| 79 | - background: white; | |
| 80 | - border: 1px solid #ddd; | |
| 81 | - border-radius: 10px; | |
| 82 | - box-shadow: 0 2px 15px rgba(0,0,0,0.05); | |
| 83 | - animation: fadeIn 0.3s ease-in-out; | |
| 84 | -} | |
| 85 | - | |
| 86 | 78 | #default-db.mxchat-tab-content, #pinecone-db.mxchat-tab-content { |
| 87 | 79 | border: none; |
| 88 | 80 | box-shadow: none; |
| 89 | 81 | padding: 0px; |
| @@ -257,8 +249,12 @@ | ||
| 257 | 249 | .mxchat-knowledge-controls { |
| 258 | 250 | flex-direction: column; |
| 259 | 251 | } |
| 260 | 252 | |
| 253 | + .mxchat-addon-notice-buttons { | |
| 254 | + flex-direction: column; | |
| 255 | + } | |
| 256 | + | |
| 261 | 257 | .mxchat-grid-container { |
| 262 | 258 | display: grid; |
| 263 | 259 | /* Add these properties */ |
| 264 | 260 | max-width: 100%; /* Constrain to parent width */ |
| @@ -2812,6 +2808,1348 @@ | ||
| 2812 | 2808 | } |
| 2813 | 2809 | } |
| 2814 | 2810 | |
| 2815 | 2811 | |
| 2812 | +.video-tutorials-section { | |
| 2813 | + max-width: 1200px; | |
| 2814 | + margin: 0 auto; | |
| 2815 | + padding: 2rem 0; | |
| 2816 | +} | |
| 2816 | 2817 | |
| 2818 | +.section-intro { | |
| 2819 | + text-align: center; | |
| 2820 | + margin-bottom: 2rem; | |
| 2821 | + font-size: 1.1rem; | |
| 2822 | +} | |
| 2817 | 2823 | |
| 2824 | +.tutorial-grid { | |
| 2825 | + display: grid; | |
| 2826 | + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | |
| 2827 | + gap: 2rem; | |
| 2828 | + margin-bottom: 3rem; | |
| 2829 | +} | |
| 2830 | + | |
| 2831 | +.tutorial-item { | |
| 2832 | + border: 1px solid #e0e0e0; | |
| 2833 | + border-radius: 8px; | |
| 2834 | + padding: 1.5rem; | |
| 2835 | + box-shadow: 0 2px 5px rgba(0,0,0,0.05); | |
| 2836 | + transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| 2837 | + background-color: #fff; | |
| 2838 | +} | |
| 2839 | + | |
| 2840 | +.tutorial-item:hover { | |
| 2841 | + transform: translateY(-5px); | |
| 2842 | + box-shadow: 0 5px 15px rgba(0,0,0,0.1); | |
| 2843 | +} | |
| 2844 | + | |
| 2845 | +.tutorial-item h3 { | |
| 2846 | + margin-top: 0; | |
| 2847 | + font-size: 1.2rem; | |
| 2848 | + color: #333; | |
| 2849 | + border-bottom: 2px solid #f0f0f0; | |
| 2850 | + padding-bottom: 0.75rem; | |
| 2851 | + margin-bottom: 1rem; | |
| 2852 | +} | |
| 2853 | + | |
| 2854 | +.video-description p { | |
| 2855 | + margin-bottom: 1rem; | |
| 2856 | + color: #555; | |
| 2857 | +} | |
| 2858 | + | |
| 2859 | +.video-description small { | |
| 2860 | + color: #888; | |
| 2861 | + font-style: italic; | |
| 2862 | +} | |
| 2863 | + | |
| 2864 | +.video-link { | |
| 2865 | + display: inline-flex; | |
| 2866 | + align-items: center; | |
| 2867 | + text-decoration: none; | |
| 2868 | + color: #0073aa; | |
| 2869 | + font-weight: 500; | |
| 2870 | + margin-top: 0.5rem; | |
| 2871 | + padding: 0.5rem 1rem; | |
| 2872 | + border-radius: 4px; | |
| 2873 | + background-color: #f7f7f7; | |
| 2874 | + transition: background-color 0.2s ease; | |
| 2875 | +} | |
| 2876 | + | |
| 2877 | +.video-link:hover { | |
| 2878 | + background-color: #e6f3fa; | |
| 2879 | + color: #004d74; | |
| 2880 | +} | |
| 2881 | + | |
| 2882 | +.video-icon { | |
| 2883 | + margin-right: 0.5rem; | |
| 2884 | + display: inline-flex; | |
| 2885 | + color: #e62117; | |
| 2886 | +} | |
| 2887 | + | |
| 2888 | +.support-section { | |
| 2889 | + margin-top: 3rem; | |
| 2890 | + padding-top: 2rem; | |
| 2891 | + border-top: 1px solid #e0e0e0; | |
| 2892 | + text-align: center; | |
| 2893 | +} | |
| 2894 | + | |
| 2895 | +.support-content { | |
| 2896 | + max-width: 800px; | |
| 2897 | + margin: 0 auto; | |
| 2898 | + background-color: #f9f9f9; | |
| 2899 | + padding: 2rem; | |
| 2900 | + border-radius: 8px; | |
| 2901 | +} | |
| 2902 | + | |
| 2903 | +.support-content p { | |
| 2904 | + margin-bottom: 1rem; | |
| 2905 | + font-size: 1.1rem; | |
| 2906 | + line-height: 1.6; | |
| 2907 | +} | |
| 2908 | + | |
| 2909 | +.support-content a { | |
| 2910 | + color: #0073aa; | |
| 2911 | + font-weight: 500; | |
| 2912 | + text-decoration: none; | |
| 2913 | + padding: 0.2rem 0.4rem; | |
| 2914 | + border-radius: 3px; | |
| 2915 | + transition: background-color 0.2s; | |
| 2916 | +} | |
| 2917 | + | |
| 2918 | +.support-content a:hover { | |
| 2919 | + background-color: #e6f3fa; | |
| 2920 | + text-decoration: underline; | |
| 2921 | +} | |
| 2922 | + | |
| 2923 | +.api-info-item h4 { | |
| 2924 | + margin-top: 0; | |
| 2925 | + color: #333; | |
| 2926 | + margin-bottom: 1rem; | |
| 2927 | +} | |
| 2928 | + | |
| 2929 | +@media (max-width: 768px) { | |
| 2930 | + .tutorial-grid { | |
| 2931 | + grid-template-columns: 1fr; | |
| 2932 | + } | |
| 2933 | + | |
| 2934 | + .tutorial-item { | |
| 2935 | + padding: 1rem; | |
| 2936 | + } | |
| 2937 | + | |
| 2938 | + .support-content { | |
| 2939 | + padding: 1.5rem; | |
| 2940 | + } | |
| 2941 | +} | |
| 2942 | + | |
| 2943 | +/* Additional CSS for the main admin page */ | |
| 2944 | + | |
| 2945 | +/* Pro and Add-on notice messages */ | |
| 2946 | +.mxchat-pro-notice, | |
| 2947 | +.mxchat-addon-notice { | |
| 2948 | + margin: 0; | |
| 2949 | + line-height: 1.6; | |
| 2950 | + color: #333; | |
| 2951 | +} | |
| 2952 | + | |
| 2953 | +.mxchat-pro-notice a, | |
| 2954 | +.mxchat-addon-notice a { | |
| 2955 | + text-decoration: none; | |
| 2956 | + font-weight: 600; | |
| 2957 | + transition: color 0.2s ease; | |
| 2958 | +} | |
| 2959 | + | |
| 2960 | +.mxchat-pro-notice a:hover, | |
| 2961 | +.mxchat-addon-notice a:hover { | |
| 2962 | + text-decoration: underline; | |
| 2963 | + color: #fff; | |
| 2964 | +} | |
| 2965 | + | |
| 2966 | +/* Tutorial Grid & Items */ | |
| 2967 | +.tutorial-grid { | |
| 2968 | + display: grid; | |
| 2969 | + grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); | |
| 2970 | + gap: 24px; | |
| 2971 | + margin-top: 20px; | |
| 2972 | +} | |
| 2973 | + | |
| 2974 | +.tutorial-item { | |
| 2975 | + background: #f8f9ff; | |
| 2976 | + border-radius: 12px; | |
| 2977 | + padding: 24px; | |
| 2978 | + transition: all 0.3s ease; | |
| 2979 | + border: 1px solid rgba(120, 115, 245, 0.1); | |
| 2980 | +} | |
| 2981 | + | |
| 2982 | +.tutorial-item:hover { | |
| 2983 | + transform: translateY(-3px); | |
| 2984 | + box-shadow: 0 6px 20px rgba(120, 115, 245, 0.12); | |
| 2985 | +} | |
| 2986 | + | |
| 2987 | +.tutorial-item h3 { | |
| 2988 | + margin-top: 0; | |
| 2989 | + margin-bottom: 16px; | |
| 2990 | + color: #333; | |
| 2991 | + font-size: 1.2rem; | |
| 2992 | +} | |
| 2993 | + | |
| 2994 | +.video-description p { | |
| 2995 | + color: #666; | |
| 2996 | + font-size: 0.95rem; | |
| 2997 | + margin-bottom: 16px; | |
| 2998 | +} | |
| 2999 | + | |
| 3000 | +.video-description small { | |
| 3001 | + color: #888; | |
| 3002 | + font-size: 0.85rem; | |
| 3003 | + font-style: italic; | |
| 3004 | +} | |
| 3005 | + | |
| 3006 | +.video-link { | |
| 3007 | + display: inline-flex; | |
| 3008 | + align-items: center; | |
| 3009 | + gap: 8px; | |
| 3010 | + padding: 8px 16px; | |
| 3011 | + background: white; | |
| 3012 | + border-radius: 8px; | |
| 3013 | + text-decoration: none; | |
| 3014 | + color: #7873f5; | |
| 3015 | + font-weight: 600; | |
| 3016 | + font-size: 0.9rem; | |
| 3017 | + border: 1px solid rgba(120, 115, 245, 0.2); | |
| 3018 | + transition: all 0.2s ease; | |
| 3019 | +} | |
| 3020 | + | |
| 3021 | +.video-link:hover { | |
| 3022 | + background: #eef0ff; | |
| 3023 | + color: #fa73e6; | |
| 3024 | +} | |
| 3025 | + | |
| 3026 | +.video-icon { | |
| 3027 | + display: flex; | |
| 3028 | + align-items: center; | |
| 3029 | + justify-content: center; | |
| 3030 | +} | |
| 3031 | + | |
| 3032 | +/* Support Section */ | |
| 3033 | +.support-section { | |
| 3034 | + margin-top: 40px; | |
| 3035 | + padding: 24px; | |
| 3036 | + background: #f8f9ff; | |
| 3037 | + border-radius: 12px; | |
| 3038 | + border: 1px solid rgba(120, 115, 245, 0.1); | |
| 3039 | +} | |
| 3040 | + | |
| 3041 | +.support-section h3 { | |
| 3042 | + margin-top: 0; | |
| 3043 | + color: #333; | |
| 3044 | +} | |
| 3045 | + | |
| 3046 | +.support-content p { | |
| 3047 | + color: #666; | |
| 3048 | + margin-bottom: 12px; | |
| 3049 | +} | |
| 3050 | + | |
| 3051 | +.support-content a { | |
| 3052 | + color: #7873f5; | |
| 3053 | + text-decoration: none; | |
| 3054 | + font-weight: 600; | |
| 3055 | +} | |
| 3056 | + | |
| 3057 | +.support-content a:hover { | |
| 3058 | + color: #fa73e6; | |
| 3059 | + text-decoration: underline; | |
| 3060 | +} | |
| 3061 | + | |
| 3062 | +/* Updated tab navigation */ | |
| 3063 | +.mxchat-tabs { | |
| 3064 | + display: flex; | |
| 3065 | + gap: 2px; | |
| 3066 | + margin-bottom: 20px; | |
| 3067 | + border-bottom: 1px solid rgba(120, 115, 245, 0.1); | |
| 3068 | +} | |
| 3069 | + | |
| 3070 | +.mxchat-tab-button { | |
| 3071 | + padding: 12px 24px; | |
| 3072 | + background: none; | |
| 3073 | + border: none; | |
| 3074 | + border-bottom: 2px solid transparent; | |
| 3075 | + color: #666; | |
| 3076 | + cursor: pointer; | |
| 3077 | + font-size: 14px; | |
| 3078 | + transition: all 0.2s ease; | |
| 3079 | +} | |
| 3080 | + | |
| 3081 | +.mxchat-tab-button:hover { | |
| 3082 | + color: #7873f5; | |
| 3083 | +} | |
| 3084 | + | |
| 3085 | +.mxchat-tab-button.active { | |
| 3086 | + color: #7873f5; | |
| 3087 | + border-bottom-color: #7873f5; | |
| 3088 | +} | |
| 3089 | + | |
| 3090 | +/* Tab content */ | |
| 3091 | +.mxchat-tab-content { | |
| 3092 | + display: none; | |
| 3093 | +} | |
| 3094 | + | |
| 3095 | +.mxchat-tab-content.active { | |
| 3096 | + display: block; | |
| 3097 | +} | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | +/* Pro Notification Styling */ | |
| 3103 | +.mxchat-pro-card { | |
| 3104 | + background: linear-gradient(90deg, #f8f9ff 0%, #f0f4ff 100%); | |
| 3105 | + border-left: 4px solid #6366f1; | |
| 3106 | + border-radius: 8px; | |
| 3107 | + box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1); | |
| 3108 | + margin-bottom: 25px; | |
| 3109 | + overflow: hidden; | |
| 3110 | +} | |
| 3111 | + | |
| 3112 | +.mxchat-pro-notification { | |
| 3113 | + display: flex; | |
| 3114 | + flex-direction: row; | |
| 3115 | + align-items: center; | |
| 3116 | + justify-content: space-between; | |
| 3117 | + padding: 20px 24px; | |
| 3118 | +} | |
| 3119 | + | |
| 3120 | +@media (max-width: 768px) { | |
| 3121 | + .mxchat-pro-notification { | |
| 3122 | + flex-direction: column; | |
| 3123 | + text-align: center; | |
| 3124 | + gap: 15px; | |
| 3125 | + } | |
| 3126 | +} | |
| 3127 | + | |
| 3128 | +.mxchat-pro-content { | |
| 3129 | + flex: 1; | |
| 3130 | + padding-right: 10px; | |
| 3131 | +} | |
| 3132 | + | |
| 3133 | +.mxchat-pro-content h3 { | |
| 3134 | + margin-top: 0; | |
| 3135 | + margin-bottom: 8px; | |
| 3136 | + font-size: 18px; | |
| 3137 | + color: #4338ca; | |
| 3138 | + font-weight: 600; | |
| 3139 | +} | |
| 3140 | + | |
| 3141 | +.mxchat-pro-content p { | |
| 3142 | + margin: 0; | |
| 3143 | + color: #4b5563; | |
| 3144 | + font-size: 14px; | |
| 3145 | + line-height: 1.5; | |
| 3146 | +} | |
| 3147 | + | |
| 3148 | +.mxchat-pro-cta { | |
| 3149 | + display: flex; | |
| 3150 | + flex-direction: column; | |
| 3151 | + gap: 8px; | |
| 3152 | + min-width: 180px; | |
| 3153 | +} | |
| 3154 | + | |
| 3155 | +.mxchat-button { | |
| 3156 | + display: inline-block; | |
| 3157 | + background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%); | |
| 3158 | + color: white !important; | |
| 3159 | + font-weight: 600; | |
| 3160 | + padding: 10px 20px; | |
| 3161 | + border-radius: 6px; | |
| 3162 | + text-decoration: none !important; | |
| 3163 | + text-align: center; | |
| 3164 | + transition: all 0.2s ease; | |
| 3165 | + box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3); | |
| 3166 | +} | |
| 3167 | + | |
| 3168 | +.mxchat-button:hover { | |
| 3169 | + transform: translateY(-2px); | |
| 3170 | + box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); | |
| 3171 | +} | |
| 3172 | + | |
| 3173 | +.mxchat-link { | |
| 3174 | + color: #6366f1 !important; | |
| 3175 | + text-decoration: none !important; | |
| 3176 | + text-align: center; | |
| 3177 | + font-size: 14px; | |
| 3178 | + padding: 4px; | |
| 3179 | +} | |
| 3180 | + | |
| 3181 | +.mxchat-link:hover { | |
| 3182 | + text-decoration: underline !important; | |
| 3183 | +} | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | +/* API Key field styles */ | |
| 3192 | +.api-key-wrapper { | |
| 3193 | + margin-bottom: 15px; | |
| 3194 | + padding: 15px; | |
| 3195 | + border-radius: 5px; | |
| 3196 | + border-left: 4px solid #2271b1; | |
| 3197 | + background-color: #f0f6fc; | |
| 3198 | + transition: all 0.3s ease; | |
| 3199 | +} | |
| 3200 | + | |
| 3201 | +/* Row-level visibility handling */ | |
| 3202 | +tr.mxchat-setting-row { | |
| 3203 | + display: table-row; | |
| 3204 | + transition: all 0.3s ease; | |
| 3205 | +} | |
| 3206 | + | |
| 3207 | +tr.mxchat-setting-row.highlighted { | |
| 3208 | + animation: highlight-row 1.5s ease; | |
| 3209 | +} | |
| 3210 | + | |
| 3211 | +.api-key-wrapper input[type="password"] { | |
| 3212 | + margin-right: 10px; | |
| 3213 | +} | |
| 3214 | + | |
| 3215 | +.api-key-wrapper button { | |
| 3216 | + background: #f6f7f7; | |
| 3217 | + border: 1px solid #c3c4c7; | |
| 3218 | + color: #50575e; | |
| 3219 | + cursor: pointer; | |
| 3220 | + border-radius: 3px; | |
| 3221 | + padding: 0 10px; | |
| 3222 | + height: 30px; | |
| 3223 | + line-height: 28px; | |
| 3224 | + font-size: 13px; | |
| 3225 | +} | |
| 3226 | + | |
| 3227 | +.api-key-wrapper button:hover { | |
| 3228 | + background: #f0f0f1; | |
| 3229 | +} | |
| 3230 | + | |
| 3231 | +.api-key-notice { | |
| 3232 | + margin-top: 8px !important; | |
| 3233 | + color: #1e1e1e; | |
| 3234 | + font-style: italic; | |
| 3235 | +} | |
| 3236 | + | |
| 3237 | +@keyframes highlight-field { | |
| 3238 | + 0% { | |
| 3239 | + background-color: #e5f5fa; | |
| 3240 | + } | |
| 3241 | + 50% { | |
| 3242 | + background-color: #c7e8f3; | |
| 3243 | + } | |
| 3244 | + 100% { | |
| 3245 | + background-color: #f0f6fc; | |
| 3246 | + } | |
| 3247 | +} | |
| 3248 | + | |
| 3249 | +@keyframes highlight-row { | |
| 3250 | + 0% { background-color: transparent; } | |
| 3251 | + 50% { background-color: #e5f5fa; } | |
| 3252 | + 100% { background-color: transparent; } | |
| 3253 | +} | |
| 3254 | + | |
| 3255 | +/* Customize the look based on provider */ | |
| 3256 | +.api-key-wrapper[data-provider="openai"] { | |
| 3257 | + border-left-color: #10a37f; | |
| 3258 | +} | |
| 3259 | + | |
| 3260 | +.api-key-wrapper[data-provider="xai"] { | |
| 3261 | + border-left-color: #0077e6; | |
| 3262 | +} | |
| 3263 | + | |
| 3264 | +.api-key-wrapper[data-provider="claude"] { | |
| 3265 | + border-left-color: #a065d5; | |
| 3266 | +} | |
| 3267 | + | |
| 3268 | +.api-key-wrapper[data-provider="deepseek"] { | |
| 3269 | + border-left-color: #3b7fc4; | |
| 3270 | +} | |
| 3271 | + | |
| 3272 | +.api-key-wrapper[data-provider="voyage"] { | |
| 3273 | + border-left-color: #ff6b00; | |
| 3274 | +} | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
| 3289 | + | |
| 3290 | + | |
| 3291 | +/* Add-on styling */ | |
| 3292 | +.mxchat-addon-badge { | |
| 3293 | + display: inline-block; | |
| 3294 | + background: linear-gradient(135deg, #FF8C00, #FFA500); | |
| 3295 | + color: white; | |
| 3296 | + font-size: 10px; | |
| 3297 | + padding: 2px 6px; | |
| 3298 | + border-radius: 10px; | |
| 3299 | + margin-top: 5px; | |
| 3300 | + font-weight: 600; | |
| 3301 | + margin-left: 6px; | |
| 3302 | +} | |
| 3303 | + | |
| 3304 | +.mxchat-addon-info { | |
| 3305 | + font-size: 11px; | |
| 3306 | + color: #666; | |
| 3307 | + margin-top: 8px; | |
| 3308 | + background: rgba(255, 140, 0, 0.1); | |
| 3309 | + padding: 4px 8px; | |
| 3310 | + border-radius: 4px; | |
| 3311 | + display: inline-block; | |
| 3312 | +} | |
| 3313 | + | |
| 3314 | +.mxchat-action-type-card.not-installed { | |
| 3315 | + opacity: 0.8; | |
| 3316 | + border-style: dashed; | |
| 3317 | + background: rgba(255, 255, 255, 0.8); | |
| 3318 | +} | |
| 3319 | + | |
| 3320 | +.mxchat-action-type-card.not-installed:hover { | |
| 3321 | + opacity: 1; | |
| 3322 | + border-color: #FF8C00; | |
| 3323 | + box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1); | |
| 3324 | +} | |
| 3325 | + | |
| 3326 | +/* Add-on Notice */ | |
| 3327 | +.mxchat-addon-notice { | |
| 3328 | + position: fixed; | |
| 3329 | + top: 0; | |
| 3330 | + left: 0; | |
| 3331 | + width: 100%; | |
| 3332 | + height: 100%; | |
| 3333 | + background: rgba(0, 0, 0, 0.5); | |
| 3334 | + z-index: 100003; | |
| 3335 | + display: flex; | |
| 3336 | + align-items: center; | |
| 3337 | + justify-content: center; | |
| 3338 | + opacity: 0; | |
| 3339 | + visibility: hidden; | |
| 3340 | + transition: opacity 0.3s ease, visibility 0.3s ease; | |
| 3341 | +} | |
| 3342 | + | |
| 3343 | +.mxchat-addon-notice.active { | |
| 3344 | + opacity: 1; | |
| 3345 | + visibility: visible; | |
| 3346 | +} | |
| 3347 | + | |
| 3348 | +.mxchat-addon-notice-content { | |
| 3349 | + background: white; | |
| 3350 | + padding: 30px; | |
| 3351 | + border-radius: 16px; | |
| 3352 | + max-width: 400px; | |
| 3353 | + text-align: center; | |
| 3354 | + box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); | |
| 3355 | + transform: translateY(-20px); | |
| 3356 | + transition: transform 0.3s ease; | |
| 3357 | +} | |
| 3358 | + | |
| 3359 | +.mxchat-addon-notice.active .mxchat-addon-notice-content { | |
| 3360 | + transform: translateY(0); | |
| 3361 | +} | |
| 3362 | + | |
| 3363 | +.mxchat-addon-notice-icon { | |
| 3364 | + font-size: 36px; | |
| 3365 | + margin-bottom: 15px; | |
| 3366 | + display: block; | |
| 3367 | +} | |
| 3368 | + | |
| 3369 | +.mxchat-addon-notice h3 { | |
| 3370 | + margin: 0 0 10px 0; | |
| 3371 | + font-size: 20px; | |
| 3372 | + background: linear-gradient(135deg, #FF8C00, #FFA500); | |
| 3373 | + -webkit-background-clip: text; | |
| 3374 | + background-clip: text; | |
| 3375 | + -webkit-text-fill-color: transparent; | |
| 3376 | + display: inline-block; | |
| 3377 | +} | |
| 3378 | + | |
| 3379 | +.mxchat-addon-notice p { | |
| 3380 | + margin: 0 0 20px 0; | |
| 3381 | + color: #666; | |
| 3382 | +} | |
| 3383 | + | |
| 3384 | +.mxchat-addon-notice-buttons { | |
| 3385 | + display: flex; | |
| 3386 | + gap: 10px; | |
| 3387 | + justify-content: center; | |
| 3388 | +} | |
| 3389 | + | |
| 3390 | + | |
| 3391 | + | |
| 3392 | + | |
| 3393 | + | |
| 3394 | +/* CSS for the custom post types accordion */ | |
| 3395 | +.mxchat-settings-accordion { | |
| 3396 | + margin: 15px 0; | |
| 3397 | + border-radius: 4px; | |
| 3398 | + overflow: hidden; | |
| 3399 | + border: 1px solid #e0e0e5; | |
| 3400 | +} | |
| 3401 | + | |
| 3402 | +.mxchat-accordion-header { | |
| 3403 | + border-bottom: none; | |
| 3404 | +} | |
| 3405 | + | |
| 3406 | +.mxchat-accordion-button { | |
| 3407 | + background-color: #f7f7f9; | |
| 3408 | + border: none; | |
| 3409 | + color: #444; | |
| 3410 | + cursor: pointer; | |
| 3411 | + font-size: 15px; | |
| 3412 | + font-weight: 500; | |
| 3413 | + padding: 14px 20px; | |
| 3414 | + text-align: left; | |
| 3415 | + transition: all 0.2s ease; | |
| 3416 | + width: 100%; | |
| 3417 | + display: flex; | |
| 3418 | + justify-content: space-between; | |
| 3419 | + align-items: center; | |
| 3420 | + outline: none; | |
| 3421 | +} | |
| 3422 | + | |
| 3423 | +.mxchat-accordion-button:hover { | |
| 3424 | + background-color: #f0f0f5; | |
| 3425 | +} | |
| 3426 | + | |
| 3427 | +.mxchat-accordion-icon { | |
| 3428 | + font-size: 12px; | |
| 3429 | + color: #666; | |
| 3430 | + transition: transform 0.3s ease; | |
| 3431 | +} | |
| 3432 | + | |
| 3433 | +.mxchat-accordion-content { | |
| 3434 | + border-top: 1px solid #e0e0e5; | |
| 3435 | + transition: all 0.3s ease; | |
| 3436 | +} | |
| 3437 | + | |
| 3438 | +.mxchat-accordion-inner { | |
| 3439 | + padding: 16px 20px; | |
| 3440 | + background-color: #fff; | |
| 3441 | +} | |
| 3442 | + | |
| 3443 | +/* Make the custom post types look nicer */ | |
| 3444 | +.mxchat-custom-post-types { | |
| 3445 | + display: grid; | |
| 3446 | + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| 3447 | + gap: 10px; | |
| 3448 | + margin-top: 10px; | |
| 3449 | +} | |
| 3450 | + | |
| 3451 | +.mxchat-description { | |
| 3452 | + margin-bottom: 15px; | |
| 3453 | + color: #666; | |
| 3454 | +} | |
| 3455 | + | |
| 3456 | +.mxchat-empty-notice { | |
| 3457 | + color: #888; | |
| 3458 | + font-style: italic; | |
| 3459 | +} | |
| 3460 | + | |
| 3461 | + | |
| 3462 | + | |
| 3463 | +/* Model Selector Button Styles */ | |
| 3464 | +.mxchat-model-selector-wrapper { | |
| 3465 | + width: 100%; | |
| 3466 | + position: relative; | |
| 3467 | +} | |
| 3468 | + | |
| 3469 | +.mxchat-model-selector-display { | |
| 3470 | + display: flex; | |
| 3471 | + justify-content: space-between; | |
| 3472 | + align-items: center; | |
| 3473 | + padding: 8px 12px; | |
| 3474 | + background-color: #fff; | |
| 3475 | + border: 1px solid #8c8f94; | |
| 3476 | + border-radius: 4px; | |
| 3477 | + cursor: pointer; | |
| 3478 | + min-height: 30px; | |
| 3479 | + line-height: 1.4; | |
| 3480 | + box-sizing: border-box; | |
| 3481 | + transition: border-color 0.2s; | |
| 3482 | +} | |
| 3483 | + | |
| 3484 | +.mxchat-model-selector-display:hover { | |
| 3485 | + border-color: #2271b1; | |
| 3486 | +} | |
| 3487 | + | |
| 3488 | +.mxchat-model-selected-name { | |
| 3489 | + white-space: nowrap; | |
| 3490 | + overflow: hidden; | |
| 3491 | + text-overflow: ellipsis; | |
| 3492 | + flex: 1; | |
| 3493 | +} | |
| 3494 | + | |
| 3495 | +.mxchat-model-selector-arrow { | |
| 3496 | + margin-left: 8px; | |
| 3497 | + font-size: 10px; | |
| 3498 | + color: #555; | |
| 3499 | +} | |
| 3500 | + | |
| 3501 | +/* Provider-specific border colors */ | |
| 3502 | +.mxchat-model-provider-gemini { | |
| 3503 | + border-left: 3px solid #4285F4; | |
| 3504 | +} | |
| 3505 | + | |
| 3506 | +.mxchat-model-provider-openai { | |
| 3507 | + border-left: 3px solid #10A37F; | |
| 3508 | +} | |
| 3509 | + | |
| 3510 | +.mxchat-model-provider-claude { | |
| 3511 | + border-left: 3px solid #965de9; | |
| 3512 | +} | |
| 3513 | + | |
| 3514 | +.mxchat-model-provider-xai { | |
| 3515 | + border-left: 3px solid #000000; | |
| 3516 | +} | |
| 3517 | + | |
| 3518 | +.mxchat-model-provider-deepseek { | |
| 3519 | + border-left: 3px solid #0066cc; | |
| 3520 | +} | |
| 3521 | + | |
| 3522 | +/* Modal Styles */ | |
| 3523 | +.mxchat-model-selector-modal { | |
| 3524 | + display: none; | |
| 3525 | + position: fixed; | |
| 3526 | + z-index: 9999; | |
| 3527 | + left: 0; | |
| 3528 | + top: 0; | |
| 3529 | + width: 100%; | |
| 3530 | + height: 100%; | |
| 3531 | + overflow: auto; | |
| 3532 | + background-color: rgba(0, 0, 0, 0.5); | |
| 3533 | +} | |
| 3534 | + | |
| 3535 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-content { | |
| 3536 | + background-color: #fff; | |
| 3537 | + margin: 5% auto; | |
| 3538 | + border-radius: 8px; | |
| 3539 | + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); | |
| 3540 | + width: 80%; | |
| 3541 | + max-width: 800px; | |
| 3542 | + animation: mxchatModalFade 0.3s; | |
| 3543 | +} | |
| 3544 | + | |
| 3545 | +@keyframes mxchatModalFade { | |
| 3546 | + from {opacity: 0; transform: translateY(-20px);} | |
| 3547 | + to {opacity: 1; transform: translateY(0);} | |
| 3548 | +} | |
| 3549 | + | |
| 3550 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-header { | |
| 3551 | + display: flex; | |
| 3552 | + justify-content: space-between; | |
| 3553 | + align-items: center; | |
| 3554 | + padding: 16px 24px; | |
| 3555 | + border-bottom: 1px solid #eee; | |
| 3556 | +} | |
| 3557 | + | |
| 3558 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-header h3 { | |
| 3559 | + margin: 0; | |
| 3560 | + color: #6750A4; | |
| 3561 | + font-size: 20px; | |
| 3562 | +} | |
| 3563 | + | |
| 3564 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-close { | |
| 3565 | + font-size: 24px; | |
| 3566 | + cursor: pointer; | |
| 3567 | + color: #888; | |
| 3568 | +} | |
| 3569 | + | |
| 3570 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-close:hover { | |
| 3571 | + color: #333; | |
| 3572 | +} | |
| 3573 | + | |
| 3574 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-body { | |
| 3575 | + padding: 24px; | |
| 3576 | + max-height: 60vh; | |
| 3577 | + overflow-y: auto; | |
| 3578 | +} | |
| 3579 | + | |
| 3580 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-footer { | |
| 3581 | + padding: 16px 24px; | |
| 3582 | + border-top: 1px solid #eee; | |
| 3583 | + text-align: right; | |
| 3584 | +} | |
| 3585 | + | |
| 3586 | +/* Search and Category Styles */ | |
| 3587 | +.mxchat-model-selector-modal .mxchat-model-selector-search-container { | |
| 3588 | + margin-bottom: 20px; | |
| 3589 | +} | |
| 3590 | + | |
| 3591 | +.mxchat-model-selector-modal .mxchat-model-search-input { | |
| 3592 | + width: 100%; | |
| 3593 | + padding: 10px 15px; | |
| 3594 | + border: 1px solid #ddd; | |
| 3595 | + border-radius: 4px; | |
| 3596 | + font-size: 16px; | |
| 3597 | +} | |
| 3598 | + | |
| 3599 | +.mxchat-model-selector-modal .mxchat-model-selector-categories { | |
| 3600 | + display: flex; | |
| 3601 | + flex-wrap: wrap; | |
| 3602 | + gap: 8px; | |
| 3603 | + margin-bottom: 20px; | |
| 3604 | +} | |
| 3605 | + | |
| 3606 | +.mxchat-model-selector-modal .mxchat-model-category-btn { | |
| 3607 | + background-color: #f5f5f5; | |
| 3608 | + border: 1px solid #ddd; | |
| 3609 | + padding: 8px 16px; | |
| 3610 | + border-radius: 20px; | |
| 3611 | + cursor: pointer; | |
| 3612 | + transition: all 0.2s; | |
| 3613 | +} | |
| 3614 | + | |
| 3615 | +.mxchat-model-selector-modal .mxchat-model-category-btn.active { | |
| 3616 | + background-color: #6750A4; | |
| 3617 | + color: white; | |
| 3618 | + border-color: #6750A4; | |
| 3619 | +} | |
| 3620 | + | |
| 3621 | +/* Model Grid Styles */ | |
| 3622 | +.mxchat-model-selector-modal .mxchat-model-selector-grid { | |
| 3623 | + display: grid; | |
| 3624 | + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| 3625 | + gap: 16px; | |
| 3626 | +} | |
| 3627 | + | |
| 3628 | +.mxchat-model-selector-modal .mxchat-model-selector-card { | |
| 3629 | + display: flex; | |
| 3630 | + border: 1px solid #ddd; | |
| 3631 | + border-radius: 8px; | |
| 3632 | + padding: 16px; | |
| 3633 | + cursor: pointer; | |
| 3634 | + transition: all 0.2s; | |
| 3635 | + position: relative; | |
| 3636 | +} | |
| 3637 | + | |
| 3638 | +.mxchat-model-selector-modal .mxchat-model-selector-card:hover { | |
| 3639 | + border-color: #6750A4; | |
| 3640 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |
| 3641 | +} | |
| 3642 | + | |
| 3643 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-selected { | |
| 3644 | + border-color: #6750A4; | |
| 3645 | + background-color: rgba(103, 80, 164, 0.05); | |
| 3646 | +} | |
| 3647 | + | |
| 3648 | +/* Provider-specific styles for cards */ | |
| 3649 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-gemini { | |
| 3650 | + border-left: 4px solid #4285F4; | |
| 3651 | +} | |
| 3652 | + | |
| 3653 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-openai { | |
| 3654 | + border-left: 4px solid #10A37F; | |
| 3655 | +} | |
| 3656 | + | |
| 3657 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-claude { | |
| 3658 | + border-left: 4px solid #965de9; | |
| 3659 | +} | |
| 3660 | + | |
| 3661 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-xai { | |
| 3662 | + border-left: 4px solid #000000; | |
| 3663 | +} | |
| 3664 | + | |
| 3665 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-deepseek { | |
| 3666 | + border-left: 4px solid #0066cc; | |
| 3667 | +} | |
| 3668 | + | |
| 3669 | +.mxchat-model-selector-modal .mxchat-model-selector-icon { | |
| 3670 | + margin-right: 12px; | |
| 3671 | + font-size: 24px; | |
| 3672 | + display: flex; | |
| 3673 | + align-items: center; | |
| 3674 | + width: 25px; | |
| 3675 | + height: 45px; | |
| 3676 | +} | |
| 3677 | + | |
| 3678 | +.mxchat-model-selector-modal .mxchat-model-icon-gemini { | |
| 3679 | + color: #4285F4; | |
| 3680 | +} | |
| 3681 | + | |
| 3682 | +.mxchat-model-selector-modal .mxchat-model-icon-openai { | |
| 3683 | + color: #10A37F; | |
| 3684 | +} | |
| 3685 | + | |
| 3686 | +.mxchat-model-selector-modal .mxchat-model-icon-claude { | |
| 3687 | + color: #965de9; | |
| 3688 | +} | |
| 3689 | + | |
| 3690 | +.mxchat-model-selector-modal .mxchat-model-icon-xai { | |
| 3691 | + color: #000000; | |
| 3692 | +} | |
| 3693 | + | |
| 3694 | +.mxchat-model-selector-modal .mxchat-model-icon-deepseek { | |
| 3695 | + color: #0066cc; | |
| 3696 | +} | |
| 3697 | + | |
| 3698 | +.mxchat-model-selector-modal .mxchat-model-selector-info { | |
| 3699 | + flex: 1; | |
| 3700 | +} | |
| 3701 | + | |
| 3702 | +.mxchat-model-selector-modal .mxchat-model-selector-title { | |
| 3703 | + margin: 0 0 6px 0; | |
| 3704 | + font-size: 16px; | |
| 3705 | +} | |
| 3706 | + | |
| 3707 | +.mxchat-model-selector-modal .mxchat-model-selector-description { | |
| 3708 | + margin: 0; | |
| 3709 | + font-size: 14px; | |
| 3710 | + color: #666; | |
| 3711 | +} | |
| 3712 | + | |
| 3713 | +.mxchat-model-selector-modal .mxchat-model-selector-checkmark { | |
| 3714 | + position: absolute; | |
| 3715 | + top: 8px; | |
| 3716 | + right: 8px; | |
| 3717 | + width: 20px; | |
| 3718 | + height: 20px; | |
| 3719 | + background-color: #6750A4; | |
| 3720 | + color: white; | |
| 3721 | + border-radius: 50%; | |
| 3722 | + display: flex; | |
| 3723 | + align-items: center; | |
| 3724 | + justify-content: center; | |
| 3725 | + font-size: 12px; | |
| 3726 | +} | |
| 3727 | + | |
| 3728 | +/* Media queries for responsive design */ | |
| 3729 | +@media screen and (max-width: 782px) { | |
| 3730 | + .mxchat-model-selector-modal .mxchat-model-selector-modal-content { | |
| 3731 | + width: 95%; | |
| 3732 | + margin: 10% auto; | |
| 3733 | + } | |
| 3734 | + | |
| 3735 | + .mxchat-model-selector-modal .mxchat-model-selector-grid { | |
| 3736 | + grid-template-columns: 1fr; | |
| 3737 | + } | |
| 3738 | + | |
| 3739 | + .mxchat-model-selector-modal .mxchat-model-selector-categories { | |
| 3740 | + overflow-x: auto; | |
| 3741 | + padding-bottom: 10px; | |
| 3742 | + } | |
| 3743 | +} | |
| 3744 | + | |
| 3745 | + | |
| 3746 | +/* Improved styling for the model selector button */ | |
| 3747 | +#mxchat_model_selector_btn.mxchat-model-selector-btn { | |
| 3748 | + width: 100%; | |
| 3749 | + max-width: 400px; | |
| 3750 | + text-align: left; | |
| 3751 | + padding: 8px 12px; | |
| 3752 | + height: auto; | |
| 3753 | + min-height: 36px; | |
| 3754 | + background-color: #fff; | |
| 3755 | + color: #2c3338; | |
| 3756 | + border: 1px solid #8c8f94; | |
| 3757 | + border-radius: 4px; | |
| 3758 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); | |
| 3759 | + position: relative; | |
| 3760 | + font-weight: normal; | |
| 3761 | + transition: all 0.2s ease; | |
| 3762 | + display: flex; | |
| 3763 | + align-items: center; | |
| 3764 | + justify-content: space-between; | |
| 3765 | +} | |
| 3766 | + | |
| 3767 | +#mxchat_model_selector_btn.mxchat-model-selector-btn:after { | |
| 3768 | + content: "\f140"; | |
| 3769 | + font-family: dashicons; | |
| 3770 | + position: absolute; | |
| 3771 | + right: 10px; | |
| 3772 | + font-size: 20px; | |
| 3773 | + color: #666; | |
| 3774 | +} | |
| 3775 | + | |
| 3776 | +#mxchat_model_selector_btn.mxchat-model-selector-btn:hover { | |
| 3777 | + border-color: #2271b1; | |
| 3778 | + color: #2271b1; | |
| 3779 | +} | |
| 3780 | + | |
| 3781 | +#mxchat_model_selector_btn.mxchat-model-selector-btn:focus { | |
| 3782 | + box-shadow: 0 0 0 1px #2271b1; | |
| 3783 | + outline: none; | |
| 3784 | +} | |
| 3785 | + | |
| 3786 | +/* Embedding Model Selector - completely separate styling to avoid conflicts */ | |
| 3787 | +.mxchat-embedding-model-selector-btn { | |
| 3788 | + width: 100%; | |
| 3789 | + max-width: 400px; | |
| 3790 | + text-align: left; | |
| 3791 | + padding: 8px 12px; | |
| 3792 | + height: auto; | |
| 3793 | + min-height: 36px; | |
| 3794 | + background-color: #fff; | |
| 3795 | + color: #2c3338; | |
| 3796 | + border: 1px solid #8c8f94; | |
| 3797 | + border-radius: 4px; | |
| 3798 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); | |
| 3799 | + position: relative; | |
| 3800 | + font-weight: normal; | |
| 3801 | + transition: all 0.2s ease; | |
| 3802 | + display: flex; | |
| 3803 | + align-items: center; | |
| 3804 | + justify-content: space-between; | |
| 3805 | +} | |
| 3806 | + | |
| 3807 | +.mxchat-embedding-model-selector-btn:after { | |
| 3808 | + content: "\f140"; | |
| 3809 | + font-family: dashicons; | |
| 3810 | + position: absolute; | |
| 3811 | + right: 10px; | |
| 3812 | + font-size: 20px; | |
| 3813 | + color: #666; | |
| 3814 | +} | |
| 3815 | + | |
| 3816 | +.mxchat-embedding-model-selector-btn:hover { | |
| 3817 | + border-color: #2271b1; | |
| 3818 | + color: #2271b1; | |
| 3819 | +} | |
| 3820 | + | |
| 3821 | +.mxchat-embedding-model-selector-btn:focus { | |
| 3822 | + box-shadow: 0 0 0 1px #2271b1; | |
| 3823 | + outline: none; | |
| 3824 | +} | |
| 3825 | + | |
| 3826 | +/* Modal Styles */ | |
| 3827 | +.mxchat-embedding-model-selector-modal { | |
| 3828 | + display: none; | |
| 3829 | + position: fixed; | |
| 3830 | + z-index: 9999; | |
| 3831 | + left: 0; | |
| 3832 | + top: 0; | |
| 3833 | + width: 100%; | |
| 3834 | + height: 100%; | |
| 3835 | + overflow: auto; | |
| 3836 | + background-color: rgba(0, 0, 0, 0.5); | |
| 3837 | +} | |
| 3838 | + | |
| 3839 | +.mxchat-embedding-model-selector-modal-content { | |
| 3840 | + background-color: #fff; | |
| 3841 | + margin: 5% auto; | |
| 3842 | + border-radius: 8px; | |
| 3843 | + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); | |
| 3844 | + width: 80%; | |
| 3845 | + max-width: 800px; | |
| 3846 | + animation: mxchatEmbeddingModalFade 0.3s; | |
| 3847 | +} | |
| 3848 | + | |
| 3849 | +@keyframes mxchatEmbeddingModalFade { | |
| 3850 | + from {opacity: 0; transform: translateY(-20px);} | |
| 3851 | + to {opacity: 1; transform: translateY(0);} | |
| 3852 | +} | |
| 3853 | + | |
| 3854 | +.mxchat-embedding-model-selector-modal-header { | |
| 3855 | + display: flex; | |
| 3856 | + justify-content: space-between; | |
| 3857 | + align-items: center; | |
| 3858 | + padding: 16px 24px; | |
| 3859 | + border-bottom: 1px solid #eee; | |
| 3860 | +} | |
| 3861 | + | |
| 3862 | +.mxchat-embedding-model-selector-modal-header h3 { | |
| 3863 | + margin: 0; | |
| 3864 | + color: #6750A4; | |
| 3865 | + font-size: 20px; | |
| 3866 | +} | |
| 3867 | + | |
| 3868 | +.mxchat-embedding-model-selector-modal-close { | |
| 3869 | + font-size: 24px; | |
| 3870 | + cursor: pointer; | |
| 3871 | + color: #888; | |
| 3872 | +} | |
| 3873 | + | |
| 3874 | +.mxchat-embedding-model-selector-modal-close:hover { | |
| 3875 | + color: #333; | |
| 3876 | +} | |
| 3877 | + | |
| 3878 | +.mxchat-embedding-model-selector-modal-body { | |
| 3879 | + padding: 24px; | |
| 3880 | + max-height: 60vh; | |
| 3881 | + overflow-y: auto; | |
| 3882 | +} | |
| 3883 | + | |
| 3884 | +.mxchat-embedding-model-selector-modal-footer { | |
| 3885 | + padding: 16px 24px; | |
| 3886 | + border-top: 1px solid #eee; | |
| 3887 | + text-align: right; | |
| 3888 | +} | |
| 3889 | + | |
| 3890 | +/* Search and Category Styles */ | |
| 3891 | +.mxchat-embedding-model-selector-search-container { | |
| 3892 | + margin-bottom: 20px; | |
| 3893 | +} | |
| 3894 | + | |
| 3895 | +.mxchat-embedding-model-search-input { | |
| 3896 | + width: 100%; | |
| 3897 | + padding: 10px 15px; | |
| 3898 | + border: 1px solid #ddd; | |
| 3899 | + border-radius: 4px; | |
| 3900 | + font-size: 16px; | |
| 3901 | +} | |
| 3902 | + | |
| 3903 | +.mxchat-embedding-model-selector-categories { | |
| 3904 | + display: flex; | |
| 3905 | + flex-wrap: wrap; | |
| 3906 | + gap: 8px; | |
| 3907 | + margin-bottom: 20px; | |
| 3908 | +} | |
| 3909 | + | |
| 3910 | +.mxchat-embedding-model-category-btn { | |
| 3911 | + background-color: #f5f5f5; | |
| 3912 | + border: 1px solid #ddd; | |
| 3913 | + padding: 8px 16px; | |
| 3914 | + border-radius: 20px; | |
| 3915 | + cursor: pointer; | |
| 3916 | + transition: all 0.2s; | |
| 3917 | +} | |
| 3918 | + | |
| 3919 | +.mxchat-embedding-model-category-btn.active { | |
| 3920 | + background-color: #6750A4; | |
| 3921 | + color: white; | |
| 3922 | + border-color: #6750A4; | |
| 3923 | +} | |
| 3924 | + | |
| 3925 | +/* Model Grid Styles */ | |
| 3926 | +.mxchat-embedding-model-selector-grid { | |
| 3927 | + display: grid; | |
| 3928 | + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| 3929 | + gap: 16px; | |
| 3930 | +} | |
| 3931 | + | |
| 3932 | +.mxchat-embedding-model-selector-card { | |
| 3933 | + display: flex; | |
| 3934 | + border: 1px solid #ddd; | |
| 3935 | + border-radius: 8px; | |
| 3936 | + padding: 16px; | |
| 3937 | + cursor: pointer; | |
| 3938 | + transition: all 0.2s; | |
| 3939 | + position: relative; | |
| 3940 | +} | |
| 3941 | + | |
| 3942 | +.mxchat-embedding-model-selector-card:hover { | |
| 3943 | + border-color: #6750A4; | |
| 3944 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |
| 3945 | +} | |
| 3946 | + | |
| 3947 | +.mxchat-embedding-model-selector-card.mxchat-embedding-model-selected { | |
| 3948 | + border-color: #6750A4; | |
| 3949 | + background-color: rgba(103, 80, 164, 0.05); | |
| 3950 | +} | |
| 3951 | + | |
| 3952 | +/* Provider-specific styles */ | |
| 3953 | +.mxchat-embedding-model-provider-openai { | |
| 3954 | + border-left: 4px solid #10A37F; | |
| 3955 | +} | |
| 3956 | + | |
| 3957 | +.mxchat-embedding-model-provider-voyage { | |
| 3958 | + border-left: 4px solid #0055D4; | |
| 3959 | +} | |
| 3960 | + | |
| 3961 | +.mxchat-embedding-model-selector-icon { | |
| 3962 | + margin-right: 12px; | |
| 3963 | + font-size: 24px; | |
| 3964 | + display: flex; | |
| 3965 | + align-items: center; | |
| 3966 | + width: 25px; | |
| 3967 | + height: 45px; | |
| 3968 | +} | |
| 3969 | + | |
| 3970 | +.mxchat-embedding-model-icon-openai { | |
| 3971 | + color: #10A37F; | |
| 3972 | +} | |
| 3973 | + | |
| 3974 | +.mxchat-embedding-model-icon-voyage { | |
| 3975 | + color: #0055D4; | |
| 3976 | +} | |
| 3977 | + | |
| 3978 | +.mxchat-embedding-model-selector-info { | |
| 3979 | + flex: 1; | |
| 3980 | +} | |
| 3981 | + | |
| 3982 | +.mxchat-embedding-model-selector-title { | |
| 3983 | + margin: 0 0 6px 0; | |
| 3984 | + font-size: 16px; | |
| 3985 | +} | |
| 3986 | + | |
| 3987 | +.mxchat-embedding-model-selector-description { | |
| 3988 | + margin: 0; | |
| 3989 | + font-size: 14px; | |
| 3990 | + color: #666; | |
| 3991 | +} | |
| 3992 | + | |
| 3993 | +.mxchat-embedding-model-selector-checkmark { | |
| 3994 | + position: absolute; | |
| 3995 | + top: 8px; | |
| 3996 | + right: 8px; | |
| 3997 | + width: 20px; | |
| 3998 | + height: 20px; | |
| 3999 | + background-color: #6750A4; | |
| 4000 | + color: white; | |
| 4001 | + border-radius: 50%; | |
| 4002 | + display: flex; | |
| 4003 | + align-items: center; | |
| 4004 | + justify-content: center; | |
| 4005 | + font-size: 12px; | |
| 4006 | +} | |
| 4007 | + | |
| 4008 | +/* Media queries for responsive design */ | |
| 4009 | +@media screen and (max-width: 782px) { | |
| 4010 | + .mxchat-embedding-model-selector-modal-content { | |
| 4011 | + width: 95%; | |
| 4012 | + margin: 10% auto; | |
| 4013 | + } | |
| 4014 | + | |
| 4015 | + .mxchat-embedding-model-selector-grid { | |
| 4016 | + grid-template-columns: 1fr; | |
| 4017 | + } | |
| 4018 | + | |
| 4019 | + .mxchat-embedding-model-selector-categories { | |
| 4020 | + overflow-x: auto; | |
| 4021 | + padding-bottom: 10px; | |
| 4022 | + } | |
| 4023 | +} | |
| 4024 | + | |
| 4025 | + | |
| 4026 | +/* Embedding Model Selector Button Styles */ | |
| 4027 | +#mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn { | |
| 4028 | + width: 100%; | |
| 4029 | + max-width: 400px; | |
| 4030 | + text-align: left; | |
| 4031 | + padding: 8px 12px; | |
| 4032 | + height: auto; | |
| 4033 | + min-height: 36px; | |
| 4034 | + background-color: #fff; | |
| 4035 | + color: #2c3338; | |
| 4036 | + border: 1px solid #8c8f94; | |
| 4037 | + border-radius: 4px; | |
| 4038 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); | |
| 4039 | + position: relative; | |
| 4040 | + font-weight: normal; | |
| 4041 | + transition: all 0.2s ease; | |
| 4042 | + display: flex; | |
| 4043 | + align-items: center; | |
| 4044 | + justify-content: space-between; | |
| 4045 | +} | |
| 4046 | + | |
| 4047 | +#mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn:after { | |
| 4048 | + content: "\f140"; | |
| 4049 | + font-family: dashicons; | |
| 4050 | + position: absolute; | |
| 4051 | + right: 10px; | |
| 4052 | + font-size: 20px; | |
| 4053 | + color: #666; | |
| 4054 | +} | |
| 4055 | + | |
| 4056 | +#mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn:hover { | |
| 4057 | + border-color: #2271b1; | |
| 4058 | + color: #2271b1; | |
| 4059 | +} | |
| 4060 | + | |
| 4061 | +#mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn:focus { | |
| 4062 | + box-shadow: 0 0 0 1px #2271b1; | |
| 4063 | + outline: none; | |
| 4064 | +} | |
| 4065 | + | |
| 4066 | +.mxchat-failed-urls-container { | |
| 4067 | + margin-top: 15px; | |
| 4068 | + border-top: 1px solid rgba(0, 0, 0, 0.1); | |
| 4069 | + padding-top: 10px; | |
| 4070 | +} | |
| 4071 | + | |
| 4072 | +.mxchat-failed-urls-container h4 { | |
| 4073 | + margin: 0 0 8px 0; | |
| 4074 | + font-size: 14px; | |
| 4075 | + color: #d63638; | |
| 4076 | +} | |
| 4077 | + | |
| 4078 | +.mxchat-failed-urls-container details { | |
| 4079 | + margin-bottom: 10px; | |
| 4080 | +} | |
| 4081 | + | |
| 4082 | +.mxchat-failed-urls-container summary { | |
| 4083 | + cursor: pointer; | |
| 4084 | + font-weight: 500; | |
| 4085 | + padding: 5px 0; | |
| 4086 | + color: #3c434a; | |
| 4087 | +} | |
| 4088 | + | |
| 4089 | +.mxchat-failed-urls-container summary:hover { | |
| 4090 | + color: #2271b1; | |
| 4091 | +} | |
| 4092 | + | |
| 4093 | +.mxchat-failed-urls-list { | |
| 4094 | + margin-top: 10px; | |
| 4095 | + max-height: 300px; | |
| 4096 | + overflow-y: auto; | |
| 4097 | + border: 1px solid #dcdcde; | |
| 4098 | + border-radius: 4px; | |
| 4099 | + background: #f8f9fa; | |
| 4100 | +} | |
| 4101 | + | |
| 4102 | +.mxchat-failed-url-item { | |
| 4103 | + padding: 8px 12px; | |
| 4104 | + border-bottom: 1px solid #dcdcde; | |
| 4105 | + display: grid; | |
| 4106 | + grid-template-columns: 1fr; | |
| 4107 | + grid-gap: 6px; | |
| 4108 | + font-size: 12px; | |
| 4109 | +} | |
| 4110 | + | |
| 4111 | +.mxchat-failed-url-item:last-child { | |
| 4112 | + border-bottom: none; | |
| 4113 | +} | |
| 4114 | + | |
| 4115 | +.mxchat-failed-url-address { | |
| 4116 | + font-weight: 500; | |
| 4117 | + word-break: break-all; | |
| 4118 | +} | |
| 4119 | + | |
| 4120 | +.mxchat-failed-url-address a { | |
| 4121 | + color: #2271b1; | |
| 4122 | + text-decoration: none; | |
| 4123 | +} | |
| 4124 | + | |
| 4125 | +.mxchat-failed-url-address a:hover { | |
| 4126 | + text-decoration: underline; | |
| 4127 | +} | |
| 4128 | + | |
| 4129 | +.mxchat-failed-url-error { | |
| 4130 | + color: #d63638; | |
| 4131 | +} | |
| 4132 | + | |
| 4133 | +.mxchat-failed-url-time { | |
| 4134 | + color: #50575e; | |
| 4135 | + font-style: italic; | |
| 4136 | + font-size: 11px; | |
| 4137 | +} | |
| 4138 | + | |
| 4139 | +.mxchat-failed-urls-more { | |
| 4140 | + text-align: center; | |
| 4141 | + padding: 8px; | |
| 4142 | + background: #f0f0f1; | |
| 4143 | + border-top: 1px solid #dcdcde; | |
| 4144 | + color: #50575e; | |
| 4145 | + font-style: italic; | |
| 4146 | + font-size: 12px; | |
| 4147 | +} | |
| 4148 | + | |
| 4149 | +/* Responsive design for larger screens */ | |
| 4150 | +@media screen and (min-width: 783px) { | |
| 4151 | + .mxchat-failed-url-item { | |
| 4152 | + grid-template-columns: 2fr 3fr 1fr; | |
| 4153 | + align-items: center; | |
| 4154 | + } | |
| 4155 | +} | |