:root {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #e2e8f0;
    --accent: #22c55e;
    --danger: #ef4444;
    --muted: #94a3b8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, sans-serif;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.topbar-title { font-size: 1.2rem; font-weight: 600; }

.menu-btn {
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 4px 10px;
}

main { padding: 16px; max-width: 480px; margin: 0 auto; }

.label {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.tegels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.tegel {
    background: var(--card);
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
}

.tegel.laatst-gebruikt { border-color: var(--accent); }

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

.btn-start { background: var(--accent); color: #0f172a; }
.btn-stop { background: var(--danger); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--muted); color: var(--text); }

.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}

.modal-card {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

.modal-card textarea, .modal-card input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--muted);
    background: var(--bg);
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1rem;
}

.modal-card textarea { min-height: 80px; }

/* Overzicht-scherm */
.overzicht-main { padding: 16px; max-width: 900px; margin: 0 auto; }

.filters { background: var(--card); border-radius: 10px; padding: 12px; margin-bottom: 16px; }
.filters summary { cursor: pointer; }

.filter-rij { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filter-rij select, .filter-rij input { padding: 8px; border-radius: 8px; border: 1px solid var(--muted); background: var(--bg); color: var(--text); }
.filter-rij .btn { width: auto; margin-top: 0; }

.export-rij { display: flex; gap: 8px; margin-top: 10px; }
.export-rij .btn { width: auto; margin-top: 0; text-align: center; text-decoration: none; }

.data-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 0.85rem; }
.data-table th, .data-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--card); }
.data-table th { color: var(--muted); font-weight: 600; }

@media (min-width: 700px) {
    .filter-rij { flex-wrap: nowrap; }
}
