:root {
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #f1f5f9;
    --secondary-hover: #e2e8f0;
    --danger: #dc2626;
    --warning-bg: #fef3c7;
    --warning-border: #fde68a;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 60%, #334155 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.5;
}

.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.site-header { text-align: center; color: #fff; margin-bottom: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand-mark { font-size: 1.4rem; }
.tagline { color: #cbd5e1; margin: .35rem 0 0; font-size: .95rem; }

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
.card-center { text-align: center; }

/* Tabs */
.tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.tab {
    background: none; border: none; padding: .6rem .9rem; cursor: pointer;
    font-size: .95rem; font-weight: 600; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }

/* Velden */
.field { display: block; margin-bottom: 1rem; }
.field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field-inline { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.inline { display: flex; gap: .5rem; }

.input {
    width: 100%; padding: .6rem .75rem; border: 1px solid var(--border);
    border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
.input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.input-small { width: auto; max-width: 8rem; }
.textarea { resize: vertical; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.hint { display: block; font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.error-text { color: var(--danger); }

/* Generator */
.generator { border: 1px solid var(--border); border-radius: 8px; padding: .5rem .75rem; margin-bottom: 1rem; }
.generator summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.generator-body { padding-top: .75rem; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: .75rem; font-size: .9rem; }
.checkbox-row label { display: inline-flex; align-items: center; gap: .35rem; }

/* Opties */
.options { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .5rem; }
.checkbox-line { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: .95rem; }

/* Knoppen */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .65rem 1.1rem; border-radius: 8px; border: 1px solid transparent;
    font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: background .15s ease;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--secondary-hover); }
.btn-text { background: none; color: var(--primary); padding: .4rem; }
.btn-block { width: 100%; margin-top: .5rem; }
.btn-small { padding: .35rem .7rem; font-size: .85rem; }

/* Bestandslijsten (upload-overzicht en download-lijst) */
.file-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.file-list li {
    font-size: .9rem; padding: .5rem .75rem; border: 1px solid var(--border);
    border-radius: 8px; margin-bottom: .4rem; background: var(--secondary);
    word-break: break-all;
}
.file-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.file-item-name { flex: 1; }

/* Resultaat */
.result { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.result-label { font-weight: 600; margin: 0 0 .5rem; }
.link-row { display: flex; gap: .5rem; margin-bottom: .5rem; }
.link-row .input { flex: 1; }
.result-meta { font-size: .85rem; color: var(--muted); }
.result-warning { font-size: .85rem; color: var(--muted); background: var(--secondary); padding: .6rem .75rem; border-radius: 8px; }
.result-warning code { background: #fff; padding: 0 .25rem; border-radius: 4px; }

/* Banners / berichten */
.banner { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.banner-warning { background: var(--warning-bg); border: 1px solid var(--warning-border); }
.error { color: var(--danger); font-size: .9rem; margin-top: .75rem; }
.muted { color: var(--muted); }

.view-title { font-size: 1.3rem; margin: 0 0 .75rem; }
.intro { margin: -.25rem 0 1.25rem; font-size: .95rem; }
.optional { color: var(--muted); font-weight: 400; font-size: .85em; }
.view-expiry { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.big-icon { font-size: 3rem; margin-bottom: .5rem; }

.site-footer { text-align: center; color: #94a3b8; font-size: .8rem; margin-top: 1.5rem; }

.is-hidden { display: none !important; }

@media (max-width: 480px) {
    .link-row { flex-direction: column; }
    .input-small { max-width: 100%; }
}
