/* ==== The Dukes events - shared stylesheet ==== */
:root {
  --primary: #231f20;        /* zwart */
  --primary-light: #ee2722;  /* rood PMS 485 */
  --accent: #fab20b;         /* geel PMS 130 */
  --bg: #f5f3ef;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --open: #16a34a;
  --full: #9ca3af;
  --danger: #dc2626;
  --warning: #f59e0b;
  --info: #0284c7;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
}
header {
  background: var(--primary); color: white; padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); border-bottom: 4px solid var(--accent);
}
.header-inner { display: flex; align-items: center; gap: 16px; max-width: 1100px; margin: 0 auto; }
.header-logo {
  height: 56px; width: 56px; flex-shrink: 0; background: white; border-radius: 50%;
  padding: 4px; display: flex; align-items: center; justify-content: center;
}
.header-logo img { width: 100%; height: 100%; object-fit: contain; }
.header-text { flex: 1; min-width: 0; }
.header-text h1 { margin: 0 0 2px 0; font-size: 1.4rem; font-weight: 700; }
.header-text p { margin: 0; opacity: 0.85; font-size: 0.9rem; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions a, .header-actions button {
  background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; text-decoration: none;
  cursor: pointer; font-family: inherit;
}
.header-actions a:hover, .header-actions button:hover { background: rgba(255,255,255,0.25); }

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* Buttons */
.btn {
  padding: 10px 18px; border-radius: 8px; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; border: 1px solid transparent; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-primary:disabled { background: var(--muted); cursor: not-allowed; }
.btn-secondary { background: white; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-danger { background: white; color: var(--danger); border-color: #fca5a5; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 5px 10px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.form-group label .opt, .form-group .hint {
  color: var(--muted); font-weight: 400; font-size: 0.82rem;
}
.form-group .hint { display: block; margin-top: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(238, 39, 34, 0.12);
}
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

/* Alerts */
.alert {
  padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 0.9rem;
}
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.success { background: #f0fdf4; color: #14532d; border: 1px solid #bbf7d0; }
.alert.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert.warn { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; margin-bottom: 14px;
}

/* Status pills */
.status-pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px;
}
.status-draft { background: #fef3c7; color: #78350f; }
.status-live { background: #dcfce7; color: #14532d; }
.status-archief { background: #e5e7eb; color: #374151; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none;
  align-items: center; justify-content: center; padding: 16px; z-index: 1000;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: white; border-radius: 12px; max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  position: relative;
}
.modal-header { padding: 20px 20px 12px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0 0 4px; font-size: 1.2rem; }
.modal-header p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.modal-close {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  font-size: 1.4rem; color: var(--muted); cursor: pointer; width: 32px; height: 32px;
  border-radius: 50%;
}
.modal-close:hover { background: var(--bg); }
.modal-body { padding: 16px 20px 20px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* Toast */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: white; padding: 12px 20px; border-radius: 8px;
  font-size: 0.9rem; box-shadow: 0 4px 16px rgba(0,0,0,0.2); z-index: 2000;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* Loading state */
.loading { text-align: center; padding: 40px; color: var(--muted); }
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid #e5e7eb; border-top-color: var(--primary-light);
  border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -3px; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 600px) {
  .header-inner { gap: 10px; flex-wrap: wrap; }
  .header-text h1 { font-size: 1.1rem; }
  .header-text p { font-size: 0.78rem; }
  .header-logo { height: 44px; width: 44px; }
  .container { padding: 12px; }
  .form-row { flex-direction: column; gap: 0; }
}
