/* Willem III CRM — Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --w3-blue: #2596BE;
  --w3-blue-dark: #1a7a9e;
  --w3-blue-light: #d6eef6;
  --w3-blue-pale: #eaf6fb;
  --w3-white: #FFFFFF;
  --w3-grey: #F2F2F2;
  --w3-text: #2c2c2c;
  --w3-text-muted: #6c757d;
  --w3-border: #dee2e6;
  --w3-success: #2a9d5c;
  --w3-warning: #e8a020;
  --w3-danger: #c0392b;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 56px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--w3-white);
  color: var(--w3-text);
  margin: 0;
  padding: 0;
  font-size: 14px;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  color: var(--w3-blue);
}

a { color: var(--w3-blue); text-decoration: none; }
a:hover { color: var(--w3-blue-dark); text-decoration: underline; }

/* ─── PUBLIC LAYOUT ─── */
.public-wrapper {
  min-height: 100vh;
  background: var(--w3-grey);
}

.public-header {
  background: var(--w3-white);
  border-bottom: 3px solid var(--w3-blue);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-header .logo img {
  height: 48px;
  width: auto;
}

.public-header .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--w3-blue);
}

.lang-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-toggle a {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--w3-blue);
  border-radius: 4px;
  color: var(--w3-blue);
}

.lang-toggle a.active,
.lang-toggle a:hover {
  background: var(--w3-blue);
  color: var(--w3-white);
  text-decoration: none;
}

.public-main {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 16px 60px;
}

.form-card {
  background: var(--w3-white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(37,150,190,.1);
}

.form-card h1 {
  font-size: 22px;
  margin-bottom: 6px;
}

.form-card .subtitle {
  color: var(--w3-text-muted);
  margin-bottom: 28px;
  font-size: 13px;
}

/* Category cards */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.category-card {
  border: 2px solid var(--w3-border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all .15s;
  background: var(--w3-white);
  text-align: center;
}

.category-card:hover {
  border-color: var(--w3-blue);
  background: var(--w3-blue-pale);
}

.category-card.selected {
  border-color: var(--w3-blue);
  background: var(--w3-blue-light);
}

.category-card .cat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--w3-blue);
  display: block;
}

.category-card .cat-label {
  font-size: 12px;
  color: var(--w3-text-muted);
  margin-top: 4px;
}

/* Form elements */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--w3-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--w3-border);
  border-radius: 6px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  background: var(--w3-grey);
  color: var(--w3-text);
  transition: border-color .15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--w3-blue);
  background: var(--w3-white);
  box-shadow: 0 0 0 3px rgba(37,150,190,.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232596BE' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 80px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--w3-grey);
  border-radius: 6px;
  margin-bottom: 16px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--w3-blue);
  margin-top: 2px;
}

.form-check label {
  font-size: 13px;
  color: var(--w3-text);
  line-height: 1.5;
}

.radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  accent-color: var(--w3-blue);
  width: 16px;
  height: 16px;
}

/* Slot select */
.slot-option {
  padding: 10px 12px;
  border: 1px solid var(--w3-border);
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .15s;
  background: var(--w3-grey);
}

.slot-option:hover:not(.full) {
  border-color: var(--w3-blue);
  background: var(--w3-blue-pale);
}

.slot-option.selected {
  border-color: var(--w3-blue);
  background: var(--w3-blue-light);
}

.slot-option.full {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8f8f8;
}

.slot-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--w3-blue-light);
  color: var(--w3-blue-dark);
}

.slot-badge.full {
  background: #f0f0f0;
  color: var(--w3-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  line-height: 1;
}

.btn-primary {
  background: var(--w3-blue);
  color: var(--w3-white);
}

.btn-primary:hover {
  background: var(--w3-blue-dark);
  color: var(--w3-white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--w3-blue);
  border: 1px solid var(--w3-blue);
}

.btn-outline:hover {
  background: var(--w3-blue-pale);
  color: var(--w3-blue);
  text-decoration: none;
}

.btn-danger {
  background: var(--w3-danger);
  color: white;
}

.btn-danger:hover { background: #a93226; color: white; text-decoration: none; }

.btn-success { background: var(--w3-success); color: white; }
.btn-success:hover { background: #217a4a; color: white; text-decoration: none; }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn-block { width: 100%; justify-content: center; }

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  border-left: 4px solid;
  font-size: 13px;
}

.alert-error { background: #fdf2f2; border-color: var(--w3-danger); color: #7b2020; }
.alert-success { background: #f0faf5; border-color: var(--w3-success); color: #1a5c38; }
.alert-warning { background: #fef9ed; border-color: var(--w3-warning); color: #7a5000; }
.alert-info { background: var(--w3-blue-pale); border-color: var(--w3-blue); color: var(--w3-blue-dark); }

/* Step indicator */
.step-indicator {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
}

.step {
  flex: 1;
  padding: 10px 16px;
  background: var(--w3-grey);
  color: var(--w3-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  position: relative;
}

.step.active {
  background: var(--w3-blue);
  color: white;
}

.step.done {
  background: var(--w3-blue-light);
  color: var(--w3-blue);
}

/* ─── ADMIN LAYOUT ─── */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: #1a1a2e;
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: overlay;
  overflow-x: hidden;
  scrollbar-width: none;
  z-index: 100;
}
.transitions-ready .sidebar {
  transition: width .2s ease, min-width .2s ease;
}

/* ─── Collapsed sidebar (desktop) ─── */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  min-width: var(--sidebar-collapsed-width);
}
.sidebar.collapsed .sidebar-logo-text,
.sidebar.collapsed .sidebar-logo-sub,
.sidebar.collapsed .sidebar-logo-icon,
.sidebar.collapsed .sidebar-section,
.sidebar.collapsed .sidebar-link-label,
.sidebar.collapsed .sidebar-badge,
.sidebar.collapsed .sidebar-user-name,
.sidebar.collapsed .sidebar-user-role,
.sidebar.collapsed .sidebar-user-links {
  display: none !important;
}
.sidebar.collapsed .sidebar-collapse-btn svg {
  transform: scaleX(-1);
}
.sidebar.collapsed .sidebar-logo {
  justify-content: center;
  padding: 14px 0;
  gap: 0;
}
.sidebar.collapsed .sidebar-logo > div {
  display: none;
}
.sidebar.collapsed .sidebar-logo img {
  height: 28px;
}
.sidebar-logo-icon { display: none; }
.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 12px 0;
  border-left: 3px solid transparent;
}
.sidebar.collapsed .sidebar-link .icon {
  width: auto;
  font-size: 17px;
}
.sidebar.collapsed .sidebar-user {
  padding: 12px 0;
  display: flex;
  justify-content: center;
}
.sidebar.collapsed .sidebar-user-icon {
  display: flex !important;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color .15s;
}
.sidebar.collapsed .sidebar-user-icon:hover {
  color: white;
}
.sidebar.collapsed .sidebar-nav {
  padding: 8px 0;
}

/* Tooltip on collapsed links */
.sidebar.collapsed .sidebar-link {
  position: relative;
}
.sidebar.collapsed .sidebar-link::after {
  content: attr(data-label);
  position: absolute;
  left: calc(var(--sidebar-collapsed-width) + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 9999;
}
.sidebar.collapsed .sidebar-link:hover::after {
  opacity: 1;
}

/* Collapse toggle button */
.sidebar-collapse-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid var(--w3-border);
  border-radius: 4px;
  color: var(--w3-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background .15s, color .15s;
}
.sidebar-collapse-btn:hover {
  background: var(--w3-grey);
  color: var(--w3-text);
}
.sidebar-collapse-btn.is-collapsed svg {
  transform: scaleX(-1);
}
@media (max-width: 900px) {
  .sidebar-collapse-btn { display: none; }
}

.sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo img {
  height: 36px;
  width: auto;
}

.sidebar-logo-text {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--w3-blue);
  line-height: 1.3;
}

.sidebar-logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,.5);
}

.sidebar-nav {
  padding: 16px 0;
  flex: 1;
}

.sidebar-section {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  text-decoration: none;
  transition: all .15s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255,255,255,.07);
  color: white;
  text-decoration: none;
}

.sidebar-link.active {
  background: rgba(37,150,190,.2);
  color: var(--w3-blue);
  border-left-color: var(--w3-blue);
}

.sidebar-link .icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--w3-blue);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.sidebar-user {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
  color: rgba(255,255,255,.5);
}
.sidebar-user-links {
  display: flex;
  gap: 10px;
}

.sidebar-user strong {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}

.sidebar-user .role-badge {
  display: inline-block;
  background: rgba(37,150,190,.3);
  color: var(--w3-blue);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.admin-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left .2s ease;
}
.sidebar.collapsed ~ .admin-main,
body.sidebar-collapsed .admin-main {
  margin-left: var(--sidebar-collapsed-width);
}

.admin-topbar {
  background: var(--w3-white);
  border-bottom: 1px solid var(--w3-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar h1 {
  font-size: 18px;
  margin: 0;
}

.admin-content {
  padding: 24px;
  flex: 1;
}

/* ─── CARDS ─── */
.card {
  background: var(--w3-white);
  border-radius: 8px;
  border: 1px solid var(--w3-border);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--w3-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--w3-grey);
}

.card-header h2, .card-header h3 {
  font-size: 14px;
  margin: 0;
  font-weight: 700;
}

.card-body { padding: 20px; }

/* ─── STAT CARDS (dashboard) ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--w3-white);
  border: 1px solid var(--w3-border);
  border-radius: 8px;
  padding: 16px 20px;
  border-top: 3px solid var(--w3-blue);
}

.stat-card .stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--w3-blue);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 11px;
  color: var(--w3-text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── TABLE ─── */
.table-wrapper { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  background: var(--w3-grey);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--w3-text-muted);
  border-bottom: 2px solid var(--w3-border);
  white-space: nowrap;
}

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--w3-border);
  vertical-align: middle;
}

tbody tr:hover { background: var(--w3-blue-pale); }
tbody tr:last-child td { border-bottom: none; }

/* ─── STATUS BADGES ─── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-new_registration { background: var(--w3-grey); color: var(--w3-text-muted); }
.status-tour_planned { background: var(--w3-blue-light); color: var(--w3-blue-dark); }
.status-tour_done { background: #d6f0e6; color: #1a5c38; }
.status-trial_requested { background: #e8d6f0; color: #5c1a78; }
.status-trial_planned { background: #f0e6d6; color: #7a4000; }
.status-trial_done { background: #d6ead6; color: #2a5c2a; }
.status-membership_received { background: #fef3d6; color: #7a5000; }
.status-member { background: #d6f0e6; color: #0a4024; border: 1px solid #2a9d5c; }
.status-dropped_out { background: #f8e6e6; color: #7b2020; }

.route-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.route-A { background: var(--w3-blue-light); color: var(--w3-blue); }
.route-B { background: #f0e8ff; color: #5c00b8; }

/* ─── SEARCH/FILTER BAR ─── */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: flex-end;
}

.filter-bar .form-group { margin-bottom: 0; }

.filter-bar input, .filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--w3-border);
  border-radius: 6px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 13px;
  background: var(--w3-white);
}

/* ─── FUNNEL CHART ─── */
.funnel-bar-wrap { margin-bottom: 8px; }

.funnel-bar-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  padding: 4px 6px;
  margin: 0 -6px 4px;
  transition: background .15s;
}
.funnel-bar-link:hover { background: rgba(0,150,180,.07); }

.funnel-bar-label {
  font-size: 11px;
  color: var(--w3-text-muted);
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
}

.funnel-bar-track {
  background: var(--w3-grey);
  border-radius: 4px;
  height: 22px;
  overflow: hidden;
}

.funnel-bar-fill {
  height: 100%;
  background: var(--w3-blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  transition: width .5s ease;
  min-width: 2px;
}

/* ─── DETAIL PAGE ─── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.detail-field {
  margin-bottom: 14px;
}

.detail-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--w3-text-muted);
  display: block;
  margin-bottom: 3px;
}

.detail-field .value {
  font-size: 14px;
  color: var(--w3-text);
}

.history-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--w3-border);
  font-size: 12px;
}

.history-item:last-child { border-bottom: none; }

.history-time {
  color: var(--w3-text-muted);
  white-space: nowrap;
  min-width: 120px;
}

.note-item {
  padding: 12px;
  background: var(--w3-grey);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}

.note-meta {
  font-size: 11px;
  color: var(--w3-text-muted);
  margin-bottom: 4px;
}

/* ─── TODO ITEMS ─── */
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--w3-border);
  border-radius: 6px;
  margin-bottom: 8px;
  background: var(--w3-white);
}

.todo-item.overdue { border-color: var(--w3-danger); background: #fdf2f2; }
.todo-item.completed { opacity: 0.5; }

.todo-item input[type="checkbox"] {
  accent-color: var(--w3-blue);
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 3px;
}

.todo-desc { font-size: 13px; flex: 1; }
.todo-meta { font-size: 11px; color: var(--w3-text-muted); margin-top: 2px; }
.overdue .todo-meta { color: var(--w3-danger); }

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 20px;
}

.pagination a, .pagination span {
  padding: 6px 12px;
  border: 1px solid var(--w3-border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--w3-blue);
  text-decoration: none;
}

.pagination span.current {
  background: var(--w3-blue);
  color: white;
  border-color: var(--w3-blue);
}

.pagination a:hover { background: var(--w3-blue-pale); }

/* ─── TOUR CAPACITY ─── */
.capacity-bar {
  height: 8px;
  background: var(--w3-grey);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.capacity-fill {
  height: 100%;
  background: var(--w3-blue);
  border-radius: 4px;
  transition: width .3s;
}

.capacity-fill.full { background: var(--w3-danger); }
.capacity-fill.almost-full { background: var(--w3-warning); }

/* ─── MOBILE (public form) ─── */
@media (max-width: 600px) {
  .public-main { margin: 16px auto; padding: 0 12px 40px; }
  .form-card { padding: 20px 16px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .form-card h1 { font-size: 18px; }
  .btn { padding: 12px 16px; font-size: 14px; }
}

/* ─── RESPONSIVE ADMIN ─── */
@media (max-width: 900px) {
  .hamburger-btn { display: inline-flex; align-items: center; }

  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 200;
    width: var(--sidebar-width);
  }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ─── MISC ─── */
.text-muted { color: var(--w3-text-muted); }
.text-blue { color: var(--w3-blue); }
.text-danger { color: var(--w3-danger); }
.text-success { color: var(--w3-success); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }

.honeypot { display: none !important; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--w3-text-muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.divider {
  border: none;
  border-top: 1px solid var(--w3-border);
  margin: 20px 0;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--w3-blue-light);
  color: var(--w3-blue);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* ─── INLINE STATUS SELECT (contactenlijst) ─── */
.inline-status-form { margin: 0; }

.inline-status-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 20px;
  padding: 3px 24px 3px 10px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='currentColor' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  transition: opacity .15s;
}

.inline-status-select:hover { opacity: 0.8; }
.inline-status-select:focus { outline: 2px solid var(--w3-blue); outline-offset: 2px; }

/* Kleur per status — zelfde palet als .status-badge */
.inline-status-select.status-new_registration      { background-color: var(--w3-grey); color: var(--w3-text-muted); }
.inline-status-select.status-tour_planned          { background-color: var(--w3-blue-light); color: var(--w3-blue-dark); }
.inline-status-select.status-tour_done             { background-color: #d6f0e6; color: #1a5c38; }
.inline-status-select.status-trial_requested       { background-color: #e8d6f0; color: #5c1a78; }
.inline-status-select.status-trial_planned         { background-color: #f0e6d6; color: #7a4000; }
.inline-status-select.status-trial_done            { background-color: #d6ead6; color: #2a5c2a; }
.inline-status-select.status-membership_received   { background-color: #fef3d6; color: #7a5000; }
.inline-status-select.status-member                { background-color: #d6f0e6; color: #0a4024; }
.inline-status-select.status-dropped_out           { background-color: #f8e6e6; color: #7b2020; }

/* Confirmation page */
.confirmation-box {
  text-align: center;
  padding: 32px;
}

.confirmation-box .check-icon {
  font-size: 56px;
  color: var(--w3-success);
  margin-bottom: 16px;
}

.tour-summary {
  background: var(--w3-blue-pale);
  border: 1px solid var(--w3-blue-light);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  text-align: left;
}

.tour-summary .row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.tour-summary .row:last-child { margin-bottom: 0; }
.tour-summary .row .label { color: var(--w3-text-muted); min-width: 80px; }

/* Mismatch warning */
.age-warning {
  background: #fef9ed;
  border: 1px solid var(--w3-warning);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.age-warning strong { color: var(--w3-warning); }

/* ─── HAMBURGER BUTTON ─── */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--w3-blue);
  padding: 4px 8px;
  margin-right: 8px;
  line-height: 1;
}

/* ─── SIDEBAR OVERLAY ─── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 150;
}

.sidebar-overlay.visible { display: block; }

/* ─── MOBILE ADMIN ─── */
@media (max-width: 768px) {
  .hamburger-btn { display: inline-flex; align-items: center; }

  .admin-main { margin-left: 0; }
  .admin-wrapper { flex-direction: column; }

  .admin-content { padding: 12px; }

  /* Topbar: title row on top, actions below */
  .admin-topbar {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 6px;
  }
  .admin-topbar > div:first-child { flex: 1 1 100%; }
  .admin-topbar > div:last-child {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 6px;
  }
  .admin-topbar h1 { font-size: 16px; }

  /* Hide the public form link in topbar on mobile — not useful there */
  .topbar-public-link { display: none; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Responsive grid helpers (used inline via class) */
  .grid-2col { grid-template-columns: 1fr !important; }
  .grid-4col { grid-template-columns: 1fr 1fr !important; }

  .filter-bar { flex-direction: column; gap: 8px; }
  .filter-bar .form-group { width: 100%; }
  .filter-bar input, .filter-bar select { width: 100%; }

  /* Touch-friendly tap targets */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; padding: 6px 12px; }
  .btn-xs { min-height: 28px; }

  .inline-status-select { width: 100%; }

  .detail-grid { grid-template-columns: 1fr; }

  /* Tables scroll horizontally on mobile */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 480px; }

  /* Cards should not have large horizontal padding */
  .card-body { padding: 12px; }

  /* Form groups go full width */
  .form-row { flex-direction: column; }
  .form-row .form-group { width: 100%; }

  /* Topbar action buttons: allow wrapping */
  .topbar-actions { flex-wrap: wrap; }
}

/* Tiny phones */
@media (max-width: 400px) {
  .admin-content { padding: 8px; }
  .card { border-radius: 6px; }
  .btn-sm { font-size: 12px; padding: 5px 10px; }
}
