:root {
    --bg: #061017;
    --panel: rgba(8, 19, 30, 0.9);
    --panel-alt: rgba(4, 12, 22, 0.96);
    --text: #dff6ff;
    --muted: #7ea6b7;
    --line: rgba(86, 219, 255, 0.16);
    --accent: #56dbff;
    --accent-2: #9dffb0;
    --input-error-color: #56dbff;
    --shadow: 0 20px 44px rgba(0, 0, 0, 0.44);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Sora', sans-serif; scrollbar-width: none; }
* ::-webkit-scrollbar { display: none; }
body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; color: var(--text); position: relative; overflow-y: auto; flex-direction: column; background: linear-gradient(rgba(86, 219, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(86, 219, 255, 0.06) 1px, transparent 1px), radial-gradient(circle at top right, rgba(86, 219, 255, 0.12), transparent 28%), radial-gradient(circle at bottom left, rgba(157, 255, 176, 0.08), transparent 28%), #061017; background-size: 36px 36px, 36px 36px, auto, auto, auto; }
body:before, body:after { content: ''; position: fixed; z-index: -2; pointer-events: none; filter: blur(72px); }
body:before { top: -22%; left: -10%; width: 50vw; height: 50vw; min-width: 400px; min-height: 400px; background: radial-gradient(circle, rgba(86, 219, 255, 0.16) 0%, transparent 60%); }
body:after { bottom: -22%; right: -10%; width: 58vw; height: 58vw; min-width: 480px; min-height: 480px; background: radial-gradient(circle, rgba(157, 255, 176, 0.08) 0%, transparent 60%); }
.app-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; flex: 1; gap: 2.5rem; }
.app-header { text-align: center; animation: fadeDown 0.6s ease-out forwards; }
.logo-wrapper { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.main-logo { width: clamp(150px, 25vw, 280px); height: auto; animation: logoPulse 3.8s infinite alternate ease-in-out; }
@keyframes logoPulse { from { filter: drop-shadow(0 0 18px rgba(86,219,255,0.14)); transform: scale(1); } to { filter: drop-shadow(0 0 36px rgba(86,219,255,0.28)); transform: scale(1.02); } }
.main-title { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 800; letter-spacing: 2px; color: rgba(223,246,255,0.68); margin-bottom: 0.25rem; }
.tagline { font-size: 1.15rem; color: var(--muted); font-weight: 500; letter-spacing: 0.3px; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.container { display: flex; flex-direction: row; justify-content: center; align-items: stretch; gap: 2rem; width: 100%; }
.glass-card, .upload-card { background: linear-gradient(180deg, rgba(10, 22, 34, 0.96), rgba(5, 12, 20, 0.94)); border-radius: 0.85rem; border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 0 0 1px rgba(86,219,255,0.05); text-align: center; }
.glass-card { max-width: 30rem; width: 100%; padding: 2.5rem; }
.upload-card { max-width: 24rem; width: 100%; padding: 2.5rem 2rem; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.upload-card h2 { margin-bottom: 1.2rem; font-size: 1.5rem; letter-spacing: 0.04em; }
input, select { width: 100%; margin-bottom: 1.5rem; padding: 12px; font-size: 1rem; border-radius: 4px; border: 1px solid var(--line); outline: none; background: rgba(2, 8, 15, 0.96); color: var(--text); }
input::placeholder, #extensionInput::placeholder { color: rgba(223,246,255,0.42); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(2, 8, 15, 0.96) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    transition: background-color 5000s ease-in-out 0s;
}
.browser-selection { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.browser-label { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 15px; width: 70px; height: 70px; border-radius: 4px; cursor: pointer; border: 1px solid rgba(86,219,255,0.16); background: rgba(255,255,255,0.02); transition: all 0.25s ease; }
.browser-label:hover, .browser-input:checked + .browser-label { border-color: rgba(86,219,255,0.5); box-shadow: inset 0 0 0 1px rgba(86,219,255,0.18), 0 0 24px rgba(86,219,255,0.08); transform: translateY(-2px); }
.browser-input { display: none; }
.browser-input:focus-visible + .browser-label { outline: 2px solid rgba(86,219,255,0.4); outline-offset: 3px; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid rgba(86,219,255,0.4); outline-offset: 2px; }
option { background: #08131d; color: var(--text); }
::selection { background-color: rgba(86,219,255,0.2); color: var(--text); }
button, .download-btn { width: 100%; padding: 12px; font-size: 1rem; border-radius: 4px; border: 1px solid rgba(86,219,255,0.18); outline: none; color: #04131c; font-weight: 700; cursor: pointer; margin-top: 0.75rem; margin-bottom: 0.3rem; background: linear-gradient(135deg, #56dbff 0%, #9dffb0 100%); box-shadow: 0 16px 28px rgba(0,0,0,0.2); transition: all 0.25s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; }
button:hover, button:active, .download-btn:hover, .download-btn:active { transform: translateY(-1px); filter: brightness(1.04); }
.upload-card button { margin-top: 1rem; background: linear-gradient(135deg, #0f2734, #143849); color: var(--text); }
#convertButton:disabled { opacity: 0.75; pointer-events: none; box-shadow: none; }
.btn-spinner { width: 18px; height: 18px; border: 2px solid rgba(4,19,28,0.22); border-top-color: currentColor; border-radius: 50%; animation: spin 0.6s linear infinite; }
.upload-card .btn-spinner { border-color: rgba(223,246,255,0.32); }
@keyframes spin { to { transform: rotate(360deg); } }
button.loading, .download-btn.loading { pointer-events: none; opacity: 0.85; }
button.loading .btn-text, .download-btn.loading .btn-text { display: none; }
button.loading .btn-spinner, .download-btn.loading .btn-spinner { display: inline-block; }
.drop-zone { border: 1px dashed rgba(86,219,255,0.28); padding: 1.75rem; cursor: pointer; border-radius: 4px; transition: 0.25s ease-in-out; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,0.015); }
.drop-zone p { word-wrap: break-word; max-width: 90%; text-align: center; font-size: 0.9rem; color: var(--muted); }
.drop-zone:hover { background: rgba(86,219,255,0.04); }
.drop-zone img { margin-bottom: 0.75rem; }
.file-name { margin-top: 0.5rem; font-size: 0.87rem; color: var(--muted); }
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; z-index: 1000; pointer-events: none; }
.toast { pointer-events: auto; padding: 0.95rem 1.15rem; border-radius: 8px; font-size: 0.89rem; line-height: 1.45; color: var(--text); background: rgba(8,19,30,0.98); border: 1px solid var(--line); box-shadow: 0 18px 34px rgba(0,0,0,0.36), inset 0 0 0 1px rgba(86,219,255,0.05), 0 0 28px rgba(86,219,255,0.09); backdrop-filter: blur(12px); animation: toastIn 0.3s cubic-bezier(.2,.8,.2,1) forwards; max-width: 22rem; word-break: break-word; }
.toast.toast-error { color: #ffd6d6; background: rgba(38, 15, 22, 0.98); border-color: rgba(255,123,123,0.34); box-shadow: 0 18px 34px rgba(0,0,0,0.36), inset 0 0 0 1px rgba(255,123,123,0.05), 0 0 30px rgba(255,123,123,0.12); }
.toast.toast-success { color: #dfffe7; background: rgba(9, 34, 33, 0.98); border-color: rgba(157,255,176,0.34); box-shadow: 0 18px 34px rgba(0,0,0,0.36), inset 0 0 0 1px rgba(157,255,176,0.05), 0 0 30px rgba(157,255,176,0.12); }
.toast.toast-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(1rem) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(0.75rem) scale(0.98); } }
.site-footer { margin-top: 3rem; padding-bottom: 2rem; display: flex; justify-content: center; width: 100%; }
.footer-glass-pill { display: inline-flex; align-items: center; gap: 1rem; padding: 0.6rem 1.25rem; background: rgba(8,19,30,0.88); border-radius: 4px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: all 0.25s ease; text-decoration: none; color: var(--text); cursor: pointer; }
.footer-glass-pill:hover { transform: translateY(-2px); border-color: rgba(86,219,255,0.4); }
.footer-text { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }
.footer-divider { width: 4px; height: 4px; border-radius: 0; background: var(--accent); }
.footer-credit { font-size: 0.8rem; color: rgba(223,246,255,0.5); letter-spacing: 0.04em; }
@media (max-width: 1024px) { .app-wrapper { gap: 2rem; } .container { flex-direction: column; align-items: center; gap: 2rem; } .glass-card, .upload-card { max-width: 30rem; width: 100%; } .upload-card { align-self: center; } }
@media (max-width: 480px) { .app-wrapper { gap: 1.5rem; } .container { gap: 1.5rem; } .glass-card, .upload-card { padding: 2rem 1.25rem; } .browser-selection { gap: 0.75rem; flex-wrap: wrap; } .drop-zone { padding: 1.5rem 1rem; } .toast-container { left: 1rem; right: 1rem; } .toast { max-width: 100%; } }
