@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-a: #081020;
    --bg-b: #0f1b34;
    --card: rgba(7, 15, 29, 0.78);
    --line: rgba(133, 198, 255, 0.25);
    --text: #ebf2ff;
    --muted: #9ab1d9;
    --accent: #5ec4ff;
    --accent-2: #7dffbf;
    --danger: #ff7474;
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(1400px circle at 15% 15%, #17366a 0%, transparent 50%),
        radial-gradient(1200px circle at 85% 85%, #0c6a57 0%, transparent 45%),
        linear-gradient(140deg, var(--bg-a), var(--bg-b));
    overflow-x: hidden;
}

.bg-blur {
    position: fixed;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.bg-one {
    width: 340px;
    height: 340px;
    top: -120px;
    right: -60px;
    background: #6bc3ff;
}

.bg-two {
    width: 420px;
    height: 420px;
    bottom: -180px;
    left: -110px;
    background: #6dffcb;
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 14px;
}

.card {
    width: min(720px, 100%);
    border: 1px solid var(--line);
    background: var(--card);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
    animation: rise 0.6s ease-out;
}

h1 {
    margin: 0 0 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.1;
}

.dropzone {
    border: 2px dashed rgba(94, 196, 255, 0.5);
    border-radius: 18px;
    padding: 16px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    background: rgba(13, 26, 50, 0.45);
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.active {
    border-color: var(--accent-2);
    transform: translateY(-1px);
    background: rgba(13, 30, 58, 0.68);
}

.drop-main {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
}

.file-name {
    margin: 6px 0 0;
    color: var(--accent);
    font-size: 13px;
    word-break: break-all;
}

.convert-btn,
.download-link {
    margin-top: 14px;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: "Space Grotesk", sans-serif;
}

.convert-btn {
    background: linear-gradient(90deg, #63d0ff, #7dffbf);
    color: #071422;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.convert-btn:hover {
    transform: translateY(-1px);
}

.convert-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.status {
    margin-top: 14px;
    border: 1px solid rgba(125, 255, 191, 0.4);
    border-radius: 12px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 40, 62, 0.58);
}

.status.error {
    border-color: rgba(255, 116, 116, 0.65);
}

#statusText {
    margin: 0;
    color: #dce8ff;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.download-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: #f8fbff;
    color: #05203a;
}

.notes {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.55;
}

.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .card {
        padding: 20px;
        border-radius: 20px;
    }

    .drop-main {
        font-size: 15px;
    }
}
