|
| 1 | +@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=Cabinet+Grotesk:wght@400;700;800&display=swap'); |
| 2 | + |
| 3 | +:root { |
| 4 | + --bg: #0a0a0f; |
| 5 | + --bg-1: #111116; |
| 6 | + --bg-2: #18181f; |
| 7 | + --bg-3: #1f1f28; |
| 8 | + --border: #252530; |
| 9 | + --border-2: #35354a; |
| 10 | + --accent: #7b6cff; |
| 11 | + --accent-2: #a99dff; |
| 12 | + --accent-glow:rgba(123,108,255,0.12); |
| 13 | + --green: #4fffb0; |
| 14 | + --red: #ff5c7a; |
| 15 | + --text: #ededf5; |
| 16 | + --text-2: #7777aa; |
| 17 | + --text-3: #3d3d55; |
| 18 | + --radius: 8px; |
| 19 | + --radius-lg: 14px; |
| 20 | + --ease: 0.16s cubic-bezier(0.4,0,0.2,1); |
| 21 | +} |
| 22 | + |
| 23 | +*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } |
| 24 | + |
| 25 | +html, body { |
| 26 | + height: 100%; |
| 27 | + background: var(--bg); |
| 28 | + color: var(--text); |
| 29 | + font-family: 'IBM Plex Mono', monospace; |
| 30 | + font-size: 13px; |
| 31 | + overflow: hidden; |
| 32 | + -webkit-user-select: none; |
| 33 | + user-select: none; |
| 34 | +} |
| 35 | + |
| 36 | +.titlebar { |
| 37 | + display: flex; |
| 38 | + align-items: center; |
| 39 | + justify-content: space-between; |
| 40 | + height: 42px; |
| 41 | + padding: 0 16px; |
| 42 | + background: var(--bg-1); |
| 43 | + border-bottom: 1px solid var(--border); |
| 44 | + -webkit-app-region: drag; |
| 45 | +} |
| 46 | + |
| 47 | +.titlebar-title { |
| 48 | + font-family: 'Cabinet Grotesk', sans-serif; |
| 49 | + font-weight: 800; |
| 50 | + font-size: 13px; |
| 51 | + letter-spacing: 0.3px; |
| 52 | + color: var(--text); |
| 53 | + display: flex; |
| 54 | + align-items: center; |
| 55 | + gap: 8px; |
| 56 | +} |
| 57 | + |
| 58 | +.titlebar-title span { |
| 59 | + width: 7px; |
| 60 | + height: 7px; |
| 61 | + border-radius: 50%; |
| 62 | + background: var(--accent); |
| 63 | + box-shadow: 0 0 8px var(--accent); |
| 64 | + display: inline-block; |
| 65 | +} |
| 66 | + |
| 67 | +.titlebar-controls { |
| 68 | + display: flex; |
| 69 | + gap: 6px; |
| 70 | + -webkit-app-region: no-drag; |
| 71 | +} |
| 72 | + |
| 73 | +.titlebar-controls button { |
| 74 | + width: 28px; |
| 75 | + height: 28px; |
| 76 | + border-radius: 6px; |
| 77 | + border: 1px solid var(--border); |
| 78 | + background: var(--bg-2); |
| 79 | + color: var(--text-2); |
| 80 | + cursor: pointer; |
| 81 | + font-size: 14px; |
| 82 | + display: flex; |
| 83 | + align-items: center; |
| 84 | + justify-content: center; |
| 85 | + transition: all var(--ease); |
| 86 | +} |
| 87 | + |
| 88 | +.titlebar-controls button:hover { background: var(--bg-3); color: var(--text); border-color: var(--border-2); } |
| 89 | +.titlebar-controls button.close:hover { background: var(--red); color: #fff; border-color: var(--red); } |
| 90 | + |
| 91 | +.layout { |
| 92 | + display: grid; |
| 93 | + grid-template-columns: 200px 1fr; |
| 94 | + height: calc(100vh - 42px); |
| 95 | +} |
| 96 | + |
| 97 | +.sidebar { |
| 98 | + background: var(--bg-1); |
| 99 | + border-right: 1px solid var(--border); |
| 100 | + padding: 20px 12px; |
| 101 | + display: flex; |
| 102 | + flex-direction: column; |
| 103 | + gap: 4px; |
| 104 | +} |
| 105 | + |
| 106 | +.sidebar-label { |
| 107 | + font-size: 9px; |
| 108 | + letter-spacing: 2px; |
| 109 | + text-transform: uppercase; |
| 110 | + color: var(--text-3); |
| 111 | + padding: 0 8px; |
| 112 | + margin-bottom: 6px; |
| 113 | + margin-top: 4px; |
| 114 | +} |
| 115 | + |
| 116 | +.nav-btn { |
| 117 | + display: flex; |
| 118 | + align-items: center; |
| 119 | + gap: 10px; |
| 120 | + padding: 9px 10px; |
| 121 | + border-radius: var(--radius); |
| 122 | + border: none; |
| 123 | + background: transparent; |
| 124 | + color: var(--text-2); |
| 125 | + font-family: 'IBM Plex Mono', monospace; |
| 126 | + font-size: 12px; |
| 127 | + cursor: pointer; |
| 128 | + transition: all var(--ease); |
| 129 | + text-align: left; |
| 130 | + width: 100%; |
| 131 | +} |
| 132 | + |
| 133 | +.nav-btn:hover { background: var(--bg-2); color: var(--text); } |
| 134 | + |
| 135 | +.nav-btn.active { |
| 136 | + background: var(--accent-glow); |
| 137 | + color: var(--accent-2); |
| 138 | + border: 1px solid rgba(123,108,255,0.25); |
| 139 | +} |
| 140 | + |
| 141 | +.nav-btn svg { flex-shrink: 0; opacity: 0.7; } |
| 142 | +.nav-btn.active svg { opacity: 1; } |
| 143 | + |
| 144 | +.main { |
| 145 | + display: flex; |
| 146 | + flex-direction: column; |
| 147 | + padding: 28px 32px; |
| 148 | + gap: 20px; |
| 149 | + overflow-y: auto; |
| 150 | +} |
| 151 | + |
| 152 | +.dropzone { |
| 153 | + border: 1.5px dashed var(--border-2); |
| 154 | + border-radius: var(--radius-lg); |
| 155 | + padding: 48px 32px; |
| 156 | + display: flex; |
| 157 | + flex-direction: column; |
| 158 | + align-items: center; |
| 159 | + justify-content: center; |
| 160 | + gap: 12px; |
| 161 | + cursor: pointer; |
| 162 | + transition: all var(--ease); |
| 163 | + background: var(--bg-1); |
| 164 | + position: relative; |
| 165 | +} |
| 166 | + |
| 167 | +.dropzone:hover, .dropzone.dragover { |
| 168 | + border-color: var(--accent); |
| 169 | + background: var(--accent-glow); |
| 170 | +} |
| 171 | + |
| 172 | +.dropzone-icon { |
| 173 | + width: 48px; |
| 174 | + height: 48px; |
| 175 | + border-radius: 12px; |
| 176 | + background: var(--bg-3); |
| 177 | + border: 1px solid var(--border-2); |
| 178 | + display: flex; |
| 179 | + align-items: center; |
| 180 | + justify-content: center; |
| 181 | + color: var(--accent-2); |
| 182 | + transition: all var(--ease); |
| 183 | +} |
| 184 | + |
| 185 | +.dropzone:hover .dropzone-icon, .dropzone.dragover .dropzone-icon { |
| 186 | + background: var(--accent-glow); |
| 187 | + border-color: var(--accent); |
| 188 | +} |
| 189 | + |
| 190 | +.dropzone-text { color: var(--text-2); font-size: 12px; text-align: center; line-height: 1.6; } |
| 191 | +.dropzone-text strong { color: var(--text); font-weight: 500; display: block; margin-bottom: 4px; font-size: 14px; font-family: 'Cabinet Grotesk', sans-serif; } |
| 192 | + |
| 193 | +.file-info { |
| 194 | + display: none; |
| 195 | + background: var(--bg-2); |
| 196 | + border: 1px solid var(--border); |
| 197 | + border-radius: var(--radius-lg); |
| 198 | + padding: 16px 20px; |
| 199 | + align-items: center; |
| 200 | + gap: 14px; |
| 201 | +} |
| 202 | + |
| 203 | +.file-info.visible { display: flex; } |
| 204 | + |
| 205 | +.file-icon { |
| 206 | + width: 40px; |
| 207 | + height: 40px; |
| 208 | + border-radius: 10px; |
| 209 | + background: var(--bg-3); |
| 210 | + border: 1px solid var(--border-2); |
| 211 | + display: flex; |
| 212 | + align-items: center; |
| 213 | + justify-content: center; |
| 214 | + font-size: 10px; |
| 215 | + font-weight: 500; |
| 216 | + color: var(--accent-2); |
| 217 | + letter-spacing: 0.5px; |
| 218 | + flex-shrink: 0; |
| 219 | +} |
| 220 | + |
| 221 | +.file-meta { flex: 1; min-width: 0; } |
| 222 | +.file-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; } |
| 223 | +.file-size { font-size: 11px; color: var(--text-2); } |
| 224 | + |
| 225 | +.clear-btn { |
| 226 | + width: 30px; |
| 227 | + height: 30px; |
| 228 | + border-radius: 6px; |
| 229 | + border: 1px solid var(--border); |
| 230 | + background: transparent; |
| 231 | + color: var(--text-2); |
| 232 | + cursor: pointer; |
| 233 | + display: flex; |
| 234 | + align-items: center; |
| 235 | + justify-content: center; |
| 236 | + transition: all var(--ease); |
| 237 | + flex-shrink: 0; |
| 238 | +} |
| 239 | + |
| 240 | +.clear-btn:hover { background: var(--red); color: #fff; border-color: var(--red); } |
| 241 | + |
| 242 | +.format-section { display: flex; flex-direction: column; gap: 10px; } |
| 243 | + |
| 244 | +.section-label { |
| 245 | + font-size: 9px; |
| 246 | + letter-spacing: 2px; |
| 247 | + text-transform: uppercase; |
| 248 | + color: var(--text-3); |
| 249 | +} |
| 250 | + |
| 251 | +.format-grid { |
| 252 | + display: flex; |
| 253 | + flex-wrap: wrap; |
| 254 | + gap: 6px; |
| 255 | +} |
| 256 | + |
| 257 | +.fmt-btn { |
| 258 | + padding: 6px 12px; |
| 259 | + border-radius: 6px; |
| 260 | + border: 1px solid var(--border); |
| 261 | + background: var(--bg-2); |
| 262 | + color: var(--text-2); |
| 263 | + font-family: 'IBM Plex Mono', monospace; |
| 264 | + font-size: 11px; |
| 265 | + cursor: pointer; |
| 266 | + transition: all var(--ease); |
| 267 | + text-transform: uppercase; |
| 268 | + letter-spacing: 0.5px; |
| 269 | +} |
| 270 | + |
| 271 | +.fmt-btn:hover { border-color: var(--border-2); color: var(--text); } |
| 272 | +.fmt-btn.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent-2); } |
| 273 | + |
| 274 | +.convert-btn { |
| 275 | + padding: 13px 24px; |
| 276 | + border-radius: var(--radius); |
| 277 | + border: none; |
| 278 | + background: var(--accent); |
| 279 | + color: #fff; |
| 280 | + font-family: 'Cabinet Grotesk', sans-serif; |
| 281 | + font-weight: 700; |
| 282 | + font-size: 14px; |
| 283 | + cursor: pointer; |
| 284 | + transition: all var(--ease); |
| 285 | + display: flex; |
| 286 | + align-items: center; |
| 287 | + justify-content: center; |
| 288 | + gap: 8px; |
| 289 | + letter-spacing: 0.3px; |
| 290 | +} |
| 291 | + |
| 292 | +.convert-btn:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(123,108,255,0.3); } |
| 293 | +.convert-btn:active { transform: translateY(0); } |
| 294 | +.convert-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; } |
| 295 | + |
| 296 | +.progress-bar { |
| 297 | + display: none; |
| 298 | + height: 3px; |
| 299 | + background: var(--bg-3); |
| 300 | + border-radius: 99px; |
| 301 | + overflow: hidden; |
| 302 | +} |
| 303 | + |
| 304 | +.progress-bar.visible { display: block; } |
| 305 | + |
| 306 | +.progress-fill { |
| 307 | + height: 100%; |
| 308 | + background: linear-gradient(90deg, var(--accent), var(--green)); |
| 309 | + border-radius: 99px; |
| 310 | + width: 0%; |
| 311 | + transition: width 0.4s ease; |
| 312 | +} |
| 313 | + |
| 314 | +.progress-fill.indeterminate { |
| 315 | + width: 40%; |
| 316 | + animation: slide 1.2s ease-in-out infinite; |
| 317 | +} |
| 318 | + |
| 319 | +@keyframes slide { |
| 320 | + 0% { transform: translateX(-100%); } |
| 321 | + 100% { transform: translateX(350%); } |
| 322 | +} |
| 323 | + |
| 324 | +.status { |
| 325 | + display: none; |
| 326 | + align-items: center; |
| 327 | + gap: 10px; |
| 328 | + padding: 12px 16px; |
| 329 | + border-radius: var(--radius); |
| 330 | + font-size: 12px; |
| 331 | + animation: fadeIn 0.2s ease; |
| 332 | +} |
| 333 | + |
| 334 | +@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } |
| 335 | + |
| 336 | +.status.visible { display: flex; } |
| 337 | +.status.success { background: rgba(79,255,176,0.08); border: 1px solid rgba(79,255,176,0.2); color: var(--green); } |
| 338 | +.status.error { background: rgba(255,92,122,0.08); border: 1px solid rgba(255,92,122,0.2); color: var(--red); } |
| 339 | + |
| 340 | +.status-open { |
| 341 | + margin-left: auto; |
| 342 | + padding: 4px 10px; |
| 343 | + border-radius: 4px; |
| 344 | + border: 1px solid currentColor; |
| 345 | + background: transparent; |
| 346 | + color: inherit; |
| 347 | + font-family: 'IBM Plex Mono', monospace; |
| 348 | + font-size: 10px; |
| 349 | + cursor: pointer; |
| 350 | + opacity: 0.7; |
| 351 | + transition: opacity var(--ease); |
| 352 | +} |
| 353 | + |
| 354 | +.status-open:hover { opacity: 1; } |
0 commit comments