:root {
    /* FullStack-ish palette (afgestemd op blauw + grijs uit je logo) */
    --bg: #070A12;
    --bg2: #0A1022;
    --card: rgba(15, 23, 42, .72);
    --cardBorder: rgba(255,255,255,.10);
    --text: #EAF0FF;
    --muted: rgba(234,240,255,.68);
    --accent: #16A3FF; /* FullStack-blauw */
    --accent2: #0B7ED6;
    --accentGlow: rgba(22,163,255,.22);
    --neutral: rgba(234,240,255,.10);
    --neutral2: rgba(234,240,255,.14);
    --success: #10B981;
    --danger: #EF4444;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 600px at 16% 0%, rgba(22,163,255,.22), transparent 60%), radial-gradient(1100px 650px at 88% 12%, rgba(148,163,184,.16), transparent 55%), linear-gradient(180deg, var(--bg), var(--bg2));
}

a {
    color: inherit;
}

.page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    background: rgba(7,10,18,.55);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

    .brand img {
        height: 34px; /* pas aan naar wens */
        width: auto;
        display: block;
    }

.help {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
}

    .help:hover {
        color: var(--text);
        border-color: rgba(255,255,255,.10);
        background: rgba(255,255,255,.04);
    }

/* Card */
.card {
    width: min(760px, calc(100% - 32px));
    margin: 22px auto 0;
    background: var(--card);
    border: 1px solid var(--cardBorder);
    border-radius: var(--radius);
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.cardHeader {
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: .2px;
}

.sub {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

/* Content */
.cardBody {
    padding: 18px 24px 24px;
}

.tabs {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.18);
    margin: 10px 0 18px;
}

.tab {
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
    transition: .15s ease;
}

    .tab.active {
        color: var(--text);
        background: rgba(255,255,255,.08);
        box-shadow: 0 0 0 3px rgba(22,163,255,.10);
    }

    .tab:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px var(--accentGlow);
    }

.label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
}

.textarea, .input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(2,6,23,.45);
    color: var(--text);
    padding: 12px 12px;
    outline: none;
    transition: .15s ease;
}

.textarea {
    min-height: 190px;
    resize: vertical;
}

    .textarea::placeholder {
        color: rgba(234,240,255,.45);
    }

    .textarea:focus, .input:focus {
        border-color: rgba(22,163,255,.55);
        box-shadow: 0 0 0 4px var(--accentGlow);
    }

.hint {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

/* Buttons */
.btnRow {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    color: var(--text);
    cursor: pointer;
    transition: .15s ease;
    user-select: none;
}

    .btn:hover {
        background: rgba(255,255,255,.10);
    }

    .btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px var(--accentGlow);
    }

    .btn.primary {
        flex: 1 1 260px;
        border-color: rgba(22,163,255,.55);
        background: linear-gradient(180deg, rgba(22,163,255,.95), rgba(11,126,214,.92));
        box-shadow: 0 10px 26px rgba(22,163,255,.18);
    }

        .btn.primary:hover {
            filter: brightness(1.02);
            box-shadow: 0 14px 34px rgba(22,163,255,.22);
        }

        .btn.primary:disabled {
            opacity: .55;
            cursor: not-allowed;
            filter: none;
            box-shadow: none;
        }

/* Result */
.result {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.resultTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ok {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.pill {
    font-size: 12px;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,.10);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
}

.linkRow {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

    .linkRow .input {
        flex: 1 1 340px;
    }

/* Footer */
.foot {
    margin-top: auto;
    padding: 18px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

    .foot a {
        color: rgba(22,163,255,.95);
        text-decoration: none;
    }

        .foot a:hover {
            text-decoration: underline;
        }

/* Small screens */
@media (max-width: 520px) {
    h1 {
        font-size: 24px;
    }

    .top {
        padding: 16px 16px;
    }

    .cardHeader, .cardBody {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand img {
        height: 30px;
    }
}


/* Extra UI helpers */
.metaRow {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.counter {
    color: var(--muted);
    font-size: 13px;
}

.fieldError {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(239,68,68,.35);
    background: rgba(239,68,68,.10);
    color: rgba(255,255,255,.92);
    font-size: 13px;
}

.fileInput {
    display: block;
    margin: 10px auto 0;
    max-width: 320px;
    color: var(--muted);
}

.fileMeta {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.drop.drag {
    border-color: rgba(22,163,255,.55);
    box-shadow: 0 0 0 4px rgba(22,163,255,.18);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: var(--text);
    font-size: 13px;
}

.alertDanger {
    border-color: rgba(239,68,68,.35);
    background: rgba(239,68,68,.10);
}

/* Maak logo groter en centreer in de header.
         Kleine, lokale overrides zodat globale site.css niet meteen aangepast hoeft te worden. */
.top {
    display: flex;
    align-items: center;
    justify-content: center; /* centreert de inhoud horizontaal */
    padding: 1rem 0;
}

    .top .brand {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .top .brand img {
            width: 400px; /* standaard grootte */
            max-width: 80%; /* voorkom overflow op kleine schermen */
            height: auto;
            display: block;
        }

/* Grotere schermen: iets groter logo */
@media (min-width: 768px) {
    .top .brand img {
        width: 400px;
    }
}

/* Indien je in de toekomst een help-link terugzet, behoud dan ruimte zonder layout te breken */
.top .help {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Custom styling for the file-choose button */
.drop {
    position: relative;
}

/* hide native file input but keep it available to the label */
.fileInput {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* styled "fake" file button (label targets the hidden input) */
.fileBtn {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0b1a26; /* dark text to match light button */
    background: linear-gradient(180deg, #ffffff 0%, #e6f0fb 100%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.6);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
    margin-right: 0.5rem;
    text-align: center;
    user-select: none;
}

    .fileBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.7);
    }

    .fileBtn:active {
        transform: translateY(0);
    }

    /* small helper text next to button */
    .fileBtn + .fileLabelText {
        color: #cfd8e6;
        font-size: 0.95rem;
    }

/* keep layout responsive */
@media (min-width: 768px) {
    .fileBtn {
        padding: 0.5rem 1.1rem;
        font-size: 1rem;
    }
}