:root {
    --achtergrond: #12121c;
    --paneel: #1b1b2a;
    --paneel-rand: #2a2a3d;
    --tekst: #f2f2f5;
    --tekst-zacht: #a6a6b8;
    --accent: #e8a33d;
    --goed: #2ecc71;
    --fout: #e05a5a;
    font-synthesis: none;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--achtergrond);
    color: var(--tekst);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.15; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.25rem; }

.pagina { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.kop { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.kop .sub { color: var(--tekst-zacht); font-size: .9rem; }

.paneel {
    background: var(--paneel);
    border: 1px solid var(--paneel-rand);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.1rem;
}

.rij { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.rij-tussen { display: flex; gap: .6rem; align-items: center; justify-content: space-between; }
.kolommen { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }

button, .knop {
    font: inherit;
    border: 1px solid var(--paneel-rand);
    background: #262639;
    color: var(--tekst);
    border-radius: 8px;
    padding: .55rem .9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
button:hover, .knop:hover { border-color: var(--accent); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.primair { background: var(--accent); border-color: var(--accent); color: #1b1b2a; font-weight: 600; }
button.gevaar { border-color: var(--fout); color: var(--fout); }
button.klein { padding: .3rem .55rem; font-size: .85rem; }

input, select, textarea {
    font: inherit;
    background: #101019;
    color: var(--tekst);
    border: 1px solid var(--paneel-rand);
    border-radius: 8px;
    padding: .55rem .7rem;
}
input[type=color] { padding: .2rem; width: 3.2rem; height: 2.4rem; }
label { display: block; font-size: .85rem; color: var(--tekst-zacht); margin-bottom: .25rem; }
.veld { margin-bottom: .8rem; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--paneel-rand); }
th { color: var(--tekst-zacht); font-weight: 500; font-size: .85rem; }

.melding { padding: .7rem .9rem; border-radius: 8px; margin-bottom: 1rem; }
.melding.fout { background: rgba(224, 90, 90, .15); border: 1px solid var(--fout); }
.melding.goed { background: rgba(46, 204, 113, .12); border: 1px solid var(--goed); }
.zacht { color: var(--tekst-zacht); font-size: .9rem; }

.badge {
    display: inline-block; padding: .15rem .5rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700; color: #12121c;
}
.klasse-a { background: var(--goed); color: #12121c; }
.klasse-b { background: #40405a; color: var(--tekst-zacht); }

/* Banddisplay */
.nu { border-left: 5px solid var(--accent); }
.volgende { border-left: 5px solid #5bc0de; }
.groot { font-size: 2rem; font-weight: 700; }
.middel { font-size: 1.2rem; }

/* Publieksscherm */
.scherm {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; padding: 2rem;
}
.scherm .naam { font-size: clamp(2rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.02em; }
.scherm .decennium { font-size: clamp(4rem, 20vw, 14rem); font-weight: 900; line-height: .9; }
.scherm .titel { font-size: clamp(1.2rem, 3.5vw, 2.5rem); color: var(--tekst-zacht); margin-top: 1rem; }
.scherm .qr { position: fixed; right: 2rem; bottom: 2rem; text-align: center; }
.scherm .qr img { width: 150px; border-radius: 10px; display: block; }
.wissel { animation: opkomst .6s ease-out; }
@keyframes opkomst {
    from { opacity: 0; transform: translateY(28px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

#blazor-error-ui {
    background: var(--fout); color: #fff; display: none;
    position: fixed; bottom: 0; left: 0; right: 0; padding: .7rem 1rem; z-index: 1000;
}
