/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.topbar {
    background: #4f46e5;
    padding: 0 2rem;
    height: 58px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.topbar a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
}

.topbar a:hover { color: #fff; }

.topbar-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.topbar-user span {
    color: rgba(255,255,255,.85);
    font-size: .85rem;
}

/* ── Avatar ──────────────────────────────────────────────────────────────── */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
}

.avatar-sm { width: 24px; height: 24px; }

/* ── Pagina container ────────────────────────────────────────────────────── */
.container {
    max-width: 700px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

/* ── Kaart ───────────────────────────────────────────────────────────────── */
.kaart {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    margin-bottom: 1.5rem;
}

h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; color: #1e293b; }
h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; color: #1e293b; }

/* ── Saldo widget ────────────────────────────────────────────────────────── */
.saldo-widget {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-radius: 14px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.saldo-widget .saldo-getal  { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.saldo-widget .saldo-label  { font-size: .85rem; opacity: .8; margin-bottom: .2rem; }
.saldo-widget .saldo-sub    { font-size: .8rem; opacity: .65; margin-top: .2rem; }

.token-qr {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    object-fit: contain;
}

/* ── Formulier ───────────────────────────────────────────────────────────── */
.veld { margin-bottom: 1.2rem; }

label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: .4rem;
}

input[type=email],
input[type=password],
input[type=number],
textarea {
    width: 100%;
    padding: .65rem .9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    color: #0f172a;
    transition: border-color .15s, box-shadow .15s;
}

input:focus, textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.hint { font-size: .8rem; color: #94a3b8; margin-top: .3rem; }

/* ── Knoppen ─────────────────────────────────────────────────────────────── */
button[type=submit] {
    padding: .65rem 1.75rem;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

button[type=submit]:hover { background: #4338ca; }

a.knop-secundair {
    display: inline-block;
    padding: .65rem 1.5rem;
    background: #e2e8f0;
    color: #475569;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

a.knop-secundair:hover { background: #cbd5e1; }

/* ── Meldingen ───────────────────────────────────────────────────────────── */
.melding {
    padding: .85rem 1rem;
    border-radius: 8px;
    font-size: .95rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.melding-fout   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.melding-succes { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* ── Transactielijst ─────────────────────────────────────────────────────── */
ul.tx-lijst { list-style: none; }

ul.tx-lijst li { border-bottom: 1px solid #f1f5f9; }
ul.tx-lijst li:last-child { border-bottom: none; }

ul.tx-lijst li a {
    display: block;
    padding: .9rem .25rem;
    text-decoration: none;
    color: #334155;
    font-size: .93rem;
    transition: color .1s;
}

ul.tx-lijst li a:hover { color: #4f46e5; }

/* ── Transactiedetails ───────────────────────────────────────────────────── */
.detail-rij {
    display: flex;
    padding: .8rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-rij:last-child { border-bottom: none; }
.detail-label  { color: #64748b; font-size: .875rem; width: 110px; flex-shrink: 0; }
.detail-waarde { color: #1e293b; font-size: .95rem; }

/* ── Admin-tabel ─────────────────────────────────────────────────────────── */
table.admin-tabel { width: 100%; border-collapse: collapse; font-size: .9rem; }

table.admin-tabel th {
    text-align: left;
    padding: .6rem .5rem;
    color: #64748b;
    font-size: .8rem;
    text-transform: uppercase;
    border-bottom: 2px solid #e2e8f0;
}

table.admin-tabel td {
    padding: .65rem .5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

table.admin-tabel tr:last-child td { border-bottom: none; }

.badge-admin {
    background: #ede9fe;
    color: #6d28d9;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 999px;
    text-transform: uppercase;
}

/* ── Leeg scherm ─────────────────────────────────────────────────────────── */
.leeg { text-align: center; padding: 2.5rem 1rem; color: #94a3b8; }
