:root {
  --primary:  #2b2b2b;
  --accent:   #c0392b;
  --accent-hover: #a93226;
  --bg:       #1a1a1a;
  --surface:  #2b2b2b;
  --surface2: #333333;
  --text:     #f0f0f0;
  --muted:    #888888;
  --border:   #444444;
  --radius:   6px;
  --shadow:   0 2px 8px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigatie ── */
nav {
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
nav .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  margin-right: 2rem;
  letter-spacing: 0.5px;
}
nav .nav-links { display: flex; gap: 0.25rem; flex: 1; }
nav .nav-links a {
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: background 0.15s;
}
nav .nav-links a:hover, nav .nav-links a.active {
  background: var(--surface2);
  text-decoration: none;
}
nav .nav-right { display: flex; align-items: center; gap: 0.75rem; }
nav .nav-right .welkom { color: var(--muted); font-size: 0.85rem; }

/* ── Knoppen ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, opacity 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #3a3a3a; }
.btn-danger { background: transparent; color: #e74c3c; border: 1px solid #e74c3c; }
.btn-danger:hover { background: #e74c3c; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.page-header h1 { font-size: 1.4rem; font-weight: 600; }

/* ── Kaarten ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* ── Formulieren ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; color: var(--muted); }
input, select, textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-admin { background: var(--accent); color: #fff; }
.badge-commissie { background: #e67e22; color: #fff; }
.badge-lid { background: #27ae60; color: #fff; }
.badge-aspirant { background: #555; color: #ccc; }

/* ── Tabel ── */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; padding: 0.6rem 0.75rem; color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.03); }

/* ── Avatar ── */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Lid kaart ── */
.lid-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.lid-card .info { flex: 1; min-width: 0; }
.lid-card .naam { font-weight: 600; }
.lid-card .alias { color: var(--muted); font-size: 0.85rem; }

/* ── Login pagina ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow);
}
.login-card .titel {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-card .titel h1 { color: var(--accent); font-size: 1.6rem; letter-spacing: 1px; }
.login-card .titel p { color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }

/* ── Melding ── */
.melding {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}
.melding.fout { background: rgba(192,57,43,0.2); border: 1px solid var(--accent); color: #f1948a; display: block; }
.melding.ok   { background: rgba(39,174,96,0.2); border: 1px solid #27ae60; color: #82e0aa; display: block; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-header h2 { font-size: 1.1rem; }
.modal-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-footer { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }

/* ── Kalender ── */
.kalender { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.kalender-header .dag-naam { text-align: center; padding: 0.4rem; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.kalender-cel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  min-height: 80px;
  padding: 0.35rem;
  font-size: 0.8rem;
  cursor: default;
}
.kalender-cel.andere-maand { opacity: 0.35; }
.kalender-cel.vandaag { border-color: var(--accent); }
.kalender-cel .dag-nr { font-weight: 600; margin-bottom: 0.2rem; }
.activiteit-dot {
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 0.1rem 0.3rem;
  margin-top: 0.2rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activiteit-dot:hover { background: var(--accent-hover); }

/* ── Zoekbalk ── */
.zoekbalk { margin-bottom: 1rem; position: relative; }
.zoekbalk input { padding-left: 2rem; }
.zoekbalk::before { content: '🔍'; position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%); font-size: 0.85rem; }

/* ── Wizard stappen ── */
.stappen { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.stap {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.stap.actief { background: var(--accent); color: #fff; border-color: var(--accent); }
.stap.klaar { background: #27ae60; color: #fff; border-color: #27ae60; }

/* ── Dropzone ── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
  color: var(--muted);
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); color: var(--text); }

/* ── Hulpklassen ── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.85rem; }
.hidden { display: none !important; }

/* ── Checkbox rollen ── */
.checkbox-rollen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
}
.checkbox-rollen label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.checkbox-rollen input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
