| @@ -11,9 +11,26 @@ | ||
| 11 | 11 | |
| 12 | 12 | .mxchat-form-intent { |
| 13 | 13 | background-color: rgba(240, 240, 245, 0.5); |
| 14 | 14 | } |
| 15 | +/* Style the Add Ons submenu item with subtle gradient */ | |
| 16 | +#adminmenu a[href="admin.php?page=mxchat-addons"] { | |
| 17 | + position: relative; | |
| 18 | + border-left: 3px solid #fa73e6; | |
| 19 | + font-weight: 600; | |
| 20 | + background-color: rgba(120, 115, 245, 0.08) !important; | |
| 21 | +} | |
| 15 | 22 | |
| 23 | +/* Make the text stand out a bit more when active */ | |
| 24 | +#adminmenu .current a[href="admin.php?page=mxchat-addons"] { | |
| 25 | + color: white !important; | |
| 26 | +} | |
| 27 | + | |
| 28 | +/* Add hover effect with smooth transition */ | |
| 29 | +#adminmenu a[href="admin.php?page=mxchat-addons"]:hover { | |
| 30 | + background-color: rgba(120, 115, 245, 0.12) !important; | |
| 31 | + color: white !important; | |
| 32 | +} | |
| 16 | 33 | .mxchat-badge { |
| 17 | 34 | display: inline-block; |
| 18 | 35 | padding: 2px 8px; |
| 19 | 36 | border-radius: 12px; |
| @@ -74,19 +91,8 @@ | ||
| 74 | 91 | border-bottom: 1px solid #fff; |
| 75 | 92 | color: #000; |
| 76 | 93 | } |
| 77 | 94 | |
| 78 | -/* Tab Content */ | |
| 79 | -.mxchat-tab-content { | |
| 80 | - display: none; | |
| 81 | - padding: 25px; | |
| 82 | - background: white; | |
| 83 | - border: 1px solid #ddd; | |
| 84 | - border-radius: 10px; | |
| 85 | - box-shadow: 0 2px 15px rgba(0,0,0,0.05); | |
| 86 | - animation: fadeIn 0.3s ease-in-out; | |
| 87 | -} | |
| 88 | - | |
| 89 | 95 | #default-db.mxchat-tab-content, #pinecone-db.mxchat-tab-content { |
| 90 | 96 | border: none; |
| 91 | 97 | box-shadow: none; |
| 92 | 98 | padding: 0px; |
| @@ -260,8 +266,12 @@ | ||
| 260 | 266 | .mxchat-knowledge-controls { |
| 261 | 267 | flex-direction: column; |
| 262 | 268 | } |
| 263 | 269 | |
| 270 | + .mxchat-addon-notice-buttons { | |
| 271 | + flex-direction: column; | |
| 272 | + } | |
| 273 | + | |
| 264 | 274 | .mxchat-grid-container { |
| 265 | 275 | display: grid; |
| 266 | 276 | /* Add these properties */ |
| 267 | 277 | max-width: 100%; /* Constrain to parent width */ |
| @@ -2815,6 +2825,1771 @@ | ||
| 2815 | 2825 | } |
| 2816 | 2826 | } |
| 2817 | 2827 | |
| 2818 | 2828 | |
| 2829 | +.video-tutorials-section { | |
| 2830 | + max-width: 1200px; | |
| 2831 | + margin: 0 auto; | |
| 2832 | + padding: 0; | |
| 2833 | +} | |
| 2819 | 2834 | |
| 2835 | +.section-intro { | |
| 2836 | + text-align: center; | |
| 2837 | + margin-bottom: 2rem; | |
| 2838 | + font-size: 1.1rem; | |
| 2839 | +} | |
| 2820 | 2840 | |
| 2841 | +.tutorial-grid { | |
| 2842 | + display: grid; | |
| 2843 | + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | |
| 2844 | + gap: 2rem; | |
| 2845 | + margin-bottom: 3rem; | |
| 2846 | +} | |
| 2847 | + | |
| 2848 | +.tutorial-item { | |
| 2849 | + border: 1px solid #e0e0e0; | |
| 2850 | + border-radius: 8px; | |
| 2851 | + padding: 1.5rem; | |
| 2852 | + box-shadow: 0 2px 5px rgba(0,0,0,0.05); | |
| 2853 | + transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| 2854 | + background-color: #fff; | |
| 2855 | +} | |
| 2856 | + | |
| 2857 | +.tutorial-item:hover { | |
| 2858 | + transform: translateY(-5px); | |
| 2859 | + box-shadow: 0 5px 15px rgba(0,0,0,0.1); | |
| 2860 | +} | |
| 2861 | + | |
| 2862 | +.tutorial-item h3 { | |
| 2863 | + margin-top: 0; | |
| 2864 | + font-size: 1.2rem; | |
| 2865 | + color: #333; | |
| 2866 | + border-bottom: 2px solid #f0f0f0; | |
| 2867 | + padding-bottom: 0.75rem; | |
| 2868 | + margin-bottom: 1rem; | |
| 2869 | +} | |
| 2870 | + | |
| 2871 | +.video-description p { | |
| 2872 | + margin-bottom: 1rem; | |
| 2873 | + color: #555; | |
| 2874 | +} | |
| 2875 | + | |
| 2876 | +.video-description small { | |
| 2877 | + color: #888; | |
| 2878 | + font-style: italic; | |
| 2879 | +} | |
| 2880 | + | |
| 2881 | +.video-link { | |
| 2882 | + display: inline-flex; | |
| 2883 | + align-items: center; | |
| 2884 | + text-decoration: none; | |
| 2885 | + color: #0073aa; | |
| 2886 | + font-weight: 500; | |
| 2887 | + margin-top: 0.5rem; | |
| 2888 | + padding: 0.5rem 1rem; | |
| 2889 | + border-radius: 4px; | |
| 2890 | + background-color: #f7f7f7; | |
| 2891 | + transition: background-color 0.2s ease; | |
| 2892 | +} | |
| 2893 | + | |
| 2894 | +.video-link:hover { | |
| 2895 | + background-color: #e6f3fa; | |
| 2896 | + color: #004d74; | |
| 2897 | +} | |
| 2898 | + | |
| 2899 | +.video-icon { | |
| 2900 | + margin-right: 0.5rem; | |
| 2901 | + display: inline-flex; | |
| 2902 | + color: #e62117; | |
| 2903 | +} | |
| 2904 | + | |
| 2905 | +.support-section { | |
| 2906 | + margin-top: 3rem; | |
| 2907 | + padding-top: 2rem; | |
| 2908 | + border-top: 1px solid #e0e0e0; | |
| 2909 | + text-align: center; | |
| 2910 | +} | |
| 2911 | + | |
| 2912 | +.support-content { | |
| 2913 | + max-width: 800px; | |
| 2914 | + margin: 0 auto; | |
| 2915 | + background-color: #f9f9f9; | |
| 2916 | + padding: 2rem; | |
| 2917 | + border-radius: 8px; | |
| 2918 | +} | |
| 2919 | + | |
| 2920 | +.support-content p { | |
| 2921 | + margin-bottom: 1rem; | |
| 2922 | + font-size: 1.1rem; | |
| 2923 | + line-height: 1.6; | |
| 2924 | +} | |
| 2925 | + | |
| 2926 | +.support-content a { | |
| 2927 | + color: #0073aa; | |
| 2928 | + font-weight: 500; | |
| 2929 | + text-decoration: none; | |
| 2930 | + padding: 0.2rem 0.4rem; | |
| 2931 | + border-radius: 3px; | |
| 2932 | + transition: background-color 0.2s; | |
| 2933 | +} | |
| 2934 | + | |
| 2935 | +.support-content a:hover { | |
| 2936 | + background-color: #e6f3fa; | |
| 2937 | + text-decoration: underline; | |
| 2938 | +} | |
| 2939 | + | |
| 2940 | +.api-info-item h4 { | |
| 2941 | + margin-top: 0; | |
| 2942 | + color: #333; | |
| 2943 | + margin-bottom: 1rem; | |
| 2944 | +} | |
| 2945 | + | |
| 2946 | +@media (max-width: 768px) { | |
| 2947 | + .tutorial-grid { | |
| 2948 | + grid-template-columns: 1fr; | |
| 2949 | + } | |
| 2950 | + | |
| 2951 | + .tutorial-item { | |
| 2952 | + padding: 1rem; | |
| 2953 | + } | |
| 2954 | + | |
| 2955 | + .support-content { | |
| 2956 | + padding: 1.5rem; | |
| 2957 | + } | |
| 2958 | +} | |
| 2959 | + | |
| 2960 | +/* Additional CSS for the main admin page */ | |
| 2961 | + | |
| 2962 | +/* Pro and Add-on notice messages */ | |
| 2963 | +.mxchat-pro-notice, | |
| 2964 | +.mxchat-addon-notice { | |
| 2965 | + margin: 0; | |
| 2966 | + line-height: 1.6; | |
| 2967 | + color: #333; | |
| 2968 | +} | |
| 2969 | + | |
| 2970 | +.mxchat-pro-notice a, | |
| 2971 | +.mxchat-addon-notice a { | |
| 2972 | + text-decoration: none; | |
| 2973 | + font-weight: 600; | |
| 2974 | + transition: color 0.2s ease; | |
| 2975 | +} | |
| 2976 | + | |
| 2977 | +.mxchat-pro-notice a:hover, | |
| 2978 | +.mxchat-addon-notice a:hover { | |
| 2979 | + text-decoration: underline; | |
| 2980 | + color: #fff; | |
| 2981 | +} | |
| 2982 | + | |
| 2983 | +/* Tutorial Grid & Items */ | |
| 2984 | +.tutorial-grid { | |
| 2985 | + display: grid; | |
| 2986 | + grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); | |
| 2987 | + gap: 24px; | |
| 2988 | + margin-top: 20px; | |
| 2989 | +} | |
| 2990 | + | |
| 2991 | +.tutorial-item { | |
| 2992 | + background: #f8f9ff; | |
| 2993 | + border-radius: 12px; | |
| 2994 | + padding: 24px; | |
| 2995 | + transition: all 0.3s ease; | |
| 2996 | + border: 1px solid rgba(120, 115, 245, 0.1); | |
| 2997 | +} | |
| 2998 | + | |
| 2999 | +.tutorial-item:hover { | |
| 3000 | + transform: translateY(-3px); | |
| 3001 | + box-shadow: 0 6px 20px rgba(120, 115, 245, 0.12); | |
| 3002 | +} | |
| 3003 | + | |
| 3004 | +.tutorial-item h3 { | |
| 3005 | + margin-top: 0; | |
| 3006 | + margin-bottom: 16px; | |
| 3007 | + color: #333; | |
| 3008 | + font-size: 1.2rem; | |
| 3009 | +} | |
| 3010 | + | |
| 3011 | +.video-description p { | |
| 3012 | + color: #666; | |
| 3013 | + font-size: 0.95rem; | |
| 3014 | + margin-bottom: 16px; | |
| 3015 | +} | |
| 3016 | + | |
| 3017 | +.video-description small { | |
| 3018 | + color: #888; | |
| 3019 | + font-size: 0.85rem; | |
| 3020 | + font-style: italic; | |
| 3021 | +} | |
| 3022 | + | |
| 3023 | +.video-link { | |
| 3024 | + display: inline-flex; | |
| 3025 | + align-items: center; | |
| 3026 | + gap: 8px; | |
| 3027 | + padding: 8px 16px; | |
| 3028 | + background: white; | |
| 3029 | + border-radius: 8px; | |
| 3030 | + text-decoration: none; | |
| 3031 | + color: #7873f5; | |
| 3032 | + font-weight: 600; | |
| 3033 | + font-size: 0.9rem; | |
| 3034 | + border: 1px solid rgba(120, 115, 245, 0.2); | |
| 3035 | + transition: all 0.2s ease; | |
| 3036 | +} | |
| 3037 | + | |
| 3038 | +.video-link:hover { | |
| 3039 | + background: #eef0ff; | |
| 3040 | + color: #fa73e6; | |
| 3041 | +} | |
| 3042 | + | |
| 3043 | +.video-icon { | |
| 3044 | + display: flex; | |
| 3045 | + align-items: center; | |
| 3046 | + justify-content: center; | |
| 3047 | +} | |
| 3048 | + | |
| 3049 | +/* Support Section */ | |
| 3050 | +.support-section { | |
| 3051 | + margin-top: 40px; | |
| 3052 | + padding: 24px; | |
| 3053 | + background: #f8f9ff; | |
| 3054 | + border-radius: 12px; | |
| 3055 | + border: 1px solid rgba(120, 115, 245, 0.1); | |
| 3056 | +} | |
| 3057 | + | |
| 3058 | +.support-section h3 { | |
| 3059 | + margin-top: 0; | |
| 3060 | + color: #333; | |
| 3061 | +} | |
| 3062 | + | |
| 3063 | +.support-content p { | |
| 3064 | + color: #666; | |
| 3065 | + margin-bottom: 12px; | |
| 3066 | +} | |
| 3067 | + | |
| 3068 | +.support-content a { | |
| 3069 | + color: #7873f5; | |
| 3070 | + text-decoration: none; | |
| 3071 | + font-weight: 600; | |
| 3072 | +} | |
| 3073 | + | |
| 3074 | +.support-content a:hover { | |
| 3075 | + color: #fa73e6; | |
| 3076 | + text-decoration: underline; | |
| 3077 | +} | |
| 3078 | + | |
| 3079 | +/* Updated tab navigation */ | |
| 3080 | +.mxchat-tabs { | |
| 3081 | + display: flex; | |
| 3082 | + gap: 2px; | |
| 3083 | + margin-bottom: 20px; | |
| 3084 | + border-bottom: 1px solid rgba(120, 115, 245, 0.1); | |
| 3085 | +} | |
| 3086 | + | |
| 3087 | +.mxchat-tab-button { | |
| 3088 | + padding: 12px 24px; | |
| 3089 | + background: none; | |
| 3090 | + border: none; | |
| 3091 | + border-bottom: 2px solid transparent; | |
| 3092 | + color: #666; | |
| 3093 | + cursor: pointer; | |
| 3094 | + font-size: 14px; | |
| 3095 | + transition: all 0.2s ease; | |
| 3096 | +} | |
| 3097 | + | |
| 3098 | +.mxchat-tab-button:hover { | |
| 3099 | + color: #7873f5; | |
| 3100 | +} | |
| 3101 | + | |
| 3102 | +.mxchat-tab-button.active { | |
| 3103 | + color: #7873f5; | |
| 3104 | + border-bottom-color: #7873f5; | |
| 3105 | +} | |
| 3106 | + | |
| 3107 | +/* Tab content */ | |
| 3108 | +.mxchat-tab-content { | |
| 3109 | + display: none; | |
| 3110 | +} | |
| 3111 | + | |
| 3112 | +.mxchat-tab-content.active { | |
| 3113 | + display: block; | |
| 3114 | +} | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | +/* Pro Notification Styling */ | |
| 3120 | +.mxchat-pro-card { | |
| 3121 | + background: linear-gradient(90deg, #f8f9ff 0%, #f0f4ff 100%); | |
| 3122 | + border-left: 4px solid #6366f1; | |
| 3123 | + border-radius: 8px; | |
| 3124 | + box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1); | |
| 3125 | + margin-bottom: 25px; | |
| 3126 | + overflow: hidden; | |
| 3127 | +} | |
| 3128 | + | |
| 3129 | +.mxchat-pro-notification { | |
| 3130 | + display: flex; | |
| 3131 | + flex-direction: row; | |
| 3132 | + align-items: center; | |
| 3133 | + justify-content: space-between; | |
| 3134 | + padding: 20px 24px; | |
| 3135 | +} | |
| 3136 | + | |
| 3137 | +@media (max-width: 768px) { | |
| 3138 | + .mxchat-pro-notification { | |
| 3139 | + flex-direction: column; | |
| 3140 | + text-align: center; | |
| 3141 | + gap: 15px; | |
| 3142 | + } | |
| 3143 | +} | |
| 3144 | + | |
| 3145 | +.mxchat-pro-content { | |
| 3146 | + flex: 1; | |
| 3147 | + padding-right: 10px; | |
| 3148 | +} | |
| 3149 | + | |
| 3150 | +.mxchat-pro-content h3 { | |
| 3151 | + margin-top: 0; | |
| 3152 | + margin-bottom: 8px; | |
| 3153 | + font-size: 18px; | |
| 3154 | + color: #4338ca; | |
| 3155 | + font-weight: 600; | |
| 3156 | +} | |
| 3157 | + | |
| 3158 | +.mxchat-pro-content p { | |
| 3159 | + margin: 0; | |
| 3160 | + color: #4b5563; | |
| 3161 | + font-size: 14px; | |
| 3162 | + line-height: 1.5; | |
| 3163 | +} | |
| 3164 | + | |
| 3165 | +.mxchat-pro-cta { | |
| 3166 | + display: flex; | |
| 3167 | + flex-direction: column; | |
| 3168 | + gap: 8px; | |
| 3169 | + min-width: 180px; | |
| 3170 | +} | |
| 3171 | + | |
| 3172 | +.mxchat-button { | |
| 3173 | + display: inline-block; | |
| 3174 | + background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%); | |
| 3175 | + color: white !important; | |
| 3176 | + font-weight: 600; | |
| 3177 | + padding: 10px 20px; | |
| 3178 | + border-radius: 6px; | |
| 3179 | + text-decoration: none !important; | |
| 3180 | + text-align: center; | |
| 3181 | + transition: all 0.2s ease; | |
| 3182 | + box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3); | |
| 3183 | +} | |
| 3184 | + | |
| 3185 | +.mxchat-button:hover { | |
| 3186 | + transform: translateY(-2px); | |
| 3187 | + box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); | |
| 3188 | +} | |
| 3189 | + | |
| 3190 | +.mxchat-link { | |
| 3191 | + color: #6366f1 !important; | |
| 3192 | + text-decoration: none !important; | |
| 3193 | + text-align: center; | |
| 3194 | + font-size: 14px; | |
| 3195 | + padding: 4px; | |
| 3196 | +} | |
| 3197 | + | |
| 3198 | +.mxchat-link:hover { | |
| 3199 | + text-decoration: underline !important; | |
| 3200 | +} | |
| 3201 | + | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
| 3208 | +/* API Key field styles */ | |
| 3209 | +.api-key-wrapper { | |
| 3210 | + margin-bottom: 15px; | |
| 3211 | + padding: 15px; | |
| 3212 | + border-radius: 5px; | |
| 3213 | + border-left: 4px solid #2271b1; | |
| 3214 | + background-color: #f0f6fc; | |
| 3215 | + transition: all 0.3s ease; | |
| 3216 | +} | |
| 3217 | + | |
| 3218 | +/* Row-level visibility handling */ | |
| 3219 | +tr.mxchat-setting-row { | |
| 3220 | + display: table-row; | |
| 3221 | + transition: all 0.3s ease; | |
| 3222 | +} | |
| 3223 | + | |
| 3224 | +tr.mxchat-setting-row.highlighted { | |
| 3225 | + animation: highlight-row 1.5s ease; | |
| 3226 | +} | |
| 3227 | + | |
| 3228 | +.api-key-wrapper input[type="password"] { | |
| 3229 | + margin-right: 10px; | |
| 3230 | +} | |
| 3231 | + | |
| 3232 | +.api-key-wrapper button { | |
| 3233 | + background: #f6f7f7; | |
| 3234 | + border: 1px solid #c3c4c7; | |
| 3235 | + color: #50575e; | |
| 3236 | + cursor: pointer; | |
| 3237 | + border-radius: 3px; | |
| 3238 | + padding: 0 10px; | |
| 3239 | + height: 30px; | |
| 3240 | + line-height: 28px; | |
| 3241 | + font-size: 13px; | |
| 3242 | +} | |
| 3243 | + | |
| 3244 | +.api-key-wrapper button:hover { | |
| 3245 | + background: #f0f0f1; | |
| 3246 | +} | |
| 3247 | + | |
| 3248 | +.api-key-notice { | |
| 3249 | + margin-top: 8px !important; | |
| 3250 | + color: #1e1e1e; | |
| 3251 | + font-style: italic; | |
| 3252 | +} | |
| 3253 | + | |
| 3254 | +@keyframes highlight-field { | |
| 3255 | + 0% { | |
| 3256 | + background-color: #e5f5fa; | |
| 3257 | + } | |
| 3258 | + 50% { | |
| 3259 | + background-color: #c7e8f3; | |
| 3260 | + } | |
| 3261 | + 100% { | |
| 3262 | + background-color: #f0f6fc; | |
| 3263 | + } | |
| 3264 | +} | |
| 3265 | + | |
| 3266 | +@keyframes highlight-row { | |
| 3267 | + 0% { background-color: transparent; } | |
| 3268 | + 50% { background-color: #e5f5fa; } | |
| 3269 | + 100% { background-color: transparent; } | |
| 3270 | +} | |
| 3271 | + | |
| 3272 | +/* Customize the look based on provider */ | |
| 3273 | +.api-key-wrapper[data-provider="openai"] { | |
| 3274 | + border-left-color: #10a37f; | |
| 3275 | +} | |
| 3276 | + | |
| 3277 | +.api-key-wrapper[data-provider="xai"] { | |
| 3278 | + border-left-color: #0077e6; | |
| 3279 | +} | |
| 3280 | + | |
| 3281 | +.api-key-wrapper[data-provider="claude"] { | |
| 3282 | + border-left-color: #a065d5; | |
| 3283 | +} | |
| 3284 | + | |
| 3285 | +.api-key-wrapper[data-provider="deepseek"] { | |
| 3286 | + border-left-color: #3b7fc4; | |
| 3287 | +} | |
| 3288 | + | |
| 3289 | +.api-key-wrapper[data-provider="voyage"] { | |
| 3290 | + border-left-color: #ff6b00; | |
| 3291 | +} | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | +/* Add-on styling */ | |
| 3309 | +.mxchat-addon-badge { | |
| 3310 | + display: inline-block; | |
| 3311 | + background: linear-gradient(135deg, #FF8C00, #FFA500); | |
| 3312 | + color: white; | |
| 3313 | + font-size: 10px; | |
| 3314 | + padding: 2px 6px; | |
| 3315 | + border-radius: 10px; | |
| 3316 | + margin-top: 5px; | |
| 3317 | + font-weight: 600; | |
| 3318 | + margin-left: 6px; | |
| 3319 | +} | |
| 3320 | + | |
| 3321 | +.mxchat-addon-info { | |
| 3322 | + font-size: 11px; | |
| 3323 | + color: #666; | |
| 3324 | + margin-top: 8px; | |
| 3325 | + background: rgba(255, 140, 0, 0.1); | |
| 3326 | + padding: 4px 8px; | |
| 3327 | + border-radius: 4px; | |
| 3328 | + display: inline-block; | |
| 3329 | +} | |
| 3330 | + | |
| 3331 | +.mxchat-action-type-card.not-installed { | |
| 3332 | + opacity: 0.8; | |
| 3333 | + border-style: dashed; | |
| 3334 | + background: rgba(255, 255, 255, 0.8); | |
| 3335 | +} | |
| 3336 | + | |
| 3337 | +.mxchat-action-type-card.not-installed:hover { | |
| 3338 | + opacity: 1; | |
| 3339 | + border-color: #FF8C00; | |
| 3340 | + box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1); | |
| 3341 | +} | |
| 3342 | + | |
| 3343 | +/* Add-on Notice */ | |
| 3344 | +.mxchat-addon-notice { | |
| 3345 | + position: fixed; | |
| 3346 | + top: 0; | |
| 3347 | + left: 0; | |
| 3348 | + width: 100%; | |
| 3349 | + height: 100%; | |
| 3350 | + background: rgba(0, 0, 0, 0.5); | |
| 3351 | + z-index: 100003; | |
| 3352 | + display: flex; | |
| 3353 | + align-items: center; | |
| 3354 | + justify-content: center; | |
| 3355 | + opacity: 0; | |
| 3356 | + visibility: hidden; | |
| 3357 | + transition: opacity 0.3s ease, visibility 0.3s ease; | |
| 3358 | +} | |
| 3359 | + | |
| 3360 | +.mxchat-addon-notice.active { | |
| 3361 | + opacity: 1; | |
| 3362 | + visibility: visible; | |
| 3363 | +} | |
| 3364 | + | |
| 3365 | +.mxchat-addon-notice-content { | |
| 3366 | + background: white; | |
| 3367 | + padding: 30px; | |
| 3368 | + border-radius: 16px; | |
| 3369 | + max-width: 400px; | |
| 3370 | + text-align: center; | |
| 3371 | + box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); | |
| 3372 | + transform: translateY(-20px); | |
| 3373 | + transition: transform 0.3s ease; | |
| 3374 | +} | |
| 3375 | + | |
| 3376 | +.mxchat-addon-notice.active .mxchat-addon-notice-content { | |
| 3377 | + transform: translateY(0); | |
| 3378 | +} | |
| 3379 | + | |
| 3380 | +.mxchat-addon-notice-icon { | |
| 3381 | + font-size: 36px; | |
| 3382 | + margin-bottom: 15px; | |
| 3383 | + display: block; | |
| 3384 | +} | |
| 3385 | + | |
| 3386 | +.mxchat-addon-notice h3 { | |
| 3387 | + margin: 0 0 10px 0; | |
| 3388 | + font-size: 20px; | |
| 3389 | + background: linear-gradient(135deg, #FF8C00, #FFA500); | |
| 3390 | + -webkit-background-clip: text; | |
| 3391 | + background-clip: text; | |
| 3392 | + -webkit-text-fill-color: transparent; | |
| 3393 | + display: inline-block; | |
| 3394 | +} | |
| 3395 | + | |
| 3396 | +.mxchat-addon-notice p { | |
| 3397 | + margin: 0 0 20px 0; | |
| 3398 | + color: #666; | |
| 3399 | +} | |
| 3400 | + | |
| 3401 | +.mxchat-addon-notice-buttons { | |
| 3402 | + display: flex; | |
| 3403 | + gap: 10px; | |
| 3404 | + justify-content: center; | |
| 3405 | +} | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | +/* CSS for the custom post types accordion */ | |
| 3412 | +.mxchat-settings-accordion { | |
| 3413 | + margin: 15px 0; | |
| 3414 | + border-radius: 4px; | |
| 3415 | + overflow: hidden; | |
| 3416 | + border: 1px solid #e0e0e5; | |
| 3417 | +} | |
| 3418 | + | |
| 3419 | +.mxchat-accordion-header { | |
| 3420 | + border-bottom: none; | |
| 3421 | +} | |
| 3422 | + | |
| 3423 | +.mxchat-accordion-button { | |
| 3424 | + background-color: #f7f7f9; | |
| 3425 | + border: none; | |
| 3426 | + color: #444; | |
| 3427 | + cursor: pointer; | |
| 3428 | + font-size: 15px; | |
| 3429 | + font-weight: 500; | |
| 3430 | + padding: 14px 20px; | |
| 3431 | + text-align: left; | |
| 3432 | + transition: all 0.2s ease; | |
| 3433 | + width: 100%; | |
| 3434 | + display: flex; | |
| 3435 | + justify-content: space-between; | |
| 3436 | + align-items: center; | |
| 3437 | + outline: none; | |
| 3438 | +} | |
| 3439 | + | |
| 3440 | +.mxchat-accordion-button:hover { | |
| 3441 | + background-color: #f0f0f5; | |
| 3442 | +} | |
| 3443 | + | |
| 3444 | +.mxchat-accordion-icon { | |
| 3445 | + font-size: 12px; | |
| 3446 | + color: #666; | |
| 3447 | + transition: transform 0.3s ease; | |
| 3448 | +} | |
| 3449 | + | |
| 3450 | +.mxchat-accordion-content { | |
| 3451 | + border-top: 1px solid #e0e0e5; | |
| 3452 | + transition: all 0.3s ease; | |
| 3453 | +} | |
| 3454 | + | |
| 3455 | +.mxchat-accordion-inner { | |
| 3456 | + padding: 16px 20px; | |
| 3457 | + background-color: #fff; | |
| 3458 | +} | |
| 3459 | + | |
| 3460 | +/* Make the custom post types look nicer */ | |
| 3461 | +.mxchat-custom-post-types { | |
| 3462 | + display: grid; | |
| 3463 | + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| 3464 | + gap: 10px; | |
| 3465 | + margin-top: 10px; | |
| 3466 | +} | |
| 3467 | + | |
| 3468 | +.mxchat-description { | |
| 3469 | + margin-bottom: 15px; | |
| 3470 | + color: #666; | |
| 3471 | +} | |
| 3472 | + | |
| 3473 | +.mxchat-empty-notice { | |
| 3474 | + color: #888; | |
| 3475 | + font-style: italic; | |
| 3476 | +} | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | +/* Model Selector Button Styles */ | |
| 3481 | +.mxchat-model-selector-wrapper { | |
| 3482 | + width: 100%; | |
| 3483 | + position: relative; | |
| 3484 | +} | |
| 3485 | + | |
| 3486 | +.mxchat-model-selector-display { | |
| 3487 | + display: flex; | |
| 3488 | + justify-content: space-between; | |
| 3489 | + align-items: center; | |
| 3490 | + padding: 8px 12px; | |
| 3491 | + background-color: #fff; | |
| 3492 | + border: 1px solid #8c8f94; | |
| 3493 | + border-radius: 4px; | |
| 3494 | + cursor: pointer; | |
| 3495 | + min-height: 30px; | |
| 3496 | + line-height: 1.4; | |
| 3497 | + box-sizing: border-box; | |
| 3498 | + transition: border-color 0.2s; | |
| 3499 | +} | |
| 3500 | + | |
| 3501 | +.mxchat-model-selector-display:hover { | |
| 3502 | + border-color: #2271b1; | |
| 3503 | +} | |
| 3504 | + | |
| 3505 | +.mxchat-model-selected-name { | |
| 3506 | + white-space: nowrap; | |
| 3507 | + overflow: hidden; | |
| 3508 | + text-overflow: ellipsis; | |
| 3509 | + flex: 1; | |
| 3510 | +} | |
| 3511 | + | |
| 3512 | +.mxchat-model-selector-arrow { | |
| 3513 | + margin-left: 8px; | |
| 3514 | + font-size: 10px; | |
| 3515 | + color: #555; | |
| 3516 | +} | |
| 3517 | + | |
| 3518 | +/* Provider-specific border colors */ | |
| 3519 | +.mxchat-model-provider-gemini { | |
| 3520 | + border-left: 3px solid #4285F4; | |
| 3521 | +} | |
| 3522 | + | |
| 3523 | +.mxchat-model-provider-openai { | |
| 3524 | + border-left: 3px solid #10A37F; | |
| 3525 | +} | |
| 3526 | + | |
| 3527 | +.mxchat-model-provider-claude { | |
| 3528 | + border-left: 3px solid #965de9; | |
| 3529 | +} | |
| 3530 | + | |
| 3531 | +.mxchat-model-provider-xai { | |
| 3532 | + border-left: 3px solid #000000; | |
| 3533 | +} | |
| 3534 | + | |
| 3535 | +.mxchat-model-provider-deepseek { | |
| 3536 | + border-left: 3px solid #0066cc; | |
| 3537 | +} | |
| 3538 | + | |
| 3539 | +/* Modal Styles */ | |
| 3540 | +.mxchat-model-selector-modal { | |
| 3541 | + display: none; | |
| 3542 | + position: fixed; | |
| 3543 | + z-index: 9999; | |
| 3544 | + left: 0; | |
| 3545 | + top: 0; | |
| 3546 | + width: 100%; | |
| 3547 | + height: 100%; | |
| 3548 | + overflow: auto; | |
| 3549 | + background-color: rgba(0, 0, 0, 0.5); | |
| 3550 | +} | |
| 3551 | + | |
| 3552 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-content { | |
| 3553 | + background-color: #fff; | |
| 3554 | + margin: 5% auto; | |
| 3555 | + border-radius: 8px; | |
| 3556 | + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); | |
| 3557 | + width: 80%; | |
| 3558 | + max-width: 800px; | |
| 3559 | + animation: mxchatModalFade 0.3s; | |
| 3560 | +} | |
| 3561 | + | |
| 3562 | +@keyframes mxchatModalFade { | |
| 3563 | + from {opacity: 0; transform: translateY(-20px);} | |
| 3564 | + to {opacity: 1; transform: translateY(0);} | |
| 3565 | +} | |
| 3566 | + | |
| 3567 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-header { | |
| 3568 | + display: flex; | |
| 3569 | + justify-content: space-between; | |
| 3570 | + align-items: center; | |
| 3571 | + padding: 16px 24px; | |
| 3572 | + border-bottom: 1px solid #eee; | |
| 3573 | +} | |
| 3574 | + | |
| 3575 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-header h3 { | |
| 3576 | + margin: 0; | |
| 3577 | + color: #6750A4; | |
| 3578 | + font-size: 20px; | |
| 3579 | +} | |
| 3580 | + | |
| 3581 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-close { | |
| 3582 | + font-size: 24px; | |
| 3583 | + cursor: pointer; | |
| 3584 | + color: #888; | |
| 3585 | +} | |
| 3586 | + | |
| 3587 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-close:hover { | |
| 3588 | + color: #333; | |
| 3589 | +} | |
| 3590 | + | |
| 3591 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-body { | |
| 3592 | + padding: 24px; | |
| 3593 | + max-height: 60vh; | |
| 3594 | + overflow-y: auto; | |
| 3595 | +} | |
| 3596 | + | |
| 3597 | +.mxchat-model-selector-modal .mxchat-model-selector-modal-footer { | |
| 3598 | + padding: 16px 24px; | |
| 3599 | + border-top: 1px solid #eee; | |
| 3600 | + text-align: right; | |
| 3601 | +} | |
| 3602 | + | |
| 3603 | +/* Search and Category Styles */ | |
| 3604 | +.mxchat-model-selector-modal .mxchat-model-selector-search-container { | |
| 3605 | + margin-bottom: 20px; | |
| 3606 | +} | |
| 3607 | + | |
| 3608 | +.mxchat-model-selector-modal .mxchat-model-search-input { | |
| 3609 | + width: 100%; | |
| 3610 | + padding: 10px 15px; | |
| 3611 | + border: 1px solid #ddd; | |
| 3612 | + border-radius: 4px; | |
| 3613 | + font-size: 16px; | |
| 3614 | +} | |
| 3615 | + | |
| 3616 | +.mxchat-model-selector-modal .mxchat-model-selector-categories { | |
| 3617 | + display: flex; | |
| 3618 | + flex-wrap: wrap; | |
| 3619 | + gap: 8px; | |
| 3620 | + margin-bottom: 20px; | |
| 3621 | +} | |
| 3622 | + | |
| 3623 | +.mxchat-model-selector-modal .mxchat-model-category-btn { | |
| 3624 | + background-color: #f5f5f5; | |
| 3625 | + border: 1px solid #ddd; | |
| 3626 | + padding: 8px 16px; | |
| 3627 | + border-radius: 20px; | |
| 3628 | + cursor: pointer; | |
| 3629 | + transition: all 0.2s; | |
| 3630 | +} | |
| 3631 | + | |
| 3632 | +.mxchat-model-selector-modal .mxchat-model-category-btn.active { | |
| 3633 | + background-color: #6750A4; | |
| 3634 | + color: white; | |
| 3635 | + border-color: #6750A4; | |
| 3636 | +} | |
| 3637 | + | |
| 3638 | +/* Model Grid Styles */ | |
| 3639 | +.mxchat-model-selector-modal .mxchat-model-selector-grid { | |
| 3640 | + display: grid; | |
| 3641 | + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| 3642 | + gap: 16px; | |
| 3643 | +} | |
| 3644 | + | |
| 3645 | +.mxchat-model-selector-modal .mxchat-model-selector-card { | |
| 3646 | + display: flex; | |
| 3647 | + border: 1px solid #ddd; | |
| 3648 | + border-radius: 8px; | |
| 3649 | + padding: 16px; | |
| 3650 | + cursor: pointer; | |
| 3651 | + transition: all 0.2s; | |
| 3652 | + position: relative; | |
| 3653 | +} | |
| 3654 | + | |
| 3655 | +.mxchat-model-selector-modal .mxchat-model-selector-card:hover { | |
| 3656 | + border-color: #6750A4; | |
| 3657 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |
| 3658 | +} | |
| 3659 | + | |
| 3660 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-selected { | |
| 3661 | + border-color: #6750A4; | |
| 3662 | + background-color: rgba(103, 80, 164, 0.05); | |
| 3663 | +} | |
| 3664 | + | |
| 3665 | +/* Provider-specific styles for cards */ | |
| 3666 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-gemini { | |
| 3667 | + border-left: 4px solid #4285F4; | |
| 3668 | +} | |
| 3669 | + | |
| 3670 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-openai { | |
| 3671 | + border-left: 4px solid #10A37F; | |
| 3672 | +} | |
| 3673 | + | |
| 3674 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-claude { | |
| 3675 | + border-left: 4px solid #965de9; | |
| 3676 | +} | |
| 3677 | + | |
| 3678 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-xai { | |
| 3679 | + border-left: 4px solid #000000; | |
| 3680 | +} | |
| 3681 | + | |
| 3682 | +.mxchat-model-selector-modal .mxchat-model-selector-card.mxchat-model-provider-deepseek { | |
| 3683 | + border-left: 4px solid #0066cc; | |
| 3684 | +} | |
| 3685 | + | |
| 3686 | +.mxchat-model-selector-modal .mxchat-model-selector-icon { | |
| 3687 | + margin-right: 12px; | |
| 3688 | + font-size: 24px; | |
| 3689 | + display: flex; | |
| 3690 | + align-items: center; | |
| 3691 | + width: 25px; | |
| 3692 | + height: 45px; | |
| 3693 | +} | |
| 3694 | + | |
| 3695 | +.mxchat-model-selector-modal .mxchat-model-icon-gemini { | |
| 3696 | + color: #4285F4; | |
| 3697 | +} | |
| 3698 | + | |
| 3699 | +.mxchat-model-selector-modal .mxchat-model-icon-openai { | |
| 3700 | + color: #10A37F; | |
| 3701 | +} | |
| 3702 | + | |
| 3703 | +.mxchat-model-selector-modal .mxchat-model-icon-claude { | |
| 3704 | + color: #965de9; | |
| 3705 | +} | |
| 3706 | + | |
| 3707 | +.mxchat-model-selector-modal .mxchat-model-icon-xai { | |
| 3708 | + color: #000000; | |
| 3709 | +} | |
| 3710 | + | |
| 3711 | +.mxchat-model-selector-modal .mxchat-model-icon-deepseek { | |
| 3712 | + color: #0066cc; | |
| 3713 | +} | |
| 3714 | + | |
| 3715 | +.mxchat-model-selector-modal .mxchat-model-selector-info { | |
| 3716 | + flex: 1; | |
| 3717 | +} | |
| 3718 | + | |
| 3719 | +.mxchat-model-selector-modal .mxchat-model-selector-title { | |
| 3720 | + margin: 0 0 6px 0; | |
| 3721 | + font-size: 16px; | |
| 3722 | +} | |
| 3723 | + | |
| 3724 | +.mxchat-model-selector-modal .mxchat-model-selector-description { | |
| 3725 | + margin: 0; | |
| 3726 | + font-size: 14px; | |
| 3727 | + color: #666; | |
| 3728 | +} | |
| 3729 | + | |
| 3730 | +.mxchat-model-selector-modal .mxchat-model-selector-checkmark { | |
| 3731 | + position: absolute; | |
| 3732 | + top: 8px; | |
| 3733 | + right: 8px; | |
| 3734 | + width: 20px; | |
| 3735 | + height: 20px; | |
| 3736 | + background-color: #6750A4; | |
| 3737 | + color: white; | |
| 3738 | + border-radius: 50%; | |
| 3739 | + display: flex; | |
| 3740 | + align-items: center; | |
| 3741 | + justify-content: center; | |
| 3742 | + font-size: 12px; | |
| 3743 | +} | |
| 3744 | + | |
| 3745 | +/* Media queries for responsive design */ | |
| 3746 | +@media screen and (max-width: 782px) { | |
| 3747 | + .mxchat-model-selector-modal .mxchat-model-selector-modal-content { | |
| 3748 | + width: 95%; | |
| 3749 | + margin: 10% auto; | |
| 3750 | + } | |
| 3751 | + | |
| 3752 | + .mxchat-model-selector-modal .mxchat-model-selector-grid { | |
| 3753 | + grid-template-columns: 1fr; | |
| 3754 | + } | |
| 3755 | + | |
| 3756 | + .mxchat-model-selector-modal .mxchat-model-selector-categories { | |
| 3757 | + overflow-x: auto; | |
| 3758 | + padding-bottom: 10px; | |
| 3759 | + } | |
| 3760 | +} | |
| 3761 | + | |
| 3762 | + | |
| 3763 | +/* Improved styling for the model selector button */ | |
| 3764 | +#mxchat_model_selector_btn.mxchat-model-selector-btn { | |
| 3765 | + width: 100%; | |
| 3766 | + max-width: 400px; | |
| 3767 | + text-align: left; | |
| 3768 | + padding: 8px 12px; | |
| 3769 | + height: auto; | |
| 3770 | + min-height: 36px; | |
| 3771 | + background-color: #fff; | |
| 3772 | + color: #2c3338; | |
| 3773 | + border: 1px solid #8c8f94; | |
| 3774 | + border-radius: 4px; | |
| 3775 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); | |
| 3776 | + position: relative; | |
| 3777 | + font-weight: normal; | |
| 3778 | + transition: all 0.2s ease; | |
| 3779 | + display: flex; | |
| 3780 | + align-items: center; | |
| 3781 | + justify-content: space-between; | |
| 3782 | +} | |
| 3783 | + | |
| 3784 | +#mxchat_model_selector_btn.mxchat-model-selector-btn:after { | |
| 3785 | + content: "\f140"; | |
| 3786 | + font-family: dashicons; | |
| 3787 | + position: absolute; | |
| 3788 | + right: 10px; | |
| 3789 | + font-size: 20px; | |
| 3790 | + color: #666; | |
| 3791 | +} | |
| 3792 | + | |
| 3793 | +#mxchat_model_selector_btn.mxchat-model-selector-btn:hover { | |
| 3794 | + border-color: #2271b1; | |
| 3795 | + color: #2271b1; | |
| 3796 | +} | |
| 3797 | + | |
| 3798 | +#mxchat_model_selector_btn.mxchat-model-selector-btn:focus { | |
| 3799 | + box-shadow: 0 0 0 1px #2271b1; | |
| 3800 | + outline: none; | |
| 3801 | +} | |
| 3802 | + | |
| 3803 | +/* Embedding Model Selector - completely separate styling to avoid conflicts */ | |
| 3804 | +.mxchat-embedding-model-selector-btn { | |
| 3805 | + width: 100%; | |
| 3806 | + max-width: 400px; | |
| 3807 | + text-align: left; | |
| 3808 | + padding: 8px 12px; | |
| 3809 | + height: auto; | |
| 3810 | + min-height: 36px; | |
| 3811 | + background-color: #fff; | |
| 3812 | + color: #2c3338; | |
| 3813 | + border: 1px solid #8c8f94; | |
| 3814 | + border-radius: 4px; | |
| 3815 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); | |
| 3816 | + position: relative; | |
| 3817 | + font-weight: normal; | |
| 3818 | + transition: all 0.2s ease; | |
| 3819 | + display: flex; | |
| 3820 | + align-items: center; | |
| 3821 | + justify-content: space-between; | |
| 3822 | +} | |
| 3823 | + | |
| 3824 | +.mxchat-embedding-model-selector-btn:after { | |
| 3825 | + content: "\f140"; | |
| 3826 | + font-family: dashicons; | |
| 3827 | + position: absolute; | |
| 3828 | + right: 10px; | |
| 3829 | + font-size: 20px; | |
| 3830 | + color: #666; | |
| 3831 | +} | |
| 3832 | + | |
| 3833 | +.mxchat-embedding-model-selector-btn:hover { | |
| 3834 | + border-color: #2271b1; | |
| 3835 | + color: #2271b1; | |
| 3836 | +} | |
| 3837 | + | |
| 3838 | +.mxchat-embedding-model-selector-btn:focus { | |
| 3839 | + box-shadow: 0 0 0 1px #2271b1; | |
| 3840 | + outline: none; | |
| 3841 | +} | |
| 3842 | + | |
| 3843 | +/* Modal Styles */ | |
| 3844 | +.mxchat-embedding-model-selector-modal { | |
| 3845 | + display: none; | |
| 3846 | + position: fixed; | |
| 3847 | + z-index: 9999; | |
| 3848 | + left: 0; | |
| 3849 | + top: 0; | |
| 3850 | + width: 100%; | |
| 3851 | + height: 100%; | |
| 3852 | + overflow: auto; | |
| 3853 | + background-color: rgba(0, 0, 0, 0.5); | |
| 3854 | +} | |
| 3855 | + | |
| 3856 | +.mxchat-embedding-model-selector-modal-content { | |
| 3857 | + background-color: #fff; | |
| 3858 | + margin: 5% auto; | |
| 3859 | + border-radius: 8px; | |
| 3860 | + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); | |
| 3861 | + width: 80%; | |
| 3862 | + max-width: 800px; | |
| 3863 | + animation: mxchatEmbeddingModalFade 0.3s; | |
| 3864 | +} | |
| 3865 | + | |
| 3866 | +@keyframes mxchatEmbeddingModalFade { | |
| 3867 | + from {opacity: 0; transform: translateY(-20px);} | |
| 3868 | + to {opacity: 1; transform: translateY(0);} | |
| 3869 | +} | |
| 3870 | + | |
| 3871 | +.mxchat-embedding-model-selector-modal-header { | |
| 3872 | + display: flex; | |
| 3873 | + justify-content: space-between; | |
| 3874 | + align-items: center; | |
| 3875 | + padding: 16px 24px; | |
| 3876 | + border-bottom: 1px solid #eee; | |
| 3877 | +} | |
| 3878 | + | |
| 3879 | +.mxchat-embedding-model-selector-modal-header h3 { | |
| 3880 | + margin: 0; | |
| 3881 | + color: #6750A4; | |
| 3882 | + font-size: 20px; | |
| 3883 | +} | |
| 3884 | + | |
| 3885 | +.mxchat-embedding-model-selector-modal-close { | |
| 3886 | + font-size: 24px; | |
| 3887 | + cursor: pointer; | |
| 3888 | + color: #888; | |
| 3889 | +} | |
| 3890 | + | |
| 3891 | +.mxchat-embedding-model-selector-modal-close:hover { | |
| 3892 | + color: #333; | |
| 3893 | +} | |
| 3894 | + | |
| 3895 | +.mxchat-embedding-model-selector-modal-body { | |
| 3896 | + padding: 24px; | |
| 3897 | + max-height: 60vh; | |
| 3898 | + overflow-y: auto; | |
| 3899 | +} | |
| 3900 | + | |
| 3901 | +.mxchat-embedding-model-selector-modal-footer { | |
| 3902 | + padding: 16px 24px; | |
| 3903 | + border-top: 1px solid #eee; | |
| 3904 | + text-align: right; | |
| 3905 | +} | |
| 3906 | + | |
| 3907 | +/* Search and Category Styles */ | |
| 3908 | +.mxchat-embedding-model-selector-search-container { | |
| 3909 | + margin-bottom: 20px; | |
| 3910 | +} | |
| 3911 | + | |
| 3912 | +.mxchat-embedding-model-search-input { | |
| 3913 | + width: 100%; | |
| 3914 | + padding: 10px 15px; | |
| 3915 | + border: 1px solid #ddd; | |
| 3916 | + border-radius: 4px; | |
| 3917 | + font-size: 16px; | |
| 3918 | +} | |
| 3919 | + | |
| 3920 | +.mxchat-embedding-model-selector-categories { | |
| 3921 | + display: flex; | |
| 3922 | + flex-wrap: wrap; | |
| 3923 | + gap: 8px; | |
| 3924 | + margin-bottom: 20px; | |
| 3925 | +} | |
| 3926 | + | |
| 3927 | +.mxchat-embedding-model-category-btn { | |
| 3928 | + background-color: #f5f5f5; | |
| 3929 | + border: 1px solid #ddd; | |
| 3930 | + padding: 8px 16px; | |
| 3931 | + border-radius: 20px; | |
| 3932 | + cursor: pointer; | |
| 3933 | + transition: all 0.2s; | |
| 3934 | +} | |
| 3935 | + | |
| 3936 | +.mxchat-embedding-model-category-btn.active { | |
| 3937 | + background-color: #6750A4; | |
| 3938 | + color: white; | |
| 3939 | + border-color: #6750A4; | |
| 3940 | +} | |
| 3941 | + | |
| 3942 | +/* Model Grid Styles */ | |
| 3943 | +.mxchat-embedding-model-selector-grid { | |
| 3944 | + display: grid; | |
| 3945 | + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| 3946 | + gap: 16px; | |
| 3947 | +} | |
| 3948 | + | |
| 3949 | +.mxchat-embedding-model-selector-card { | |
| 3950 | + display: flex; | |
| 3951 | + border: 1px solid #ddd; | |
| 3952 | + border-radius: 8px; | |
| 3953 | + padding: 16px; | |
| 3954 | + cursor: pointer; | |
| 3955 | + transition: all 0.2s; | |
| 3956 | + position: relative; | |
| 3957 | +} | |
| 3958 | + | |
| 3959 | +.mxchat-embedding-model-selector-card:hover { | |
| 3960 | + border-color: #6750A4; | |
| 3961 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |
| 3962 | +} | |
| 3963 | + | |
| 3964 | +.mxchat-embedding-model-selector-card.mxchat-embedding-model-selected { | |
| 3965 | + border-color: #6750A4; | |
| 3966 | + background-color: rgba(103, 80, 164, 0.05); | |
| 3967 | +} | |
| 3968 | + | |
| 3969 | +/* Provider-specific styles */ | |
| 3970 | +.mxchat-embedding-model-provider-openai { | |
| 3971 | + border-left: 4px solid #10A37F; | |
| 3972 | +} | |
| 3973 | + | |
| 3974 | +.mxchat-embedding-model-provider-voyage { | |
| 3975 | + border-left: 4px solid #0055D4; | |
| 3976 | +} | |
| 3977 | + | |
| 3978 | +/* Provider-specific border color for Gemini */ | |
| 3979 | +.mxchat-embedding-model-provider-gemini { | |
| 3980 | + border-left: 4px solid #4285F4; | |
| 3981 | +} | |
| 3982 | + | |
| 3983 | +/* Icon color for Gemini */ | |
| 3984 | +.mxchat-embedding-model-icon-gemini { | |
| 3985 | + color: #4285F4; | |
| 3986 | +} | |
| 3987 | + | |
| 3988 | +.mxchat-embedding-model-selector-icon { | |
| 3989 | + margin-right: 12px; | |
| 3990 | + font-size: 24px; | |
| 3991 | + display: flex; | |
| 3992 | + align-items: center; | |
| 3993 | + width: 25px; | |
| 3994 | + height: 45px; | |
| 3995 | +} | |
| 3996 | + | |
| 3997 | +.mxchat-embedding-model-icon-openai { | |
| 3998 | + color: #10A37F; | |
| 3999 | +} | |
| 4000 | + | |
| 4001 | +.mxchat-embedding-model-icon-voyage { | |
| 4002 | + color: #0055D4; | |
| 4003 | +} | |
| 4004 | + | |
| 4005 | +.mxchat-embedding-model-selector-info { | |
| 4006 | + flex: 1; | |
| 4007 | +} | |
| 4008 | + | |
| 4009 | +.mxchat-embedding-model-selector-title { | |
| 4010 | + margin: 0 0 6px 0; | |
| 4011 | + font-size: 16px; | |
| 4012 | +} | |
| 4013 | + | |
| 4014 | +.mxchat-embedding-model-selector-description { | |
| 4015 | + margin: 0; | |
| 4016 | + font-size: 14px; | |
| 4017 | + color: #666; | |
| 4018 | +} | |
| 4019 | + | |
| 4020 | +.mxchat-embedding-model-selector-checkmark { | |
| 4021 | + position: absolute; | |
| 4022 | + top: 8px; | |
| 4023 | + right: 8px; | |
| 4024 | + width: 20px; | |
| 4025 | + height: 20px; | |
| 4026 | + background-color: #6750A4; | |
| 4027 | + color: white; | |
| 4028 | + border-radius: 50%; | |
| 4029 | + display: flex; | |
| 4030 | + align-items: center; | |
| 4031 | + justify-content: center; | |
| 4032 | + font-size: 12px; | |
| 4033 | +} | |
| 4034 | + | |
| 4035 | +/* Media queries for responsive design */ | |
| 4036 | +@media screen and (max-width: 782px) { | |
| 4037 | + .mxchat-embedding-model-selector-modal-content { | |
| 4038 | + width: 95%; | |
| 4039 | + margin: 10% auto; | |
| 4040 | + } | |
| 4041 | + | |
| 4042 | + .mxchat-embedding-model-selector-grid { | |
| 4043 | + grid-template-columns: 1fr; | |
| 4044 | + } | |
| 4045 | + | |
| 4046 | + .mxchat-embedding-model-selector-categories { | |
| 4047 | + overflow-x: auto; | |
| 4048 | + padding-bottom: 10px; | |
| 4049 | + } | |
| 4050 | +} | |
| 4051 | + | |
| 4052 | + | |
| 4053 | +/* Embedding Model Selector Button Styles */ | |
| 4054 | +#mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn { | |
| 4055 | + width: 100%; | |
| 4056 | + max-width: 400px; | |
| 4057 | + text-align: left; | |
| 4058 | + padding: 8px 12px; | |
| 4059 | + height: auto; | |
| 4060 | + min-height: 36px; | |
| 4061 | + background-color: #fff; | |
| 4062 | + color: #2c3338; | |
| 4063 | + border: 1px solid #8c8f94; | |
| 4064 | + border-radius: 4px; | |
| 4065 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); | |
| 4066 | + position: relative; | |
| 4067 | + font-weight: normal; | |
| 4068 | + transition: all 0.2s ease; | |
| 4069 | + display: flex; | |
| 4070 | + align-items: center; | |
| 4071 | + justify-content: space-between; | |
| 4072 | +} | |
| 4073 | + | |
| 4074 | +#mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn:after { | |
| 4075 | + content: "\f140"; | |
| 4076 | + font-family: dashicons; | |
| 4077 | + position: absolute; | |
| 4078 | + right: 10px; | |
| 4079 | + font-size: 20px; | |
| 4080 | + color: #666; | |
| 4081 | +} | |
| 4082 | + | |
| 4083 | +#mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn:hover { | |
| 4084 | + border-color: #2271b1; | |
| 4085 | + color: #2271b1; | |
| 4086 | +} | |
| 4087 | + | |
| 4088 | +#mxchat_embedding_model_selector_btn.mxchat-embedding-model-selector-btn:focus { | |
| 4089 | + box-shadow: 0 0 0 1px #2271b1; | |
| 4090 | + outline: none; | |
| 4091 | +} | |
| 4092 | + | |
| 4093 | +.mxchat-failed-urls-container { | |
| 4094 | + margin-top: 15px; | |
| 4095 | + border-top: 1px solid rgba(0, 0, 0, 0.1); | |
| 4096 | + padding-top: 10px; | |
| 4097 | +} | |
| 4098 | + | |
| 4099 | +.mxchat-failed-urls-container h4 { | |
| 4100 | + margin: 0 0 8px 0; | |
| 4101 | + font-size: 14px; | |
| 4102 | + color: #d63638; | |
| 4103 | +} | |
| 4104 | + | |
| 4105 | +.mxchat-failed-urls-container details { | |
| 4106 | + margin-bottom: 10px; | |
| 4107 | +} | |
| 4108 | + | |
| 4109 | +.mxchat-failed-urls-container summary { | |
| 4110 | + cursor: pointer; | |
| 4111 | + font-weight: 500; | |
| 4112 | + padding: 5px 0; | |
| 4113 | + color: #3c434a; | |
| 4114 | +} | |
| 4115 | + | |
| 4116 | +.mxchat-failed-urls-container summary:hover { | |
| 4117 | + color: #2271b1; | |
| 4118 | +} | |
| 4119 | + | |
| 4120 | +.mxchat-failed-urls-list { | |
| 4121 | + margin-top: 10px; | |
| 4122 | + max-height: 300px; | |
| 4123 | + overflow-y: auto; | |
| 4124 | + border: 1px solid #dcdcde; | |
| 4125 | + border-radius: 4px; | |
| 4126 | + background: #f8f9fa; | |
| 4127 | +} | |
| 4128 | + | |
| 4129 | +.mxchat-failed-url-item { | |
| 4130 | + padding: 8px 12px; | |
| 4131 | + border-bottom: 1px solid #dcdcde; | |
| 4132 | + display: grid; | |
| 4133 | + grid-template-columns: 1fr; | |
| 4134 | + grid-gap: 6px; | |
| 4135 | + font-size: 12px; | |
| 4136 | +} | |
| 4137 | + | |
| 4138 | +.mxchat-failed-url-item:last-child { | |
| 4139 | + border-bottom: none; | |
| 4140 | +} | |
| 4141 | + | |
| 4142 | +.mxchat-failed-url-address { | |
| 4143 | + font-weight: 500; | |
| 4144 | + word-break: break-all; | |
| 4145 | +} | |
| 4146 | + | |
| 4147 | +.mxchat-failed-url-address a { | |
| 4148 | + color: #2271b1; | |
| 4149 | + text-decoration: none; | |
| 4150 | +} | |
| 4151 | + | |
| 4152 | +.mxchat-failed-url-address a:hover { | |
| 4153 | + text-decoration: underline; | |
| 4154 | +} | |
| 4155 | + | |
| 4156 | +.mxchat-failed-url-error { | |
| 4157 | + color: #d63638; | |
| 4158 | +} | |
| 4159 | + | |
| 4160 | +.mxchat-failed-url-time { | |
| 4161 | + color: #50575e; | |
| 4162 | + font-style: italic; | |
| 4163 | + font-size: 11px; | |
| 4164 | +} | |
| 4165 | + | |
| 4166 | +.mxchat-failed-urls-more { | |
| 4167 | + text-align: center; | |
| 4168 | + padding: 8px; | |
| 4169 | + background: #f0f0f1; | |
| 4170 | + border-top: 1px solid #dcdcde; | |
| 4171 | + color: #50575e; | |
| 4172 | + font-style: italic; | |
| 4173 | + font-size: 12px; | |
| 4174 | +} | |
| 4175 | + | |
| 4176 | +/* Responsive design for larger screens */ | |
| 4177 | +@media screen and (min-width: 783px) { | |
| 4178 | + .mxchat-failed-url-item { | |
| 4179 | + grid-template-columns: 2fr 3fr 1fr; | |
| 4180 | + align-items: center; | |
| 4181 | + } | |
| 4182 | +} | |
| 4183 | + | |
| 4184 | + | |
| 4185 | +/* Style for addon-managed option group */ | |
| 4186 | +.addon-managed-optgroup { | |
| 4187 | + color: #888 !important; | |
| 4188 | + font-style: italic; | |
| 4189 | + background: #f5f5f5; | |
| 4190 | +} | |
| 4191 | + | |
| 4192 | +/* Selected text style */ | |
| 4193 | +select option:disabled { | |
| 4194 | + color: #888; | |
| 4195 | + font-style: italic; | |
| 4196 | +} | |
| 4197 | + | |
| 4198 | + .mxchat-rate-limits-container { | |
| 4199 | + max-width: 900px; | |
| 4200 | + } | |
| 4201 | + .mxchat-rate-limit-row { | |
| 4202 | + display: flex; | |
| 4203 | + flex-wrap: wrap; | |
| 4204 | + align-items: flex-start; | |
| 4205 | + margin-bottom: 20px; | |
| 4206 | + padding: 20px; | |
| 4207 | + background: #fff; | |
| 4208 | + border-radius: 8px; | |
| 4209 | + border: 1px solid #e0e0e0; | |
| 4210 | + box-shadow: 0 2px 4px rgba(0,0,0,0.04); | |
| 4211 | + transition: all 0.2s ease; | |
| 4212 | + } | |
| 4213 | + .mxchat-rate-limit-row:hover { | |
| 4214 | + box-shadow: 0 4px 8px rgba(0,0,0,0.08); | |
| 4215 | + border-color: #c7c7c7; | |
| 4216 | + } | |
| 4217 | + .mxchat-rate-limit-role { | |
| 4218 | + width: 160px; | |
| 4219 | + font-weight: 600; | |
| 4220 | + font-size: 15px; | |
| 4221 | + margin-right: 20px; | |
| 4222 | + padding-top: 4px; | |
| 4223 | + color: #23282d; | |
| 4224 | + } | |
| 4225 | + .mxchat-rate-limit-controls-wrapper { | |
| 4226 | + flex: 1; | |
| 4227 | + } | |
| 4228 | + .mxchat-rate-limit-controls { | |
| 4229 | + display: flex; | |
| 4230 | + flex-wrap: wrap; | |
| 4231 | + gap: 15px; | |
| 4232 | + align-items: center; | |
| 4233 | + margin-bottom: 15px; | |
| 4234 | + } | |
| 4235 | + .mxchat-rate-limit-controls > div { | |
| 4236 | + margin-bottom: 5px; | |
| 4237 | + } | |
| 4238 | + .mxchat-rate-limit-controls label { | |
| 4239 | + display: block; | |
| 4240 | + margin-bottom: 5px; | |
| 4241 | + font-weight: 500; | |
| 4242 | + color: #50575e; | |
| 4243 | + } | |
| 4244 | + .mxchat-rate-limit-message { | |
| 4245 | + width: 100%; | |
| 4246 | + margin-top: 15px; | |
| 4247 | + } | |
| 4248 | + .mxchat-rate-limit-message label { | |
| 4249 | + display: block; | |
| 4250 | + margin-bottom: 5px; | |
| 4251 | + font-weight: 500; | |
| 4252 | + color: #50575e; | |
| 4253 | + } | |
| 4254 | + .mxchat-rate-limit-message textarea { | |
| 4255 | + width: 100%; | |
| 4256 | + min-height: 70px; | |
| 4257 | + padding: 8px 12px; | |
| 4258 | + border-radius: 4px; | |
| 4259 | + resize: vertical; | |
| 4260 | + font-size: 14px; | |
| 4261 | + } | |
| 4262 | + .mxchat-rate-limit-controls select { | |
| 4263 | + min-width: 120px; | |
| 4264 | + padding: 6px 24px 6px 10px; | |
| 4265 | + } | |
| 4266 | + @media (max-width: 782px) { | |
| 4267 | + .mxchat-rate-limit-row { | |
| 4268 | + flex-direction: column; | |
| 4269 | + } | |
| 4270 | + .mxchat-rate-limit-role { | |
| 4271 | + margin-bottom: 15px; | |
| 4272 | + width: 100%; | |
| 4273 | + font-size: 16px; | |
| 4274 | + } | |
| 4275 | + .mxchat-rate-limit-controls { | |
| 4276 | + flex-direction: column; | |
| 4277 | + align-items: flex-start; | |
| 4278 | + gap: 12px; | |
| 4279 | + } | |
| 4280 | + .mxchat-rate-limit-controls > div { | |
| 4281 | + width: 100%; | |
| 4282 | + } | |
| 4283 | + .mxchat-rate-limit-controls select { | |
| 4284 | + width: 100%; | |
| 4285 | + } | |
| 4286 | + } | |
| 4287 | + | |
| 4288 | + /* Support notification styles */ | |
| 4289 | + .support-notification { | |
| 4290 | + background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); | |
| 4291 | + border: 2px solid #f39c12; | |
| 4292 | + border-radius: 12px; | |
| 4293 | + padding: 20px; | |
| 4294 | + margin-bottom: 25px; | |
| 4295 | + display: flex; | |
| 4296 | + align-items: flex-start; | |
| 4297 | + gap: 15px; | |
| 4298 | + box-shadow: 0 4px 12px rgba(243, 156, 18, 0.15); | |
| 4299 | + position: relative; | |
| 4300 | + overflow: hidden; | |
| 4301 | + } | |
| 4302 | + | |
| 4303 | + .support-notification::before { | |
| 4304 | + content: ''; | |
| 4305 | + position: absolute; | |
| 4306 | + top: 0; | |
| 4307 | + left: 0; | |
| 4308 | + right: 0; | |
| 4309 | + height: 4px; | |
| 4310 | + background: linear-gradient(90deg, #f39c12, #e67e22, #f39c12); | |
| 4311 | + background-size: 200% 100%; | |
| 4312 | + animation: shimmer 2s ease-in-out infinite; | |
| 4313 | + } | |
| 4314 | + | |
| 4315 | + @keyframes shimmer { | |
| 4316 | + 0% { background-position: -200% 0; } | |
| 4317 | + 100% { background-position: 200% 0; } | |
| 4318 | + } | |
| 4319 | + | |
| 4320 | + .support-notification-icon { | |
| 4321 | + flex-shrink: 0; | |
| 4322 | + width: 24px; | |
| 4323 | + height: 24px; | |
| 4324 | + color: #e67e22; | |
| 4325 | + margin-top: 2px; | |
| 4326 | + } | |
| 4327 | + | |
| 4328 | + .support-notification-content { | |
| 4329 | + flex: 1; | |
| 4330 | + } | |
| 4331 | + | |
| 4332 | + .support-notification-title { | |
| 4333 | + font-size: 18px; | |
| 4334 | + font-weight: 600; | |
| 4335 | + color: #8b4513; | |
| 4336 | + margin: 0 0 8px 0; | |
| 4337 | + display: flex; | |
| 4338 | + align-items: center; | |
| 4339 | + gap: 8px; | |
| 4340 | + } | |
| 4341 | + | |
| 4342 | + .support-notification-message { | |
| 4343 | + font-size: 15px; | |
| 4344 | + color: #8b4513; | |
| 4345 | + margin: 0 0 15px 0; | |
| 4346 | + line-height: 1.5; | |
| 4347 | + } | |
| 4348 | + | |
| 4349 | + .support-notification-button { | |
| 4350 | + display: inline-flex; | |
| 4351 | + align-items: center; | |
| 4352 | + gap: 8px; | |
| 4353 | + background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); | |
| 4354 | + color: white; | |
| 4355 | + padding: 12px 20px; | |
| 4356 | + border-radius: 8px; | |
| 4357 | + text-decoration: none; | |
| 4358 | + font-weight: 600; | |
| 4359 | + font-size: 14px; | |
| 4360 | + transition: all 0.3s ease; | |
| 4361 | + border: none; | |
| 4362 | + cursor: pointer; | |
| 4363 | + box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3); | |
| 4364 | + } | |
| 4365 | + | |
| 4366 | + .support-notification-button:hover { | |
| 4367 | + background: linear-gradient(135deg, #d35400 0%, #c0392b 100%); | |
| 4368 | + transform: translateY(-2px); | |
| 4369 | + box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4); | |
| 4370 | + color: white; | |
| 4371 | + text-decoration: none; | |
| 4372 | + } | |
| 4373 | + | |
| 4374 | + .support-notification-button:active { | |
| 4375 | + transform: translateY(0); | |
| 4376 | + } | |
| 4377 | + | |
| 4378 | + .support-notification-button svg { | |
| 4379 | + width: 16px; | |
| 4380 | + height: 16px; | |
| 4381 | + } | |
| 4382 | + | |
| 4383 | + /* Responsive design */ | |
| 4384 | + @media (max-width: 768px) { | |
| 4385 | + .support-notification { | |
| 4386 | + padding: 16px; | |
| 4387 | + gap: 12px; | |
| 4388 | + } | |
| 4389 | + | |
| 4390 | + .support-notification-title { | |
| 4391 | + font-size: 16px; | |
| 4392 | + } | |
| 4393 | + | |
| 4394 | + .support-notification-message { | |
| 4395 | + font-size: 14px; | |
| 4396 | + } | |
| 4397 | + | |
| 4398 | + .support-notification-button { | |
| 4399 | + padding: 10px 16px; | |
| 4400 | + font-size: 13px; | |
| 4401 | + } | |
| 4402 | + } | |
| 4403 | +/* Sample instructions button styles */ | |
| 4404 | +.mxchat-instructions-container { | |
| 4405 | + margin-top: 8px; | |
| 4406 | +} | |
| 4407 | + | |
| 4408 | +.mxchat-instructions-btn { | |
| 4409 | + display: inline-flex; | |
| 4410 | + align-items: center; | |
| 4411 | + gap: 6px; | |
| 4412 | + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| 4413 | + color: white; | |
| 4414 | + padding: 8px 14px; | |
| 4415 | + border: none; | |
| 4416 | + border-radius: 6px; | |
| 4417 | + font-size: 13px; | |
| 4418 | + font-weight: 500; | |
| 4419 | + cursor: pointer; | |
| 4420 | + transition: all 0.3s ease; | |
| 4421 | + text-decoration: none; | |
| 4422 | + box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2); | |
| 4423 | +} | |
| 4424 | + | |
| 4425 | +.mxchat-instructions-btn:hover { | |
| 4426 | + background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%); | |
| 4427 | + transform: translateY(-1px); | |
| 4428 | + box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3); | |
| 4429 | +} | |
| 4430 | + | |
| 4431 | +.mxchat-instructions-btn:active { | |
| 4432 | + transform: translateY(0); | |
| 4433 | +} | |
| 4434 | + | |
| 4435 | +.mxchat-instructions-btn svg { | |
| 4436 | + width: 14px; | |
| 4437 | + height: 14px; | |
| 4438 | +} | |
| 4439 | + | |
| 4440 | +/* Modal styles - Positioned relative to viewport */ | |
| 4441 | +.mxchat-instructions-modal-overlay { | |
| 4442 | + display: none; | |
| 4443 | + position: fixed; | |
| 4444 | + top: 0; | |
| 4445 | + left: 0; | |
| 4446 | + width: 100%; | |
| 4447 | + height: 100%; | |
| 4448 | + background: rgba(0, 0, 0, 0.6); | |
| 4449 | + z-index: 999999; | |
| 4450 | +} | |
| 4451 | + | |
| 4452 | +.mxchat-instructions-modal-overlay.mxchat-instructions-show { | |
| 4453 | + display: flex; | |
| 4454 | + align-items: center; | |
| 4455 | + justify-content: center; | |
| 4456 | + padding: 20px; | |
| 4457 | +} | |
| 4458 | + | |
| 4459 | +.mxchat-instructions-modal-content { | |
| 4460 | + background: white; | |
| 4461 | + border-radius: 12px; | |
| 4462 | + max-width: 700px; | |
| 4463 | + width: 100%; | |
| 4464 | + max-height: 90vh; | |
| 4465 | + overflow: hidden; | |
| 4466 | + box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); | |
| 4467 | +} | |
| 4468 | + | |
| 4469 | +.mxchat-instructions-modal-header { | |
| 4470 | + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| 4471 | + color: white; | |
| 4472 | + padding: 20px 24px; | |
| 4473 | + display: flex; | |
| 4474 | + align-items: center; | |
| 4475 | + justify-content: space-between; | |
| 4476 | +} | |
| 4477 | + | |
| 4478 | +.mxchat-instructions-modal-title { | |
| 4479 | + font-size: 18px; | |
| 4480 | + font-weight: 600; | |
| 4481 | + margin: 0; | |
| 4482 | + display: flex; | |
| 4483 | + align-items: center; | |
| 4484 | + gap: 10px; | |
| 4485 | +} | |
| 4486 | + | |
| 4487 | +.mxchat-instructions-modal-close { | |
| 4488 | + background: rgba(255, 255, 255, 0.2); | |
| 4489 | + border: none; | |
| 4490 | + color: white; | |
| 4491 | + width: 32px; | |
| 4492 | + height: 32px; | |
| 4493 | + border-radius: 6px; | |
| 4494 | + cursor: pointer; | |
| 4495 | + display: flex; | |
| 4496 | + align-items: center; | |
| 4497 | + justify-content: center; | |
| 4498 | + transition: background 0.2s ease; | |
| 4499 | +} | |
| 4500 | + | |
| 4501 | +.mxchat-instructions-modal-close:hover { | |
| 4502 | + background: rgba(255, 255, 255, 0.3); | |
| 4503 | +} | |
| 4504 | + | |
| 4505 | +.mxchat-instructions-modal-body { | |
| 4506 | + padding: 24px; | |
| 4507 | + overflow-y: auto; | |
| 4508 | + max-height: calc(90vh - 140px); | |
| 4509 | +} | |
| 4510 | + | |
| 4511 | +.mxchat-instructions-content { | |
| 4512 | + background: #f8fafc; | |
| 4513 | + border: 2px solid #e2e8f0; | |
| 4514 | + border-radius: 8px; | |
| 4515 | + padding: 20px; | |
| 4516 | + font-family: 'Courier New', Monaco, monospace; | |
| 4517 | + font-size: 13px; | |
| 4518 | + line-height: 1.6; | |
| 4519 | + color: #2d3748; | |
| 4520 | + white-space: pre-wrap; | |
| 4521 | + word-wrap: break-word; | |
| 4522 | +} | |
| 4523 | + | |
| 4524 | +.mxchat-instructions-copy-btn { | |
| 4525 | + margin-top: 16px; | |
| 4526 | + background: #48bb78; | |
| 4527 | + color: white; | |
| 4528 | + border: none; | |
| 4529 | + padding: 10px 16px; | |
| 4530 | + border-radius: 6px; | |
| 4531 | + font-size: 14px; | |
| 4532 | + font-weight: 500; | |
| 4533 | + cursor: pointer; | |
| 4534 | + display: inline-flex; | |
| 4535 | + align-items: center; | |
| 4536 | + gap: 8px; | |
| 4537 | + transition: all 0.2s ease; | |
| 4538 | +} | |
| 4539 | + | |
| 4540 | +.mxchat-instructions-copy-btn:hover { | |
| 4541 | + background: #38a169; | |
| 4542 | + transform: translateY(-1px); | |
| 4543 | +} | |
| 4544 | + | |
| 4545 | +.mxchat-instructions-copy-btn svg { | |
| 4546 | + width: 16px; | |
| 4547 | + height: 16px; | |
| 4548 | +} | |
| 4549 | + | |
| 4550 | +.mxchat-instructions-modal-footer { | |
| 4551 | + padding: 16px 24px; | |
| 4552 | + background: #f7fafc; | |
| 4553 | + border-top: 1px solid #e2e8f0; | |
| 4554 | + text-align: right; | |
| 4555 | +} | |
| 4556 | + | |
| 4557 | +.mxchat-instructions-btn-secondary { | |
| 4558 | + background: #e2e8f0; | |
| 4559 | + color: #4a5568; | |
| 4560 | + border: none; | |
| 4561 | + padding: 8px 16px; | |
| 4562 | + border-radius: 6px; | |
| 4563 | + font-size: 14px; | |
| 4564 | + cursor: pointer; | |
| 4565 | + transition: background 0.2s ease; | |
| 4566 | +} | |
| 4567 | + | |
| 4568 | +.mxchat-instructions-btn-secondary:hover { | |
| 4569 | + background: #cbd5e0; | |
| 4570 | +} | |
| 4571 | + | |
| 4572 | +/* Responsive design */ | |
| 4573 | +@media (max-width: 782px) { | |
| 4574 | + .mxchat-instructions-modal-overlay.mxchat-instructions-show { | |
| 4575 | + padding: 10px; | |
| 4576 | + } | |
| 4577 | + | |
| 4578 | + .mxchat-instructions-modal-content { | |
| 4579 | + max-height: 95vh; | |
| 4580 | + } | |
| 4581 | + | |
| 4582 | + .mxchat-instructions-modal-header { | |
| 4583 | + padding: 16px 20px; | |
| 4584 | + } | |
| 4585 | + | |
| 4586 | + .mxchat-instructions-modal-body { | |
| 4587 | + padding: 20px; | |
| 4588 | + max-height: calc(95vh - 120px); | |
| 4589 | + } | |
| 4590 | + | |
| 4591 | + .mxchat-instructions-content { | |
| 4592 | + font-size: 12px; | |
| 4593 | + padding: 16px; | |
| 4594 | + } | |
| 4595 | +} | |