* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f4f4f2;
  color: #1a1a1a;
}
#app { display: flex; min-height: 100vh; }

.sidebar {
  width: 200px;
  background: #0c2b3a;
  color: #fff;
  padding: 1.5rem 0;
  flex-shrink: 0;
}
.sidebar h1 { font-size: 16px; padding: 0 1.25rem 1rem; margin: 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.sidebar nav a {
  display: block; padding: 10px 1.25rem; color: rgba(255,255,255,0.75);
  text-decoration: none; font-size: 14px; cursor: pointer;
}
.sidebar nav a.actief { color: #fff; background: rgba(255,255,255,0.08); font-weight: 600; }
.sidebar .gebruiker { padding: 1rem 1.25rem; font-size: 12px; color: rgba(255,255,255,0.6); border-top: 1px solid rgba(255,255,255,0.15); margin-top: 1rem; }
.sidebar .gebruiker button { margin-top: 6px; font-size: 12px; }

main { flex: 1; padding: 2rem; max-width: 1100px; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.metric-card { background: #fff; border-radius: 8px; padding: 1rem; border: 1px solid #e2e2df; }
.metric-card .label { font-size: 13px; color: #666; margin: 0 0 4px; }
.metric-card .value { font-size: 24px; font-weight: 600; margin: 0; }
.metric-klik { cursor: pointer; transition: background 0.1s; }
.metric-klik:hover { background: #ececea; }

.waarschuwing { background: #fbeaea; color: #8a1f1f; padding: 12px 16px; border-radius: 8px; margin-bottom: 1.5rem; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid #ececea; }
th { background: #f0f0ee; color: #666; font-weight: 500; }
tr:hover td { background: #fafaf8; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.badge-danger { background: #fbeaea; color: #8a1f1f; }
.badge-warning { background: #fdf3e0; color: #7a4b06; }
.badge-success { background: #e9f4e2; color: #2b5c14; }
.badge-muted { background: #eee; color: #555; }

.toolbar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.toolbar input, .toolbar select { padding: 8px 10px; border: 1px solid #d5d5d2; border-radius: 6px; font-size: 13px; }
.toolbar input[type="text"] { flex: 1; }

button { cursor: pointer; border: 1px solid #d5d5d2; background: #fff; border-radius: 6px; padding: 8px 14px; font-size: 13px; }
button.primary { background: #0c2b3a; color: #fff; border-color: #0c2b3a; }
button:hover { background: #f0f0ee; }
button.primary:hover { background: #123c50; }

.card { background: #fff; border: 1px solid #e2e2df; border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 12px; }
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card .sub { color: #666; font-size: 13px; margin: 0 0 10px; }

.locatie-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.modal { background: #fff; border-radius: 10px; padding: 1.5rem; width: 420px; max-width: 90vw; }
.modal h3 { margin-top: 0; }
.modal label { display: block; font-size: 13px; margin: 10px 0 4px; color: #444; }
.modal input, .modal select, .modal textarea { width: 100%; padding: 8px 10px; border: 1px solid #d5d5d2; border-radius: 6px; font-size: 13px; }
.modal .acties { display: flex; justify-content: flex-end; gap: 8px; margin-top: 1.25rem; }

.login-wrap { display: flex; align-items: center; justify-content: center; height: 100vh; width: 100%; background: #f4f4f2; }
.login-box { background: #fff; padding: 2rem; border-radius: 10px; width: 320px; border: 1px solid #e2e2df; }
.login-box h1 { font-size: 18px; margin-top: 0; }
.login-box label { display: block; font-size: 13px; margin: 12px 0 4px; }
.login-box input { width: 100%; padding: 9px 10px; border: 1px solid #d5d5d2; border-radius: 6px; }
.login-box button { width: 100%; margin-top: 1.25rem; }
.fout { color: #8a1f1f; font-size: 13px; margin-top: 8px; }

.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 1px; background: #ddd; }
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-item::before { content: ''; position: absolute; left: -19px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #2b5c14; }
.timeline-item .datum { font-size: 13px; color: #666; margin: 0; }
.timeline-item .tekst { font-size: 14px; margin: 2px 0 0; }

.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.foto-grid img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; border: 1px solid #e2e2df; }

#nl-kaart, #locatie-kaart { border: 1px solid #e2e2df; }

.veld-blokken-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.veld-blok { background: #fafaf8; border: 1px solid #ececea; border-radius: 8px; padding: 12px 14px; }
.veld-blok h3 { font-size: 13px; margin: 0 0 8px; color: #444; text-transform: uppercase; letter-spacing: 0.03em; }
.veld-blok table { background: transparent; border-radius: 0; }
.veld-blok td { padding: 5px 0; font-size: 13px; border-bottom: 1px solid #e9e9e6; }
.veld-blok td:first-child { color: #777; width: 55%; }
.veld-blok tr:hover td { background: transparent; }
