:root {
  --bg: #000000;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --accent: #C8F135;
  --text: #F5F5F5;
  --muted: #9a9a9a;
  --line: #262626;
  --danger: #ff5c5c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif; }
body { min-height: 100vh; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.app-topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: rgba(0,0,0,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.app-topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.app-topbar .brand img { width: 28px; height: 28px; border-radius: 6px; }
.icon-btn { background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 8px; display: flex; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }

.app-main { flex: 1; overflow-y: auto; padding: 18px 18px 100px; }
.screen { display: none; }
.screen.active { display: block; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; background: #0a0a0a; border-top: 1px solid var(--line); padding: 8px 10px max(8px, env(safe-area-inset-bottom)); }
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); font-size: 11px; padding: 6px 0; border-radius: 10px; }
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn.active { color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.card h3 { font-size: 15px; margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 13px; }

.greeting { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.subgreeting { color: var(--muted); margin-bottom: 20px; }

.stats-row { display: flex; gap: 12px; margin-bottom: 18px; }
.stat { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.stat .num { font-size: 22px; font-weight: 800; color: var(--accent); }
.stat .label { font-size: 11px; color: var(--muted); margin-top: 2px; }

.badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-gepland { background: rgba(200,241,53,.15); color: var(--accent); }
.badge-voltooid { background: rgba(255,255,255,.1); color: var(--text); }
.badge-geannuleerd { background: rgba(255,92,92,.15); color: var(--danger); }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
.tab { white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.tab.active { background: var(--accent); color: #000; border-color: var(--accent); }

.session-item, .content-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.session-item .row, .content-item .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.content-item .body { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; display: none; white-space: pre-wrap; }
.content-item.expanded .body { display: block; }

.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 14px; }
.btn-accent { background: var(--accent); color: #000; }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-block { width: 100%; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); font-size: 14px; font-family: inherit; }
.field textarea { resize: vertical; min-height: 90px; }

.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 360px; }
.auth-card .logo { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 18px; }
.auth-card h1 { font-size: 20px; text-align: center; margin-bottom: 6px; }
.auth-card p.muted { text-align: center; margin-bottom: 24px; }
.error-msg { color: var(--danger); font-size: 13px; margin-top: 8px; }
.success-msg { color: var(--accent); font-size: 13px; margin-top: 8px; }

.hidden { display: none !important; }
