:root {
    --bg-body: #020617;
    --bg-card: #0b1224;
    --bg-panel: #0f172a;
    --accent: #22c55e;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.08), transparent 28%),
        #020617;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px 32px;
}

.back-button {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #020617;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.35);
}

.back-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(34, 197, 94, 0.45);
}

main {
    width: min(960px, 100%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.window {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.4), 0 0 0 1px rgba(34,197,94,0.1);
}

.hidden {
    display: none !important;
}

#helperText {
    margin-top: 12px;
    color: var(--muted);
}

#helperText ul {
    padding-left: 18px;
    margin-top: 6px;
}

input[type="file"] {
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    width: 100%;
}

button, #downloadjsonbtn {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #020617;
    border: 1px solid #16a34a;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(34,197,94,0.25);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button:hover, #downloadjsonbtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(34,197,94,0.35);
}

#jsonOutput {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    max-height: 380px;
    overflow: auto;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

footer {
    width: 100%;
    text-align: center;
    padding: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: var(--bg-panel);
    margin: 10% auto;
    padding: 24px;
    border: 1px solid var(--border);
    width: 80%;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.close {
    color: var(--muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--text);
}
