/* Prikklok: groot, eenvoudig, voor goedkope tablets en gsm's. */
:root {
    --achtergrond: #10243e;
    --vlak: #1a3557;
    --vlak-licht: #24476f;
    --tekst: #ffffff;
    --tekst-zacht: #b9c7da;
    --groen: #1f9d55;
    --oranje: #d9822b;
    --blauw: #2f6fcf;
    --rood: #c94040;
    --fout: #ff8a8a;
    --accent: #5fbb1e;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    height: 100%;
    background: var(--achtergrond);
    color: var(--tekst);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
}

#app { display: flex; flex-direction: column; height: 100%; }

.kop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--vlak);
    border-bottom: 4px solid var(--accent);
}
.bedrijf { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; }
.logo { max-height: 52px; max-width: 220px; background: #fff; border-radius: 8px; padding: 4px 8px; }
.klok { text-align: right; }
#klok-tijd { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
#klok-datum { font-size: 14px; color: var(--tekst-zacht); }

.inhoud { flex: 1; position: relative; overflow: hidden; }
.scherm { display: none; position: absolute; inset: 0; padding: 16px 24px; overflow-y: auto; }
.scherm.actief { display: flex; }

.voet {
    display: flex;
    justify-content: space-between;
    padding: 6px 16px;
    font-size: 12px;
    color: var(--tekst-zacht);
    background: var(--vlak);
}
.verbinding { color: var(--fout); font-weight: 600; }

/* Pincode */
#scherm-pin { gap: 32px; justify-content: center; }
.pin-kolom { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; }
.pin-kolom h1 { font-size: 24px; font-weight: 500; margin: 8px 0 16px; text-align: center; }
.pin-bolletjes { display: flex; gap: 20px; margin-bottom: 8px; }
.pin-bolletjes span {
    width: 22px; height: 22px; border-radius: 50%;
    border: 3px solid var(--tekst-zacht);
    transition: background .1s;
}
.pin-bolletjes span.vol { background: var(--accent); border-color: var(--accent); }
.pin-fout { min-height: 28px; color: var(--fout); font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 8px; }

.toetsen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.toetsen button {
    height: 76px;
    font-size: 34px;
    font-weight: 600;
    color: var(--tekst);
    background: var(--vlak-licht);
    border: 0;
    border-radius: 14px;
    cursor: pointer;
}
.toetsen button:active { background: var(--blauw); }
.toetsen .toets-klein { font-size: 18px; background: var(--vlak); }
.toetsen .toets-klein.aan { background: var(--blauw); }

.aanwezig {
    width: 300px;
    background: var(--vlak);
    border-radius: 14px;
    padding: 12px 16px;
    overflow-y: auto;
    align-self: stretch;
}
.aanwezig h2 { font-size: 16px; margin: 4px 0 8px; color: var(--tekst-zacht); font-weight: 600; }
.aanwezig ul { list-style: none; margin: 0; padding: 0; }
.aanwezig li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--vlak-licht); font-size: 15px; }
.aanwezig li .afd { color: var(--tekst-zacht); font-size: 13px; }
.aanwezig li.pauze .afd { color: var(--oranje); }

/* Keuze */
#scherm-keuze { flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.keuze-kop { text-align: center; }
.keuze-kop h1 { font-size: 38px; margin: 0 0 4px; }
.status { font-size: 20px; color: var(--tekst-zacht); margin: 0; }
.melding { font-size: 18px; color: #ffd38a; margin: 8px 0 0; }

.knoppen { display: grid; grid-template-columns: repeat(2, minmax(200px, 340px)); gap: 16px; width: 100%; justify-content: center; }
.knoppen.aantal-1 { grid-template-columns: minmax(240px, 420px); }
.knop {
    min-height: 96px;
    padding: 12px 20px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0,0,0,.25);
}
.knop:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.knop.groen { background: var(--groen); }
.knop.oranje { background: var(--oranje); }
.knop.blauw { background: var(--blauw); }
.knop.rood { background: var(--rood); }
.knop.voorkeur { outline: 4px solid rgba(255,255,255,.85); outline-offset: 3px; }

.keuze-voet, .historiek-kop { display: flex; gap: 12px; justify-content: center; }
.knop-tweede {
    padding: 14px 22px;
    font-size: 18px;
    color: var(--tekst);
    background: var(--vlak-licht);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

/* Bevestiging */
#scherm-bevestiging { align-items: center; justify-content: center; background: var(--groen); }
#scherm-bevestiging.vertrek { background: var(--blauw); }
.bevestiging { text-align: center; }
.vinkje { font-size: 96px; line-height: 1; }
.bevestiging h1 { font-size: 40px; margin: 8px 0; }
.bev-boodschap { font-size: 26px; margin: 0; }
.bev-tijd { font-size: 56px; font-weight: 700; margin: 8px 0 0; font-variant-numeric: tabular-nums; }

/* Historiek */
#scherm-historiek { flex-direction: column; gap: 12px; }
.historiek-kop { justify-content: space-between; align-items: center; }
.historiek-kop h1 { font-size: 28px; margin: 0; }
.weken { display: flex; gap: 12px; flex-wrap: wrap; }
.week { background: var(--vlak); border-radius: 12px; padding: 10px 16px; min-width: 160px; }
.week-naam { color: var(--tekst-zacht); font-size: 14px; }
.week-uren { font-size: 30px; font-weight: 700; }
.week-pauze { color: var(--tekst-zacht); font-size: 13px; }
.dagen { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
.dag { background: var(--vlak); border-radius: 12px; padding: 10px 16px; }
.dag.na-te-kijken { border-left: 6px solid var(--oranje); }
.dag-kop { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.dag-datum::first-letter { text-transform: uppercase; }
.blok { display: grid; grid-template-columns: 130px 1fr 60px; gap: 8px; font-size: 16px; padding: 3px 0; color: var(--tekst-zacht); }
.blok.pauze { color: #f3b77a; }
.blok.na-te-kijken .blok-wat { color: #ffd38a; }
.blok-duur { text-align: right; font-variant-numeric: tabular-nums; }
.leeg { color: var(--tekst-zacht); }

/* Bezig */
#scherm-bezig { align-items: center; justify-content: center; }
.bezig { text-align: center; font-size: 20px; }
.draaier {
    width: 56px; height: 56px; margin: 0 auto 16px;
    border: 6px solid var(--vlak-licht); border-top-color: var(--tekst);
    border-radius: 50%; animation: draai 1s linear infinite;
}
@keyframes draai { to { transform: rotate(360deg); } }

.verborgen { display: none !important; }

/* Koppelen */
.koppel { margin: auto; max-width: 440px; width: 100%; padding: 24px; text-align: center; }
.koppel input {
    width: 100%; font-size: 30px; letter-spacing: 6px; text-align: center; text-transform: uppercase;
    padding: 14px; border-radius: 12px; border: 0; margin: 12px 0;
}
.koppel .knop { width: 100%; }
.koppel .fout { color: var(--fout); font-weight: 600; }
.koppel p { color: var(--tekst-zacht); }

/* Kleine schermen (gsm's) */
@media (max-width: 720px) {
    .kop { padding: 10px 14px; }
    .bedrijf { font-size: 16px; }
    #klok-tijd { font-size: 26px; }
    .scherm { padding: 12px 14px; }
    .aanwezig { display: none !important; }
    .toetsen button { height: 64px; font-size: 28px; }
    .keuze-kop h1 { font-size: 30px; }
    .knoppen { grid-template-columns: 1fr; }
    .knop { min-height: 72px; font-size: 21px; }
    .blok { grid-template-columns: 105px 1fr 48px; font-size: 14px; }
}
@media (max-height: 560px) and (min-width: 721px) {
    .toetsen button { height: 58px; font-size: 28px; }
}
