| @@ -1,162 +1,140 @@ | ||
| 1 | -/* ===== KING ADDONS AI SETTINGS - MODERN DESIGN ===== */ | |
| 1 | +/** | |
| 2 | + * King Addons AI Settings - Modern Light Design | |
| 3 | + * | |
| 4 | + * @package King_Addons | |
| 5 | + */ | |
| 2 | 6 | |
| 3 | -/* Font Import */ | |
| 4 | -@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| 7 | +/* Reset dark background from admin.css */ | |
| 8 | +html.wp-toolbar .king-addons-ai-settings, | |
| 9 | +body.king-addons_page_king-addons-ai-settings #wpcontent, | |
| 10 | +.king-addons_page_king-addons-ai-settings #wpcontent, | |
| 11 | +.king-addons-ai-settings { | |
| 12 | + background: #f1f5f9 !important; | |
| 13 | +} | |
| 5 | 14 | |
| 15 | +/* Override global dark styles */ | |
| 16 | +body.king-addons_page_king-addons-ai-settings #wpcontent, | |
| 17 | +body.king-addons_page_king-addons-ai-settings #wpbody, | |
| 18 | +body.king-addons_page_king-addons-ai-settings #wpbody-content { | |
| 19 | + background: #f1f5f9 !important; | |
| 20 | +} | |
| 21 | + | |
| 6 | 22 | /* Global Overrides */ |
| 7 | 23 | .king-addons-ai-settings { |
| 8 | - font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | |
| 24 | + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 25 | + margin: 20px 20px 20px 0 !important; | |
| 26 | + padding: 0 !important; | |
| 27 | + max-width: 1200px; | |
| 9 | 28 | background: transparent !important; |
| 10 | - margin: 0 !important; | |
| 11 | - padding: 0 !important; | |
| 12 | - padding-right: 10px !important; | |
| 13 | - margin-top: 30px !important; | |
| 14 | 29 | } |
| 15 | 30 | |
| 31 | +.king-addons-ai-settings * { box-sizing: border-box; } | |
| 32 | + | |
| 16 | 33 | /* Header Section */ |
| 17 | 34 | .king-addons-settings-header { |
| 18 | - background: linear-gradient(135deg, #1a1b1b 0%, #2d2f30 100%); | |
| 19 | - border-radius: 20px; | |
| 20 | - padding: 40px; | |
| 21 | - margin-bottom: 30px; | |
| 22 | - position: relative; | |
| 23 | - overflow: hidden; | |
| 24 | - backdrop-filter: blur(20px); | |
| 25 | - border: 1px solid rgba(255, 255, 255, 0.1); | |
| 35 | + background: #8b5cf6; | |
| 36 | + border-radius: 12px; | |
| 37 | + padding: 25px 30px; | |
| 38 | + margin-bottom: 25px; | |
| 39 | + display: flex; | |
| 40 | + align-items: center; | |
| 41 | + justify-content: space-between; | |
| 26 | 42 | } |
| 27 | 43 | |
| 28 | -.king-addons-settings-header::before { | |
| 29 | - content: ''; | |
| 30 | - position: absolute; | |
| 31 | - top: 0; | |
| 32 | - left: 0; | |
| 33 | - right: 0; | |
| 34 | - bottom: 0; | |
| 35 | - background: linear-gradient(45deg, rgba(91, 3, 255, 0.1), rgba(76, 175, 80, 0.1)); | |
| 36 | - opacity: 0.5; | |
| 37 | - z-index: 0; | |
| 38 | -} | |
| 39 | - | |
| 40 | 44 | .king-addons-settings-header-content { |
| 41 | 45 | display: flex; |
| 42 | 46 | align-items: center; |
| 43 | - gap: 24px; | |
| 44 | - position: relative; | |
| 45 | - z-index: 1; | |
| 47 | + gap: 16px; | |
| 46 | 48 | } |
| 47 | 49 | |
| 48 | 50 | .king-addons-settings-header-icon { |
| 49 | - width: 64px; | |
| 50 | - height: 64px; | |
| 51 | - background: linear-gradient(135deg, #5b03ff, #4caf50); | |
| 52 | - border-radius: 16px; | |
| 51 | + width: 48px; | |
| 52 | + height: 48px; | |
| 53 | + background: rgba(255, 255, 255, 0.2); | |
| 54 | + border-radius: 12px; | |
| 53 | 55 | display: flex; |
| 54 | 56 | align-items: center; |
| 55 | 57 | justify-content: center; |
| 56 | - box-shadow: 0 8px 32px rgba(91, 3, 255, 0.3); | |
| 57 | - animation: pulse-glow 2s ease-in-out infinite alternate; | |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | -@keyframes pulse-glow { | |
| 61 | - 0% { box-shadow: 0 8px 32px rgba(91, 3, 255, 0.3); } | |
| 62 | - 100% { box-shadow: 0 12px 48px rgba(91, 3, 255, 0.5); } | |
| 63 | -} | |
| 64 | - | |
| 65 | 60 | .king-addons-settings-header-icon img { |
| 66 | - width: 32px; | |
| 67 | - height: 32px; | |
| 61 | + width: 28px; | |
| 62 | + height: 28px; | |
| 68 | 63 | filter: brightness(0) invert(1); |
| 69 | 64 | } |
| 70 | 65 | |
| 71 | 66 | .king-addons-settings-title { |
| 72 | - font-size: 32px; | |
| 73 | - font-weight: 700; | |
| 74 | - color: #ffffff; | |
| 75 | - margin: 0 0 8px 0; | |
| 76 | - letter-spacing: -0.02em; | |
| 67 | + font-size: 24px; | |
| 68 | + font-weight: 600; | |
| 69 | + color: #fff !important; | |
| 70 | + margin: 0 0 4px 0 !important; | |
| 77 | 71 | } |
| 78 | 72 | |
| 79 | 73 | .king-addons-settings-subtitle { |
| 80 | - font-size: 16px; | |
| 81 | - font-weight: 400; | |
| 82 | - color: rgba(255, 255, 255, 0.7); | |
| 74 | + font-size: 14px; | |
| 75 | + color: rgba(255, 255, 255, 0.9); | |
| 83 | 76 | margin: 0; |
| 84 | - line-height: 1.5; | |
| 85 | 77 | } |
| 86 | 78 | |
| 87 | 79 | /* Settings Container */ |
| 88 | 80 | .king-addons-settings-container { |
| 89 | - background: rgba(26, 27, 27, 0.9); | |
| 90 | - border-radius: 20px; | |
| 91 | - padding: 0; | |
| 92 | - backdrop-filter: blur(20px); | |
| 93 | - border: 1px solid rgba(255, 255, 255, 0.1); | |
| 94 | - overflow: hidden; | |
| 81 | + background: transparent; | |
| 95 | 82 | } |
| 96 | 83 | |
| 97 | -/* Form Styling */ | |
| 98 | -.king-addons-settings-form { | |
| 99 | - padding: 0; | |
| 100 | -} | |
| 101 | - | |
| 102 | -/* Section Headers */ | |
| 84 | +/* Cards - Sections */ | |
| 103 | 85 | .king-addons-ai-settings h2 { |
| 104 | - background: linear-gradient(135deg, #2d2f30, #1a1b1b); | |
| 105 | - color: #ffffff; | |
| 106 | - font-size: 18px; | |
| 86 | + background: #f8fafc; | |
| 87 | + color: #1e293b !important; | |
| 88 | + font-size: 15px; | |
| 107 | 89 | font-weight: 600; |
| 108 | - margin: 0; | |
| 109 | - padding: 24px 40px; | |
| 110 | - border-bottom: 1px solid rgba(255, 255, 255, 0.1); | |
| 111 | - letter-spacing: -0.01em; | |
| 112 | - position: relative; | |
| 90 | + margin: 0 !important; | |
| 91 | + padding: 16px 24px; | |
| 92 | + border-bottom: 1px solid #e2e8f0; | |
| 93 | + display: flex; | |
| 94 | + align-items: center; | |
| 95 | + gap: 10px; | |
| 96 | + border-radius: 12px 12px 0 0; | |
| 113 | 97 | } |
| 114 | 98 | |
| 115 | 99 | .king-addons-ai-settings h2::before { |
| 116 | - content: ''; | |
| 117 | - position: absolute; | |
| 118 | - left: 0; | |
| 119 | - top: 0; | |
| 120 | - bottom: 0; | |
| 121 | - width: 4px; | |
| 122 | - background: linear-gradient(135deg, #5b03ff, #4caf50); | |
| 100 | + content: '\f111'; | |
| 101 | + font-family: dashicons; | |
| 102 | + color: #8b5cf6; | |
| 103 | + font-size: 18px; | |
| 123 | 104 | } |
| 124 | 105 | |
| 125 | -/* Section descriptions (p tags after h2) */ | |
| 106 | +/* Section descriptions */ | |
| 126 | 107 | .king-addons-ai-settings h2 + p { |
| 127 | - background: rgba(45, 47, 48, 0.3); | |
| 128 | - color: rgba(255, 255, 255, 0.9) !important; | |
| 129 | - font-size: 14px; | |
| 130 | - font-weight: 400; | |
| 131 | - margin: 0; | |
| 132 | - padding: 16px 40px; | |
| 133 | - border-bottom: 1px solid rgba(255, 255, 255, 0.1); | |
| 108 | + background: #fff; | |
| 109 | + color: #64748b !important; | |
| 110 | + font-size: 13px; | |
| 111 | + margin: 0 !important; | |
| 112 | + padding: 12px 24px; | |
| 113 | + border-bottom: 1px solid #f1f5f9; | |
| 134 | 114 | line-height: 1.5; |
| 135 | 115 | } |
| 136 | 116 | |
| 137 | -/* Section Content */ | |
| 117 | +/* Form table */ | |
| 138 | 118 | .king-addons-ai-settings .form-table { |
| 139 | - background: transparent; | |
| 140 | - margin: 0 0 2px 0; | |
| 119 | + background: #fff; | |
| 120 | + margin: 0 0 20px 0 !important; | |
| 141 | 121 | border-collapse: separate; |
| 142 | 122 | border-spacing: 0; |
| 143 | 123 | width: 100%; |
| 124 | + border-radius: 0 0 12px 12px; | |
| 125 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); | |
| 126 | + overflow: hidden; | |
| 144 | 127 | } |
| 145 | 128 | |
| 146 | -/* Section spacing */ | |
| 147 | -.king-addons-ai-settings h2:not(:first-child) { | |
| 148 | - margin-top: 24px; | |
| 149 | -} | |
| 150 | - | |
| 151 | 129 | .king-addons-ai-settings .form-table th, |
| 152 | 130 | .king-addons-ai-settings .form-table td { |
| 153 | - padding: 20px 40px; | |
| 154 | - border-bottom: 1px solid rgba(255, 255, 255, 0.05); | |
| 131 | + padding: 16px 24px; | |
| 132 | + border-bottom: 1px solid #f1f5f9; | |
| 155 | 133 | vertical-align: top; |
| 134 | + background: #fff !important; | |
| 156 | 135 | } |
| 157 | 136 | |
| 158 | -/* Remove border from last row */ | |
| 159 | 137 | .king-addons-ai-settings .form-table tr:last-child th, |
| 160 | 138 | .king-addons-ai-settings .form-table tr:last-child td { |
| 161 | 139 | border-bottom: none; |
| 162 | 140 | } |
| @@ -161,19 +139,16 @@ | ||
| 161 | 139 | border-bottom: none; |
| 162 | 140 | } |
| 163 | 141 | |
| 164 | 142 | .king-addons-ai-settings .form-table th { |
| 165 | - background: rgba(45, 47, 48, 0.5); | |
| 166 | - color: #ffffff; | |
| 143 | + color: #475569 !important; | |
| 167 | 144 | font-weight: 500; |
| 168 | - font-size: 14px; | |
| 169 | - width: 25%; | |
| 170 | - border-right: 1px solid rgba(255, 255, 255, 0.1); | |
| 145 | + font-size: 13px; | |
| 146 | + width: 200px; | |
| 171 | 147 | } |
| 172 | 148 | |
| 173 | 149 | .king-addons-ai-settings .form-table td { |
| 174 | - background: rgba(26, 27, 27, 0.3); | |
| 175 | - color: #ffffff; | |
| 150 | + color: #1e293b !important; | |
| 176 | 151 | } |
| 177 | 152 | |
| 178 | 153 | /* Input Fields */ |
| 179 | 154 | .king-addons-ai-settings input[type="text"], |
| @@ -178,20 +153,18 @@ | ||
| 178 | 153 | /* Input Fields */ |
| 179 | 154 | .king-addons-ai-settings input[type="text"], |
| 180 | 155 | .king-addons-ai-settings input[type="password"], |
| 181 | 156 | .king-addons-ai-settings input[type="number"], |
| 182 | -.king-addons-ai-settings select, | |
| 183 | 157 | .king-addons-ai-settings textarea { |
| 184 | - background: rgba(45, 47, 48, 0.8); | |
| 185 | - border: 2px solid rgba(255, 255, 255, 0.1); | |
| 186 | - border-radius: 12px; | |
| 187 | - color: #ffffff; | |
| 158 | + background: #fff !important; | |
| 159 | + border: 1px solid #e2e8f0 !important; | |
| 160 | + border-radius: 6px !important; | |
| 161 | + color: #1e293b !important; | |
| 188 | 162 | font-size: 14px; |
| 189 | - font-weight: 400; | |
| 190 | - padding: 12px 16px; | |
| 191 | - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| 192 | - backdrop-filter: blur(10px); | |
| 193 | - font-family: 'Inter', sans-serif; | |
| 163 | + padding: 8px 12px !important; | |
| 164 | + transition: border-color 0.2s, box-shadow 0.2s; | |
| 165 | + width: 100%; | |
| 166 | + max-width: 320px; | |
| 194 | 167 | } |
| 195 | 168 | |
| 196 | 169 | .king-addons-ai-settings input[type="text"]:focus, |
| 197 | 170 | .king-addons-ai-settings input[type="password"]:focus, |
| @@ -196,558 +169,526 @@ | ||
| 196 | 169 | .king-addons-ai-settings input[type="text"]:focus, |
| 197 | 170 | .king-addons-ai-settings input[type="password"]:focus, |
| 198 | 171 | .king-addons-ai-settings input[type="number"]:focus, |
| 199 | 172 | .king-addons-ai-settings textarea:focus { |
| 200 | - border-color: #5b03ff; | |
| 201 | - box-shadow: 0 0 0 4px rgba(91, 3, 255, 0.2); | |
| 173 | + border-color: #8b5cf6 !important; | |
| 174 | + box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important; | |
| 202 | 175 | outline: none; |
| 203 | - background: rgba(45, 47, 48, 1); | |
| 204 | 176 | } |
| 205 | 177 | |
| 206 | -.king-addons-ai-settings select:focus { | |
| 207 | - color: #8ab4f8; | |
| 208 | -} | |
| 209 | - | |
| 210 | -.king-addons-ai-settings input[type="text"]::placeholder, | |
| 211 | -.king-addons-ai-settings input[type="password"]::placeholder, | |
| 178 | +.king-addons-ai-settings input::placeholder, | |
| 212 | 179 | .king-addons-ai-settings textarea::placeholder { |
| 213 | - color: rgba(255, 255, 255, 0.4); | |
| 180 | + color: #94a3b8 !important; | |
| 214 | 181 | } |
| 215 | 182 | |
| 216 | -/* Select dropdown arrows */ | |
| 183 | +/* Select dropdown - FIX ARROW ISSUE */ | |
| 217 | 184 | .king-addons-ai-settings select { |
| 218 | - appearance: none; | |
| 219 | - background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffffff' fill-opacity='0.6' d='M6 8L0 2h12z'/></svg>"); | |
| 220 | - background-repeat: no-repeat; | |
| 221 | - background-position: right 16px center; | |
| 222 | - background-size: 12px 8px; | |
| 223 | - padding-right: 48px; | |
| 185 | + background: #fff !important; | |
| 186 | + border: 1px solid #e2e8f0 !important; | |
| 187 | + border-radius: 6px !important; | |
| 188 | + color: #1e293b !important; | |
| 189 | + font-size: 14px; | |
| 190 | + padding: 8px 36px 8px 12px !important; | |
| 191 | + transition: border-color 0.2s, box-shadow 0.2s; | |
| 192 | + width: 100%; | |
| 193 | + max-width: 320px; | |
| 194 | + -webkit-appearance: none !important; | |
| 195 | + -moz-appearance: none !important; | |
| 196 | + appearance: none !important; | |
| 197 | + background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%2364748b' d='M6 8L0 0h12z'/%3e%3c/svg%3e") !important; | |
| 198 | + background-repeat: no-repeat !important; | |
| 199 | + background-position: right 12px center !important; | |
| 200 | + background-size: 10px 6px !important; | |
| 224 | 201 | } |
| 225 | 202 | |
| 226 | 203 | .king-addons-ai-settings select:focus { |
| 227 | - background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235b03ff' d='M6 8L0 2h12z'/></svg>"); | |
| 204 | + border-color: #8b5cf6 !important; | |
| 205 | + box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important; | |
| 206 | + outline: none; | |
| 228 | 207 | } |
| 229 | 208 | |
| 230 | -/* Disabled states */ | |
| 231 | -.king-addons-ai-settings input:disabled, | |
| 232 | -.king-addons-ai-settings select:disabled, | |
| 233 | -.king-addons-ai-settings textarea:disabled { | |
| 234 | - opacity: 0.5; | |
| 235 | - cursor: not-allowed; | |
| 236 | - background: rgba(45, 47, 48, 0.3) !important; | |
| 209 | +/* Remove default browser select arrow in various browsers */ | |
| 210 | +.king-addons-ai-settings select::-ms-expand { | |
| 211 | + display: none; | |
| 237 | 212 | } |
| 238 | 213 | |
| 239 | -.king-addons-ai-settings input[type="checkbox"]:disabled { | |
| 240 | - opacity: 0.5; | |
| 241 | - cursor: not-allowed; | |
| 214 | +/* Checkboxes */ | |
| 215 | +.king-addons-ai-settings input[type="checkbox"] { | |
| 216 | + -webkit-appearance: none !important; | |
| 217 | + -moz-appearance: none !important; | |
| 218 | + appearance: none !important; | |
| 219 | + width: 44px; | |
| 220 | + height: 24px; | |
| 221 | + background: #cbd5e1 !important; | |
| 222 | + border: none !important; | |
| 223 | + border-radius: 12px; | |
| 224 | + position: relative; | |
| 225 | + cursor: pointer; | |
| 226 | + transition: background 0.2s; | |
| 227 | + margin: 0 !important; | |
| 228 | + vertical-align: middle; | |
| 242 | 229 | } |
| 243 | 230 | |
| 244 | -/* Checkboxes */ | |
| 245 | -.king-addons-ai-settings input[type="checkbox"] { | |
| 246 | - appearance: none; | |
| 231 | +.king-addons-ai-settings input[type="checkbox"]::after { | |
| 232 | + content: ''; | |
| 233 | + position: absolute; | |
| 234 | + top: 2px; | |
| 235 | + left: 2px; | |
| 247 | 236 | width: 20px; |
| 248 | 237 | height: 20px; |
| 249 | - background: rgba(45, 47, 48, 0.8); | |
| 250 | - border: 2px solid rgba(255, 255, 255, 0.2); | |
| 251 | - border-radius: 6px; | |
| 252 | - position: relative; | |
| 253 | - cursor: pointer; | |
| 254 | - transition: all 0.3s ease; | |
| 255 | - margin-right: 12px; | |
| 238 | + background: #fff; | |
| 239 | + border-radius: 50%; | |
| 240 | + transition: transform 0.2s; | |
| 241 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); | |
| 256 | 242 | } |
| 257 | 243 | |
| 258 | 244 | .king-addons-ai-settings input[type="checkbox"]:checked { |
| 259 | - background: linear-gradient(135deg, #5b03ff, #4caf50); | |
| 260 | - border-color: #5b03ff; | |
| 245 | + background: #8b5cf6 !important; | |
| 261 | 246 | } |
| 262 | 247 | |
| 263 | 248 | .king-addons-ai-settings input[type="checkbox"]:checked::after { |
| 264 | - content: '✓'; | |
| 265 | - position: absolute; | |
| 266 | - top: 50%; | |
| 267 | - left: 50%; | |
| 268 | - transform: translate(-50%, -50%); | |
| 269 | - color: white; | |
| 270 | - font-size: 12px; | |
| 271 | - font-weight: bold; | |
| 249 | + transform: translateX(20px); | |
| 272 | 250 | } |
| 273 | 251 | |
| 252 | +.king-addons-ai-settings input[type="checkbox"]:disabled { | |
| 253 | + opacity: 0.5; | |
| 254 | + cursor: not-allowed; | |
| 255 | +} | |
| 256 | + | |
| 274 | 257 | /* Labels */ |
| 275 | 258 | .king-addons-ai-settings label { |
| 276 | - color: #ffffff; | |
| 277 | - font-weight: 500; | |
| 278 | - font-size: 14px; | |
| 259 | + color: #475569 !important; | |
| 260 | + font-weight: 400; | |
| 261 | + font-size: 13px; | |
| 279 | 262 | display: inline-flex; |
| 280 | 263 | align-items: center; |
| 264 | + gap: 10px; | |
| 281 | 265 | cursor: pointer; |
| 282 | - transition: color 0.3s ease; | |
| 283 | 266 | } |
| 284 | 267 | |
| 285 | -.king-addons-ai-settings label:hover { | |
| 286 | - color: #8ab4f8; | |
| 287 | -} | |
| 288 | - | |
| 289 | 268 | /* Description Text */ |
| 290 | 269 | .king-addons-ai-settings .description { |
| 291 | - color: rgba(255, 255, 255, 0.6); | |
| 292 | - font-size: 13px; | |
| 293 | - font-weight: 400; | |
| 270 | + color: #64748b !important; | |
| 271 | + font-size: 12px; | |
| 294 | 272 | line-height: 1.5; |
| 295 | 273 | margin-top: 8px; |
| 296 | - padding: 12px 16px; | |
| 297 | - background: rgba(45, 47, 48, 0.3); | |
| 298 | - border-radius: 8px; | |
| 299 | - border-left: 3px solid rgba(91, 3, 255, 0.5); | |
| 274 | + padding: 0 !important; | |
| 275 | + background: transparent !important; | |
| 276 | + border: none !important; | |
| 300 | 277 | } |
| 301 | 278 | |
| 302 | -/* Buttons */ | |
| 303 | -.king-addons-ai-settings button, | |
| 304 | -.king-addons-ai-settings .button { | |
| 305 | - background: linear-gradient(135deg, #5b03ff, #4caf50); | |
| 306 | - border: none; | |
| 307 | - border-radius: 12px; | |
| 308 | - color: white; | |
| 309 | - font-size: 14px; | |
| 310 | - font-weight: 600; | |
| 311 | - padding: 12px 24px; | |
| 312 | - cursor: pointer; | |
| 313 | - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| 314 | - text-decoration: none; | |
| 315 | - display: inline-flex; | |
| 316 | - align-items: center; | |
| 317 | - gap: 8px; | |
| 318 | - box-shadow: 0 4px 16px rgba(91, 3, 255, 0.3); | |
| 319 | - font-family: 'Inter', sans-serif; | |
| 279 | +/* Notice Boxes */ | |
| 280 | +.ka-ai-notice { | |
| 281 | + border-radius: 16px !important; | |
| 282 | + padding: 16px 18px !important; | |
| 283 | + margin: 12px 0 !important; | |
| 284 | + font-size: 13px !important; | |
| 285 | + line-height: 1.6 !important; | |
| 286 | + border: 1px solid rgba(0, 0, 0, 0.06) !important; | |
| 287 | + background: rgba(255, 255, 255, 0.72) !important; | |
| 288 | + backdrop-filter: saturate(180%) blur(20px); | |
| 289 | + -webkit-backdrop-filter: saturate(180%) blur(20px); | |
| 290 | + box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06); | |
| 291 | + color: #1d1d1f !important; | |
| 292 | + border-left-width: 4px !important; | |
| 320 | 293 | } |
| 321 | 294 | |
| 322 | -.king-addons-ai-settings button:hover, | |
| 323 | -.king-addons-ai-settings .button:hover { | |
| 324 | - transform: translateY(-2px); | |
| 325 | - box-shadow: 0 8px 32px rgba(91, 3, 255, 0.4); | |
| 326 | - background: linear-gradient(135deg, #6614ff, #5cbf60); | |
| 295 | +/* Warning notice (red/coral) */ | |
| 296 | +.ka-ai-notice-warning { | |
| 297 | + background: rgba(255, 59, 48, 0.08) !important; | |
| 298 | + border-color: rgba(255, 59, 48, 0.22) !important; | |
| 299 | + color: #991b1b !important; | |
| 300 | + border-left-color: rgba(255, 59, 48, 0.9) !important; | |
| 327 | 301 | } |
| 328 | 302 | |
| 329 | -.king-addons-ai-settings button:active, | |
| 330 | -.king-addons-ai-settings .button:active { | |
| 331 | - transform: translateY(0); | |
| 303 | +.ka-ai-notice-warning strong { | |
| 304 | + color: #b91c1c !important; | |
| 332 | 305 | } |
| 333 | 306 | |
| 334 | -/* Custom Save Button */ | |
| 335 | -.king-addons-settings-footer { | |
| 336 | - padding: 30px 40px; | |
| 337 | - background: linear-gradient(135deg, #2d2f30, #1a1b1b); | |
| 338 | - border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| 339 | - text-align: right; | |
| 307 | +/* Info notice (blue) */ | |
| 308 | +.ka-ai-notice-info { | |
| 309 | + background: rgba(0, 113, 227, 0.10) !important; | |
| 310 | + border-color: rgba(0, 113, 227, 0.22) !important; | |
| 311 | + color: #1e40af !important; | |
| 312 | + border-left-color: rgba(0, 113, 227, 0.9) !important; | |
| 340 | 313 | } |
| 341 | 314 | |
| 342 | -.king-addons-save-button { | |
| 343 | - background: linear-gradient(135deg, #5b03ff, #4caf50); | |
| 344 | - border: none; | |
| 345 | - border-radius: 12px; | |
| 346 | - color: white; | |
| 347 | - font-size: 16px; | |
| 348 | - font-weight: 600; | |
| 349 | - padding: 14px 32px; | |
| 350 | - cursor: pointer; | |
| 351 | - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| 352 | - box-shadow: 0 4px 16px rgba(91, 3, 255, 0.3); | |
| 353 | - font-family: 'Inter', sans-serif; | |
| 354 | - display: inline-block; | |
| 355 | - text-transform: none; | |
| 356 | - pointer-events: auto; /* Ensure button is clickable */ | |
| 315 | +.ka-ai-notice-info strong { | |
| 316 | + color: #1d4ed8 !important; | |
| 357 | 317 | } |
| 358 | 318 | |
| 359 | -.king-addons-save-button:hover { | |
| 360 | - transform: translateY(-2px); | |
| 361 | - box-shadow: 0 8px 24px rgba(91, 3, 255, 0.4); | |
| 362 | - background: linear-gradient(135deg, #6614ff, #5cbf60); | |
| 319 | +/* Notice title */ | |
| 320 | +.ka-ai-notice-title { | |
| 321 | + display: block !important; | |
| 322 | + margin-bottom: 10px !important; | |
| 323 | + font-size: 14px !important; | |
| 363 | 324 | } |
| 364 | 325 | |
| 365 | -.king-addons-save-icon { | |
| 326 | +/* Links List */ | |
| 327 | +.ka-ai-links-list { | |
| 328 | + margin: 0 !important; | |
| 329 | + padding: 0 !important; | |
| 330 | + list-style: none !important; | |
| 331 | +} | |
| 332 | + | |
| 333 | +.ka-ai-links-list li { | |
| 334 | + margin: 8px 0 !important; | |
| 335 | + padding-left: 20px !important; | |
| 336 | + position: relative; | |
| 337 | +} | |
| 338 | + | |
| 339 | +.ka-ai-links-list li::before { | |
| 340 | + content: '•'; | |
| 341 | + position: absolute; | |
| 342 | + left: 0; | |
| 343 | + color: #3b82f6; | |
| 344 | + font-weight: 700; | |
| 366 | 345 | font-size: 16px; |
| 367 | - margin-right: 8px; | |
| 368 | 346 | } |
| 369 | 347 | |
| 370 | -/* Usage Statistics Enhanced */ | |
| 371 | -.king-addons-ai-usage-stats { | |
| 372 | - background: linear-gradient(135deg, rgba(45, 47, 48, 0.8), rgba(26, 27, 27, 0.8)); | |
| 373 | - border: 1px solid rgba(255, 255, 255, 0.1); | |
| 374 | - border-radius: 16px; | |
| 375 | - padding: 24px; | |
| 376 | - margin: 20px 0; | |
| 377 | - backdrop-filter: blur(20px); | |
| 348 | +.ka-ai-links-list li a { | |
| 349 | + color: #2563eb !important; | |
| 350 | + font-weight: 500; | |
| 351 | + text-decoration: none !important; | |
| 352 | + transition: color 0.2s; | |
| 378 | 353 | } |
| 379 | 354 | |
| 380 | -.king-addons-ai-usage-stats table { | |
| 381 | - width: 100%; | |
| 382 | - margin-bottom: 20px; | |
| 383 | - border-collapse: separate; | |
| 384 | - border-spacing: 0; | |
| 355 | +.ka-ai-links-list li a:hover { | |
| 356 | + color: #1d4ed8 !important; | |
| 357 | + text-decoration: underline !important; | |
| 385 | 358 | } |
| 386 | 359 | |
| 387 | -.king-addons-ai-usage-stats table th { | |
| 388 | - color: #ffffff; | |
| 389 | - font-weight: 600; | |
| 390 | - font-size: 14px; | |
| 391 | - padding: 12px 0; | |
| 360 | +/* Settings Footer */ | |
| 361 | +.king-addons-settings-footer { | |
| 362 | + padding: 20px 24px; | |
| 363 | + background: #f8fafc; | |
| 364 | + border-top: 1px solid #e2e8f0; | |
| 365 | + border-radius: 0 0 12px 12px; | |
| 392 | 366 | text-align: left; |
| 393 | - width: 40%; | |
| 394 | 367 | } |
| 395 | 368 | |
| 396 | -.king-addons-ai-usage-stats table td { | |
| 397 | - color: rgba(255, 255, 255, 0.8); | |
| 398 | - font-weight: 500; | |
| 399 | - padding: 12px 0; | |
| 400 | - font-size: 14px; | |
| 369 | +.king-addons-save-button { | |
| 370 | + background: #8b5cf6 !important; | |
| 371 | + border: none !important; | |
| 372 | + border-radius: 8px !important; | |
| 373 | + color: #fff !important; | |
| 374 | + font-size: 14px !important; | |
| 375 | + font-weight: 500 !important; | |
| 376 | + padding: 10px 24px !important; | |
| 377 | + cursor: pointer; | |
| 378 | + transition: transform 0.2s, box-shadow 0.2s; | |
| 379 | + box-shadow: none !important; | |
| 401 | 380 | } |
| 402 | 381 | |
| 403 | -.king-addons-ai-usage-bar-container { | |
| 404 | - position: relative; | |
| 405 | - height: 12px; | |
| 406 | - background: rgba(45, 47, 48, 0.8); | |
| 407 | - border-radius: 8px; | |
| 408 | - overflow: hidden; | |
| 409 | - margin: 20px 0; | |
| 410 | - box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3); | |
| 382 | +.king-addons-save-button:hover { | |
| 383 | + transform: translateY(-1px); | |
| 384 | + box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important; | |
| 411 | 385 | } |
| 412 | 386 | |
| 413 | -.king-addons-ai-usage-bar { | |
| 414 | - height: 100%; | |
| 415 | - background: linear-gradient(90deg, #4caf50, #5b03ff); | |
| 416 | - border-radius: 8px; | |
| 417 | - transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); | |
| 418 | - position: relative; | |
| 419 | - overflow: hidden; | |
| 387 | +/* Usage Statistics */ | |
| 388 | +.king-addons-ai-usage-stats { | |
| 389 | + background: rgba(255, 255, 255, 0.72); | |
| 390 | + border: 1px solid rgba(0, 0, 0, 0.06); | |
| 391 | + border-radius: 16px; | |
| 392 | + padding: 16px; | |
| 393 | + margin: 12px 0; | |
| 394 | + backdrop-filter: saturate(180%) blur(20px); | |
| 395 | + -webkit-backdrop-filter: saturate(180%) blur(20px); | |
| 396 | + box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06); | |
| 420 | 397 | } |
| 421 | 398 | |
| 422 | -.king-addons-ai-usage-bar::after { | |
| 423 | - content: ''; | |
| 424 | - position: absolute; | |
| 425 | - top: 0; | |
| 426 | - left: -100%; | |
| 427 | - width: 100%; | |
| 428 | - height: 100%; | |
| 429 | - background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); | |
| 430 | - animation: shimmer 2s infinite; | |
| 399 | +/* ======================================== | |
| 400 | + DARK (V3) + LEGACY DARK SUPPORT | |
| 401 | + ======================================== */ | |
| 402 | + | |
| 403 | +body.ka-v3-dark .ka-ai-notice, | |
| 404 | +body.ka-dark-theme .ka-ai-notice { | |
| 405 | + background: rgba(28, 28, 30, 0.72) !important; | |
| 406 | + border-color: rgba(255, 255, 255, 0.08) !important; | |
| 407 | + color: #f5f5f7 !important; | |
| 408 | + box-shadow: 0 10px 36px rgba(0, 0, 0, 0.30); | |
| 431 | 409 | } |
| 432 | 410 | |
| 433 | -@keyframes shimmer { | |
| 434 | - 0% { left: -100%; } | |
| 435 | - 100% { left: 100%; } | |
| 411 | +body.ka-v3-dark .ka-ai-notice-warning, | |
| 412 | +body.ka-dark-theme .ka-ai-notice-warning { | |
| 413 | + background: rgba(255, 149, 0, 0.12) !important; | |
| 414 | + border-color: rgba(255, 149, 0, 0.22) !important; | |
| 415 | + color: #f5f5f7 !important; | |
| 416 | + border-left-color: rgba(255, 149, 0, 0.9) !important; | |
| 436 | 417 | } |
| 437 | 418 | |
| 438 | -/* Warning/High Usage Colors */ | |
| 439 | -.king-addons-ai-usage-bar[style*="width: 6"], | |
| 440 | -.king-addons-ai-usage-bar[style*="width: 7"] { | |
| 441 | - background: linear-gradient(90deg, #ff9800, #ff5722); | |
| 419 | +body.ka-v3-dark .ka-ai-notice-warning strong, | |
| 420 | +body.ka-dark-theme .ka-ai-notice-warning strong { | |
| 421 | + color: #ffffff !important; | |
| 442 | 422 | } |
| 443 | 423 | |
| 444 | -.king-addons-ai-usage-bar[style*="width: 8"], | |
| 445 | -.king-addons-ai-usage-bar[style*="width: 9"] { | |
| 446 | - background: linear-gradient(90deg, #ff5722, #f44336); | |
| 424 | +body.ka-v3-dark .ka-ai-notice-info, | |
| 425 | +body.ka-dark-theme .ka-ai-notice-info { | |
| 426 | + background: rgba(0, 113, 227, 0.14) !important; | |
| 427 | + border-color: rgba(0, 113, 227, 0.22) !important; | |
| 428 | + color: #f5f5f7 !important; | |
| 429 | + border-left-color: rgba(0, 113, 227, 0.9) !important; | |
| 447 | 430 | } |
| 448 | 431 | |
| 449 | -/* Info boxes styling */ | |
| 450 | -.king-addons-ai-settings .notice, | |
| 451 | -.king-addons-ai-settings .updated { | |
| 452 | - background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(91, 3, 255, 0.05)); | |
| 453 | - border: 1px solid rgba(76, 175, 80, 0.3); | |
| 454 | - border-radius: 12px; | |
| 455 | - color: #ffffff; | |
| 456 | - padding: 16px 20px; | |
| 457 | - margin: 20px 0; | |
| 458 | - backdrop-filter: blur(10px); | |
| 432 | +body.ka-v3-dark .ka-ai-notice-info strong, | |
| 433 | +body.ka-dark-theme .ka-ai-notice-info strong { | |
| 434 | + color: #ffffff !important; | |
| 459 | 435 | } |
| 460 | 436 | |
| 461 | -.king-addons-ai-settings .error { | |
| 462 | - background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(255, 87, 34, 0.05)); | |
| 463 | - border: 1px solid rgba(244, 67, 54, 0.3); | |
| 437 | +body.ka-v3-dark .king-addons-ai-usage-stats, | |
| 438 | +body.ka-dark-theme .king-addons-ai-usage-stats { | |
| 439 | + background: rgba(28, 28, 30, 0.72); | |
| 440 | + border-color: rgba(255, 255, 255, 0.08); | |
| 441 | + box-shadow: 0 10px 36px rgba(0, 0, 0, 0.30); | |
| 464 | 442 | } |
| 465 | 443 | |
| 466 | -/* Responsive Design */ | |
| 467 | -@media (max-width: 768px) { | |
| 468 | - .king-addons-settings-header { | |
| 469 | - padding: 24px; | |
| 470 | - } | |
| 471 | - | |
| 472 | - .king-addons-settings-header-content { | |
| 473 | - flex-direction: column; | |
| 474 | - text-align: center; | |
| 475 | - gap: 16px; | |
| 476 | - } | |
| 477 | - | |
| 478 | - .king-addons-settings-title { | |
| 479 | - font-size: 24px; | |
| 480 | - } | |
| 481 | - | |
| 482 | - .king-addons-ai-settings .form-table th, | |
| 483 | - .king-addons-ai-settings .form-table td { | |
| 484 | - padding: 16px 20px; | |
| 485 | - display: block; | |
| 486 | - width: 100%; | |
| 487 | - } | |
| 488 | - | |
| 489 | - .king-addons-ai-settings .form-table th { | |
| 490 | - border-right: none; | |
| 491 | - border-bottom: 1px solid rgba(255, 255, 255, 0.1); | |
| 492 | - } | |
| 493 | - | |
| 494 | - .king-addons-settings-footer { | |
| 495 | - padding: 20px; | |
| 496 | - text-align: center; | |
| 444 | +.king-addons-ai-usage-stats table { | |
| 445 | + width: 100%; | |
| 446 | + margin-bottom: 12px; | |
| 497 | 447 | } |
| 498 | 448 | |
| 499 | - .king-addons-ai-settings h2 + p { | |
| 500 | - padding: 16px 20px; | |
| 501 | - } | |
| 502 | - | |
| 503 | - .king-addons-ai-settings .notice { | |
| 504 | - padding: 16px 20px !important; | |
| 505 | - margin: 16px 0 !important; | |
| 506 | - } | |
| 449 | +.king-addons-ai-usage-stats table th { | |
| 450 | + color: #475569 !important; | |
| 451 | + font-weight: 500; | |
| 452 | + font-size: 13px; | |
| 453 | + padding: 8px 0; | |
| 454 | + text-align: left; | |
| 455 | + width: 40%; | |
| 456 | + background: transparent !important; | |
| 507 | 457 | } |
| 508 | 458 | |
| 509 | -/* Dark Theme WordPress Admin Fix */ | |
| 510 | -body { | |
| 511 | - background: #101112 !important; | |
| 459 | +.king-addons-ai-usage-stats table td { | |
| 460 | + color: #1e293b !important; | |
| 461 | + padding: 8px 0; | |
| 462 | + font-size: 13px; | |
| 463 | + background: transparent !important; | |
| 512 | 464 | } |
| 513 | 465 | |
| 514 | -#wpcontent { | |
| 515 | - background: #101112 !important; | |
| 466 | +.king-addons-ai-usage-bar-container { | |
| 467 | + height: 8px; | |
| 468 | + background: #e2e8f0; | |
| 469 | + border-radius: 4px; | |
| 470 | + overflow: hidden; | |
| 471 | + margin: 12px 0; | |
| 516 | 472 | } |
| 517 | 473 | |
| 518 | -.king-addons-ai-settings .wrap { | |
| 519 | - background: transparent; | |
| 474 | +.king-addons-ai-usage-bar { | |
| 475 | + height: 100%; | |
| 476 | + background: #8b5cf6; | |
| 477 | + border-radius: 4px; | |
| 478 | + transition: width 0.6s ease; | |
| 520 | 479 | } |
| 521 | 480 | |
| 522 | -/* Hide default WordPress submit button */ | |
| 523 | -.king-addons-ai-settings .submit { | |
| 524 | - display: none; | |
| 481 | +/* Usage Stats: Dark overrides (must come after light !important rules) */ | |
| 482 | +body.ka-v3-dark .king-addons-ai-usage-stats table th, | |
| 483 | +body.ka-dark-theme .king-addons-ai-usage-stats table th { | |
| 484 | + color: rgba(245, 245, 247, 0.72) !important; | |
| 525 | 485 | } |
| 526 | 486 | |
| 527 | -/* Override WordPress admin styles */ | |
| 528 | -.king-addons-ai-settings .form-table th { | |
| 529 | - background: rgba(45, 47, 48, 0.5) !important; | |
| 530 | - color: #ffffff !important; | |
| 487 | +body.ka-v3-dark .king-addons-ai-usage-stats table td, | |
| 488 | +body.ka-dark-theme .king-addons-ai-usage-stats table td { | |
| 489 | + color: #f5f5f7 !important; | |
| 531 | 490 | } |
| 532 | 491 | |
| 533 | -.king-addons-ai-settings .form-table td { | |
| 534 | - background: rgba(26, 27, 27, 0.3) !important; | |
| 535 | - color: #ffffff !important; | |
| 492 | +body.ka-v3-dark .king-addons-ai-usage-bar-container, | |
| 493 | +body.ka-dark-theme .king-addons-ai-usage-bar-container { | |
| 494 | + background: rgba(255, 255, 255, 0.12) !important; | |
| 536 | 495 | } |
| 537 | 496 | |
| 538 | -/* Style WordPress notices to match theme */ | |
| 539 | -.king-addons-ai-settings .notice { | |
| 540 | - background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(91, 3, 255, 0.05)) !important; | |
| 541 | - border: 1px solid rgba(76, 175, 80, 0.4) !important; | |
| 542 | - border-radius: 12px !important; | |
| 543 | - color: #ffffff !important; | |
| 544 | - padding: 20px 24px !important; | |
| 545 | - margin: 20px 0 !important; | |
| 546 | - backdrop-filter: blur(10px) !important; | |
| 547 | - box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important; | |
| 497 | +/* Notices */ | |
| 498 | +.king-addons-ai-settings .notice, | |
| 499 | +.king-addons-ai-settings .updated { | |
| 500 | + background: #f0fdf4 !important; | |
| 501 | + border: 1px solid #86efac !important; | |
| 502 | + border-radius: 8px !important; | |
| 503 | + color: #166534 !important; | |
| 504 | + padding: 12px 16px !important; | |
| 505 | + margin: 0 0 16px 0 !important; | |
| 548 | 506 | } |
| 549 | 507 | |
| 550 | 508 | .king-addons-ai-settings .notice p { |
| 551 | - color: rgba(255, 255, 255, 0.95) !important; | |
| 509 | + color: #166534 !important; | |
| 552 | 510 | margin: 0 !important; |
| 553 | - font-size: 14px !important; | |
| 554 | - line-height: 1.5 !important; | |
| 555 | 511 | } |
| 556 | 512 | |
| 557 | -/* Info boxes (blue) */ | |
| 558 | -.king-addons-ai-settings .notice:not(.notice-error):not(.notice-warning) { | |
| 559 | - background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(91, 3, 255, 0.05)) !important; | |
| 560 | - border-color: rgba(33, 150, 243, 0.4) !important; | |
| 513 | +.king-addons-ai-settings .notice-error, | |
| 514 | +.king-addons-ai-settings .error { | |
| 515 | + background: #fef2f2 !important; | |
| 516 | + border-color: #fecaca !important; | |
| 517 | + color: #991b1b !important; | |
| 561 | 518 | } |
| 562 | 519 | |
| 563 | -/* Warning boxes (orange/yellow) */ | |
| 520 | +.king-addons-ai-settings .notice-error p { | |
| 521 | + color: #991b1b !important; | |
| 522 | +} | |
| 523 | + | |
| 564 | 524 | .king-addons-ai-settings .notice-warning { |
| 565 | - background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.05)) !important; | |
| 566 | - border-color: rgba(255, 193, 7, 0.4) !important; | |
| 525 | + background: #fffbeb !important; | |
| 526 | + border-color: #fcd34d !important; | |
| 527 | + color: #92400e !important; | |
| 567 | 528 | } |
| 568 | 529 | |
| 569 | -/* Error boxes (red) */ | |
| 570 | -.king-addons-ai-settings .notice-error { | |
| 571 | - background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(255, 87, 34, 0.05)) !important; | |
| 572 | - border-color: rgba(244, 67, 54, 0.4) !important; | |
| 530 | +/* Links */ | |
| 531 | +.king-addons-ai-settings a { | |
| 532 | + color: #8b5cf6; | |
| 533 | + text-decoration: none; | |
| 534 | + font-weight: 500; | |
| 573 | 535 | } |
| 574 | 536 | |
| 575 | -/* Important/Info labels styling */ | |
| 576 | -.king-addons-ai-settings .notice p strong:first-child, | |
| 577 | -.king-addons-ai-settings .notice p b:first-child { | |
| 578 | - color: #ffffff !important; | |
| 579 | - font-weight: 700 !important; | |
| 580 | - font-size: 15px !important; | |
| 581 | - text-transform: uppercase !important; | |
| 582 | - letter-spacing: 0.5px !important; | |
| 583 | - margin-right: 8px !important; | |
| 537 | +.king-addons-ai-settings a:hover { | |
| 538 | + color: #7c3aed; | |
| 539 | + text-decoration: underline; | |
| 584 | 540 | } |
| 585 | 541 | |
| 586 | -/* Useful Links styling */ | |
| 587 | -.king-addons-ai-settings .notice ul { | |
| 588 | - margin: 12px 0 0 0 !important; | |
| 589 | - padding-left: 20px !important; | |
| 542 | +/* Secondary buttons - FIX ARROW */ | |
| 543 | +.king-addons-ai-settings .button-secondary, | |
| 544 | +.king-addons-ai-settings .button { | |
| 545 | + background: #fff !important; | |
| 546 | + border: 1px solid #e2e8f0 !important; | |
| 547 | + color: #475569 !important; | |
| 548 | + border-radius: 6px !important; | |
| 549 | + padding: 6px 14px !important; | |
| 550 | + font-size: 13px !important; | |
| 551 | + font-weight: 500 !important; | |
| 552 | + transition: all 0.2s; | |
| 553 | + -webkit-appearance: none !important; | |
| 554 | + -moz-appearance: none !important; | |
| 555 | + appearance: none !important; | |
| 556 | + background-image: none !important; | |
| 590 | 557 | } |
| 591 | 558 | |
| 592 | -.king-addons-ai-settings .notice li { | |
| 593 | - margin-bottom: 8px !important; | |
| 594 | - color: rgba(255, 255, 255, 0.9) !important; | |
| 595 | - font-size: 14px !important; | |
| 559 | +.king-addons-ai-settings .button-secondary:hover, | |
| 560 | +.king-addons-ai-settings .button:hover { | |
| 561 | + border-color: #8b5cf6 !important; | |
| 562 | + color: #8b5cf6 !important; | |
| 563 | + background: #f8fafc !important; | |
| 596 | 564 | } |
| 597 | 565 | |
| 598 | -.king-addons-ai-settings .notice li a { | |
| 599 | - color: #8ab4f8 !important; | |
| 600 | - font-weight: 500 !important; | |
| 566 | +/* Hide default WordPress submit button */ | |
| 567 | +.king-addons-ai-settings .submit { | |
| 568 | + display: none; | |
| 601 | 569 | } |
| 602 | 570 | |
| 603 | -/* Additional WordPress admin overrides */ | |
| 604 | -.king-addons-ai-settings .wrap h1 { | |
| 605 | - display: none; /* Hide default WordPress title since we have custom header */ | |
| 571 | +/* Hide default WordPress title */ | |
| 572 | +.king-addons-ai-settings .wrap > h1:first-child { | |
| 573 | + display: none; | |
| 606 | 574 | } |
| 607 | 575 | |
| 608 | -.king-addons-ai-settings .regular-text { | |
| 609 | - width: 300px; | |
| 610 | - max-width: 100%; | |
| 611 | -} | |
| 576 | +/* Responsive */ | |
| 577 | +@media (max-width: 782px) { | |
| 578 | + .king-addons-settings-header { | |
| 579 | + flex-direction: column; | |
| 580 | + gap: 16px; | |
| 581 | + text-align: center; | |
| 582 | + padding: 20px; | |
| 583 | + } | |
| 612 | 584 | |
| 613 | -.king-addons-ai-settings .small-text { | |
| 614 | - width: 100px; | |
| 615 | -} | |
| 585 | + .king-addons-settings-header-content { | |
| 586 | + flex-direction: column; | |
| 587 | + gap: 12px; | |
| 588 | + } | |
| 616 | 589 | |
| 617 | -/* Style specific elements */ | |
| 618 | -.king-addons-ai-settings .button-secondary { | |
| 619 | - background: rgba(45, 47, 48, 0.8) !important; | |
| 620 | - border: 2px solid rgba(255, 255, 255, 0.2) !important; | |
| 621 | - color: #ffffff !important; | |
| 622 | - border-radius: 8px !important; | |
| 623 | - transition: all 0.3s ease !important; | |
| 624 | - font-family: 'Inter', sans-serif !important; | |
| 625 | - font-weight: 500 !important; | |
| 626 | - padding: 8px 16px !important; | |
| 627 | - font-size: 14px !important; | |
| 628 | -} | |
| 590 | + .king-addons-ai-settings .form-table th, | |
| 591 | + .king-addons-ai-settings .form-table td { | |
| 592 | + display: block; | |
| 593 | + width: 100%; | |
| 594 | + padding: 12px 16px; | |
| 595 | + } | |
| 629 | 596 | |
| 630 | -.king-addons-ai-settings .button-secondary:hover { | |
| 631 | - background: rgba(60, 62, 63, 1) !important; | |
| 632 | - border-color: #5b03ff !important; | |
| 633 | - transform: translateY(-1px) !important; | |
| 634 | - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important; | |
| 635 | -} | |
| 597 | + .king-addons-ai-settings .form-table th { | |
| 598 | + border-bottom: none; | |
| 599 | + padding-bottom: 4px; | |
| 600 | + } | |
| 636 | 601 | |
| 637 | -.king-addons-ai-settings .button-secondary:active { | |
| 638 | - transform: translateY(0) !important; | |
| 602 | + .king-addons-ai-settings h2 { | |
| 603 | + padding: 14px 16px; | |
| 604 | + } | |
| 605 | + | |
| 606 | + .king-addons-settings-footer { | |
| 607 | + padding: 16px; | |
| 608 | + text-align: center; | |
| 609 | + } | |
| 639 | 610 | } |
| 640 | 611 | |
| 641 | -/* Spinner styles */ | |
| 642 | -.king-addons-ai-settings .spinner { | |
| 643 | - filter: invert(1); | |
| 644 | -} | |
| 612 | +/* ======================================== | |
| 613 | + DARK THEME STYLES | |
| 614 | + ======================================== */ | |
| 645 | 615 | |
| 646 | -/* Success/error messages */ | |
| 647 | -.king-addons-ai-settings .updated { | |
| 648 | - background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(91, 3, 255, 0.05)) !important; | |
| 649 | - border: 1px solid rgba(76, 175, 80, 0.4) !important; | |
| 650 | - border-radius: 12px !important; | |
| 651 | - color: #ffffff !important; | |
| 616 | +body.ka-dark-theme.king-addons_page_king-addons-ai-settings #wpcontent, | |
| 617 | +body.ka-dark-theme.king-addons_page_king-addons-ai-settings #wpbody, | |
| 618 | +body.ka-dark-theme.king-addons_page_king-addons-ai-settings #wpbody-content, | |
| 619 | +body.ka-dark-theme .king-addons-ai-settings { | |
| 620 | + background: #0f172a !important; | |
| 652 | 621 | } |
| 653 | 622 | |
| 654 | -.king-addons-ai-settings .error { | |
| 655 | - background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(255, 87, 34, 0.05)) !important; | |
| 656 | - border: 1px solid rgba(244, 67, 54, 0.4) !important; | |
| 657 | - border-radius: 12px !important; | |
| 658 | - color: #ffffff !important; | |
| 623 | +body.ka-dark-theme .king-addons-ai-settings h2 { | |
| 624 | + background: #1e293b; | |
| 625 | + color: #f1f5f9 !important; | |
| 626 | + border-bottom-color: #334155; | |
| 659 | 627 | } |
| 660 | 628 | |
| 661 | -/* Links styling */ | |
| 662 | -.king-addons-ai-settings a { | |
| 663 | - color: #8ab4f8; | |
| 664 | - text-decoration: none; | |
| 665 | - transition: color 0.3s ease; | |
| 666 | - font-weight: 500; | |
| 629 | +body.ka-dark-theme .king-addons-ai-settings h2::before { | |
| 630 | + color: #818cf8; | |
| 667 | 631 | } |
| 668 | 632 | |
| 669 | -.king-addons-ai-settings a:hover { | |
| 670 | - color: #a8c7fa; | |
| 671 | - text-decoration: underline; | |
| 633 | +body.ka-dark-theme .king-addons-ai-settings h2 + p { | |
| 634 | + background: #1e293b; | |
| 635 | + color: #94a3b8; | |
| 672 | 636 | } |
| 673 | 637 | |
| 674 | -.king-addons-ai-settings a:visited { | |
| 675 | - color: #8ab4f8; | |
| 638 | +body.ka-dark-theme .king-addons-ai-settings .form-table { | |
| 639 | + background: #1e293b; | |
| 640 | + border-radius: 0 0 12px 12px; | |
| 676 | 641 | } |
| 677 | 642 | |
| 678 | -/* Modern Animations */ | |
| 679 | -@keyframes slide-in-from-left { | |
| 680 | - from { | |
| 681 | - opacity: 0; | |
| 682 | - transform: translateX(-30px); | |
| 683 | - } | |
| 684 | - to { | |
| 685 | - opacity: 1; | |
| 686 | - transform: translateX(0); | |
| 687 | - } | |
| 643 | +body.ka-dark-theme .king-addons-ai-settings .form-table th, | |
| 644 | +body.ka-dark-theme .king-addons-ai-settings .form-table td { | |
| 645 | + border-bottom-color: #334155; | |
| 688 | 646 | } |
| 689 | 647 | |
| 690 | -@keyframes fade-in-up { | |
| 691 | - from { | |
| 692 | - opacity: 0; | |
| 693 | - transform: translateY(20px); | |
| 694 | - } | |
| 695 | - to { | |
| 696 | - opacity: 1; | |
| 697 | - transform: translateY(0); | |
| 698 | - } | |
| 648 | +body.ka-dark-theme .king-addons-ai-settings .form-table th { | |
| 649 | + color: #e2e8f0; | |
| 699 | 650 | } |
| 700 | 651 | |
| 701 | -.slide-in-from-left { | |
| 702 | - animation: slide-in-from-left 0.6s cubic-bezier(0.4, 0, 0.2, 1); | |
| 652 | +body.ka-dark-theme .king-addons-ai-settings .form-table .description { | |
| 653 | + color: #94a3b8; | |
| 703 | 654 | } |
| 704 | 655 | |
| 705 | -.fade-in-up { | |
| 706 | - animation: fade-in-up 0.4s cubic-bezier(0.4, 0, 0.2, 1); | |
| 656 | +body.ka-dark-theme .king-addons-ai-settings input[type="text"], | |
| 657 | +body.ka-dark-theme .king-addons-ai-settings input[type="password"], | |
| 658 | +body.ka-dark-theme .king-addons-ai-settings input[type="number"], | |
| 659 | +body.ka-dark-theme .king-addons-ai-settings select, | |
| 660 | +body.ka-dark-theme .king-addons-ai-settings textarea { | |
| 661 | + background: #0f172a !important; | |
| 662 | + border-color: #475569 !important; | |
| 663 | + color: #f1f5f9 !important; | |
| 707 | 664 | } |
| 708 | 665 | |
| 709 | -/* Focus animations */ | |
| 710 | -/* .king-addons-ai-settings .form-table tr.focused { | |
| 711 | - background: rgba(91, 3, 255, 0.05); | |
| 712 | - transform: scale(1.01); | |
| 713 | - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| 666 | +body.ka-dark-theme .king-addons-ai-settings input:focus, | |
| 667 | +body.ka-dark-theme .king-addons-ai-settings select:focus, | |
| 668 | +body.ka-dark-theme .king-addons-ai-settings textarea:focus { | |
| 669 | + border-color: #8b5cf6 !important; | |
| 670 | + box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important; | |
| 714 | 671 | } |
| 715 | 672 | |
| 716 | -.king-addons-ai-settings .form-table tr.focused th, | |
| 717 | -.king-addons-ai-settings .form-table tr.focused td { | |
| 718 | - background: rgba(91, 3, 255, 0.1) !important; | |
| 719 | -} */ | |
| 720 | - | |
| 721 | -/* Checkbox animation */ | |
| 722 | -.checked-animation { | |
| 723 | - animation: checkbox-bounce 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); | |
| 673 | +body.ka-dark-theme .king-addons-settings-footer { | |
| 674 | + background: #0f172a; | |
| 675 | + border-top-color: #334155; | |
| 724 | 676 | } |
| 725 | 677 | |
| 726 | -@keyframes checkbox-bounce { | |
| 727 | - 0% { transform: scale(1); } | |
| 728 | - 50% { transform: scale(1.2); } | |
| 729 | - 100% { transform: scale(1); } | |
| 678 | +body.ka-dark-theme .king-addons-save-button { | |
| 679 | + background: #8b5cf6; | |
| 730 | 680 | } |
| 731 | 681 | |
| 732 | -/* Header icon animation */ | |
| 733 | -.king-addons-settings-header-icon { | |
| 734 | - transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| 682 | +body.ka-dark-theme .king-addons-ai-settings .button-secondary, | |
| 683 | +body.ka-dark-theme .king-addons-ai-settings .button { | |
| 684 | + background: #334155 !important; | |
| 685 | + border-color: #475569 !important; | |
| 686 | + color: #f1f5f9 !important; | |
| 735 | 687 | } |
| 736 | 688 | |
| 737 | -/* Loading state for forms */ | |
| 738 | -.form-saving { | |
| 739 | - pointer-events: none; | |
| 740 | - opacity: 0.8; | |
| 689 | +body.ka-dark-theme .king-addons-ai-settings .button-secondary:hover, | |
| 690 | +body.ka-dark-theme .king-addons-ai-settings .button:hover { | |
| 691 | + background: #475569 !important; | |
| 692 | + border-color: #8b5cf6 !important; | |
| 693 | + color: #fff !important; | |
| 741 | 694 | } |
| 742 | - | |
| 743 | -.form-saving::after { | |
| 744 | - content: ''; | |
| 745 | - position: absolute; | |
| 746 | - top: 0; | |
| 747 | - left: 0; | |
| 748 | - right: 0; | |
| 749 | - bottom: 0; | |
| 750 | - background: rgba(26, 27, 27, 0.5); | |
| 751 | - backdrop-filter: blur(2px); | |
| 752 | - z-index: 10; | |
| 753 | -} | |