/**
 * C.V. Van Allus Wâ - Admin Dashboard & Beheerportaal Stylesheet
 * Neo-brutalist carnavalesk design met ChatGPT-stijl inklapbare navigatie.
 */

@font-face {
  font-family: "Brand Display";
  src: url("fonts/oswald-bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
}

:root {
  --red: #e62348;
  --yellow: #ffd826;
  --blue: #1162e0;
  --green: #22c55e;
  --ink: #141619;
  --surface: #ffffff;
  --bg-page: #f8f7f2;
  --line-color: #141619;
  --border: 2px solid var(--line-color);
  --border-thick: 3px solid var(--line-color);
  --shadow: 3px 3px 0 var(--line-color);
  --shadow-lg: 5px 5px 0 var(--line-color);
  --radius: 8px;
  --radius-sm: 4px;
  --display: "Brand Display", "Oswald", "Impact", "Arial Black", sans-serif;
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 72px;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   LOGIN SCHERM
   -------------------------------------------------------------------------- */
.login-body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: clamp(20px, 4vw, 48px);
  box-sizing: border-box;
  background-color: #0b1c33;
  background-image: url('../assets/watjuh-kluis.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
}

/* Videolaag achter de inlogkaart en over de achtergrondafbeelding */
.kluis-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.kluis-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}
.kluis-bg-video.is-active {
  opacity: 1;
  visibility: visible;
}

.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  margin-left: clamp(16px, 6vw, 110px);
}
.login-card {
  position: relative;
  background: linear-gradient(155deg, rgba(26, 34, 48, 0.94) 0%, rgba(13, 17, 26, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 3px solid #d97706;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 28px rgba(245, 158, 11, 0.25), inset 0 0 25px rgba(0, 0, 0, 0.85);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 36px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  color: #f8fafc;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  pointer-events: none;
}
.corner-rivet {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 35% 35%, #fef08a, #d97706 60%, #451a03 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.8);
  pointer-events: none;
  z-index: 2;
}
.corner-rivet.top-left { top: 12px; left: 12px; }
.corner-rivet.top-right { top: 12px; right: 12px; }
.corner-rivet.bottom-left { bottom: 12px; left: 12px; }
.corner-rivet.bottom-right { bottom: 12px; right: 12px; }

.login-card.is-logging-in {
  opacity: 0.12;
  transform: scale(0.96) translateX(-15px);
  pointer-events: none;
}
@keyframes shakeLoginCard {
  0%, 100% { transform: translateX(0); }
  15%, 55%, 85% { transform: translateX(-9px); }
  35%, 70% { transform: translateX(9px); }
}
.login-card.shake-card {
  animation: shakeLoginCard 0.45s ease-in-out;
}
.login-brand {
  text-align: center;
  margin-bottom: 24px;
}
.login-brand img {
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}
.badge-role {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #0f172a;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border: 1.5px solid #fef08a;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.badge-status-verified {
  background: #dcfce7 !important;
  color: #166534 !important;
  border-color: #22c55e !important;
}
.badge-status-pending {
  background: #fef08a !important;
  color: #854d0e !important;
  border-color: #ca8a04 !important;
}
.badge-status-rejected {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #f87171 !important;
}
.login-brand h1 {
  font-family: var(--display);
  font-size: 2rem;
  margin: 4px 0 6px;
  letter-spacing: 0.02em;
  color: #fef08a;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.4), 0 0 2px rgba(255,255,255,0.8);
}
.login-brand p {
  margin: 0;
  font-size: 0.95rem;
  color: #cbd5e1;
}
.login-alert {
  background: rgba(153, 27, 27, 0.85);
  color: #fef2f2;
  border: 1.5px solid #f87171;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.form-group {
  margin-bottom: 18px;
}
.login-body .form-group label,
.login-card .form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  color: #f1f5f9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-group label,
.admin-shell .form-group label,
.panel .form-group label {
  display: block;
  font-weight: 800;
  font-size: 0.86rem;
  color: #0f172a;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.input-shell {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 2px solid #475569;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
  transition: all 0.2s ease;
}
.input-shell:focus-within {
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4), inset 0 1px 3px rgba(0,0,0,0.4);
  border-color: #f59e0b;
}
.input-icon {
  padding: 0 10px 0 12px;
  font-size: 1.1rem;
  user-select: none;
  color: #f59e0b;
}
.input-shell input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 10px 12px 0;
  font-size: 1rem;
  color: #ffffff;
  outline: none;
  font-family: inherit;
}
.input-shell input::placeholder {
  color: #64748b;
}
.password-shell {
  position: relative;
}
.btn-toggle-password {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 1.15rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, color 0.15s ease;
}
.btn-toggle-password:hover {
  transform: scale(1.15);
  color: #fef08a;
}
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
}
.remember-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
  cursor: pointer;
}
.btn-forgot-link {
  background: none;
  border: none;
  padding: 0;
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-forgot-link:hover,
.btn-forgot-link:focus-visible {
  color: #fef08a;
  text-decoration: underline;
  outline: none;
}
.recovery-panel {
  display: none;
  animation: fadeInRecovery 0.3s ease-out;
}
.recovery-panel.is-active {
  display: block;
}
@keyframes fadeInRecovery {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.code-input-shell input {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: 5px !important;
  text-align: center !important;
}
.recovery-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
  transition: color 0.2s;
  text-decoration: none;
}
.recovery-back-btn:hover {
  color: #f1f5f9;
  text-decoration: underline;
}
.btn-skip-verification {
  display: block;
  text-align: center;
  width: 100%;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-skip-verification:hover {
  color: #fbbf24;
  text-decoration: underline;
}
.recovery-info-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #fef3c7;
  margin-bottom: 16px;
}
.party-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #0f172a;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  padding: 13px 24px;
  border: 2px solid #fef08a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
  width: 100%;
}
.party-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 22px rgba(245, 158, 11, 0.55);
  filter: brightness(1.05);
}
.party-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}
.login-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(245, 158, 11, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-footer a {
  color: #fef08a;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.login-footer a:hover {
  color: #f59e0b;
  text-decoration: underline;
}
.login-footer small {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Sla animatie over knop (gecentreerd onderin) */
.btn-skip-anim {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(15, 23, 42, 0.9);
  color: #fef08a;
  border: 2px solid #f59e0b;
  border-radius: 999px;
  padding: 12px 28px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.85), 0 0 20px rgba(245, 158, 11, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: pulseSkipBtn 2s infinite ease-in-out;
  transition: all 0.2s ease;
}
.btn-skip-anim:hover {
  background: #f59e0b;
  color: #0f172a;
  transform: translateX(-50%) scale(1.06);
  box-shadow: 0 10px 35px rgba(0,0,0,0.95), 0 0 30px rgba(245, 158, 11, 0.7);
}
@keyframes pulseSkipBtn {
  0%, 100% { box-shadow: 0 8px 30px rgba(0,0,0,0.85), 0 0 15px rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 8px 30px rgba(0,0,0,0.85), 0 0 28px rgba(245, 158, 11, 0.7); }
}

/* Cinematische Dashboard & Bestemming Fade-In */
html.is-logging-in body {
  opacity: 0;
  filter: blur(8px);
  animation: pageFadeIn 0.6s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

html.is-logging-in body.animate-fade-in,
.admin-body.animate-fade-in,
body.animate-fade-in {
  opacity: 1 !important;
  filter: blur(0) !important;
  animation: pageFadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* --------------------------------------------------------------------------
   DASHBOARD SHELL & CHATGPT-STIJL ZIJBALK
   -------------------------------------------------------------------------- */
.admin-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.admin-sidebar {
  width: var(--sidebar-w);
  background: #ffffff;
  border-right: var(--border-thick);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar-header {
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border);
  background: #fff8d9;
  min-height: 64px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}
.sidebar-brand img {
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.brand-text b {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--red);
  line-height: 1.1;
}
.brand-text small {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.sidebar-toggle-btn {
  background: var(--surface);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--line-color);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.15s ease;
  padding: 0;
}
.sidebar-toggle-btn:hover {
  background: var(--yellow);
}
.toggle-icon {
  font-size: 0.75rem;
  line-height: 1;
  transition: transform 0.22s ease;
}
.sidebar-toggle-btn .mobile-close-icon {
  display: none;
}

.sidebar-nav {
  padding: 14px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.08em;
  padding: 10px 10px 4px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
  white-space: nowrap;
}
.nav-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.nav-item.is-active {
  background: #fee2e2;
  border-color: var(--red);
  color: var(--red);
}
.nav-icon {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.nav-label {
  transition: opacity 0.15s ease;
}
.nav-item-external .ext-icon {
  font-size: 0.8rem;
  margin-left: auto;
  color: #334155;
}

.nav-sub-item {
  padding-left: 26px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
}
.nav-sub-item .nav-icon {
  font-size: 1.05rem;
  width: 20px;
}
.nav-sub-indicator {
  font-size: 0.82rem;
  color: #475569;
  margin-right: -4px;
}
.nav-sub-item:hover {
  background: #f1f5f9;
  color: var(--ink);
}
.nav-sub-item.is-active {
  background: #fee2e2;
  border-color: var(--red);
  color: var(--red);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   INKLAPBARE SUBMENU'S (SPEULHAL & WÂTJUH WHATSAPP)
   -------------------------------------------------------------------------- */
.nav-collapsible-group {
  margin-bottom: 2px;
}

button.nav-parent-btn {
  width: 100%;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  user-select: none;
  border: 1.5px solid transparent;
}

button.nav-parent-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.nav-collapsible-group.is-open button.nav-parent-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.nav-collapsible-group.has-active-child button.nav-parent-btn {
  background: #fee2e2;
  border-color: #fca5a5;
  color: var(--red);
}

.nav-chevron-wrap {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #64748b;
  transition: transform 0.22s ease, color 0.15s ease;
  flex-shrink: 0;
}

.nav-collapsible-group.has-active-child .nav-chevron-wrap {
  color: var(--red);
}

.submenu-chevron {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(-90deg);
}

.nav-collapsible-group.is-open .submenu-chevron {
  transform: rotate(0deg);
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  margin-bottom: 4px;
  transition: opacity 0.2s ease;
}

.nav-submenu[hidden] {
  display: none !important;
}

.sidebar-footer {
  padding: 12px;
  border-top: var(--border);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.sidebar-version-tag {
  display: block;
  text-align: center;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
  width: 100%;
}
.sidebar-version-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e293b;
  text-decoration: none;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #94a3b8;
  transition: all 0.15s ease;
}
.sidebar-version-link:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}
.topbar-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--line-color);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.topbar-version-pill:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}
.topbar-version-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid var(--ink);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.user-status-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  animation: pulseGreen 2.5s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.85; }
}
.user-info {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  line-height: 1.2;
}
.user-badge {
  font-size: 0.65rem;
  color: #334155;
  font-weight: 800;
  text-transform: uppercase;
}
.user-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}
.btn-logout {
  background: #fee2e2;
  color: #991b1b;
  border: 1.5px solid #dc2626;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.btn-logout:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   INGEKLAPTE STATUS (CHATGPT-STIJL ICON RAIL)
   -------------------------------------------------------------------------- */
.admin-shell.sidebar-collapsed .admin-sidebar {
  width: var(--sidebar-w-collapsed);
}
.admin-shell.sidebar-collapsed .brand-text,
.admin-shell.sidebar-collapsed .nav-label,
.admin-shell.sidebar-collapsed .nav-section-title,
.admin-shell.sidebar-collapsed .user-info,
.admin-shell.sidebar-collapsed .logout-label,
.admin-shell.sidebar-collapsed .ext-icon,
.admin-shell.sidebar-collapsed .sidebar-version-tag,
.admin-shell.sidebar-collapsed .nav-sub-indicator {
  display: none !important;
}
.admin-shell.sidebar-collapsed .sidebar-header {
  padding: 16px 8px;
  justify-content: center;
}
.admin-shell.sidebar-collapsed .sidebar-brand {
  display: none;
}
.admin-shell.sidebar-collapsed .sidebar-toggle-btn {
  margin: 0 auto;
}
.admin-shell.sidebar-collapsed .toggle-icon {
  transform: rotate(180deg);
}
.admin-shell.sidebar-collapsed .nav-item,
.admin-shell.sidebar-collapsed .nav-sub-item {
  justify-content: center;
  padding: 12px;
}
.admin-shell.sidebar-collapsed .sidebar-footer {
  flex-direction: column;
  padding: 10px 4px;
}
.admin-shell.sidebar-collapsed .btn-logout {
  padding: 6px;
}
.admin-shell.sidebar-collapsed .nav-collapsible-group {
  margin-bottom: 0;
}
.admin-shell.sidebar-collapsed .nav-parent-btn {
  justify-content: center;
}
.admin-shell.sidebar-collapsed .nav-chevron-wrap,
.admin-shell.sidebar-collapsed .nav-submenu {
  display: none !important;
}

/* --------------------------------------------------------------------------
   HOOFDCONTENT RECHTS
   -------------------------------------------------------------------------- */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}
.admin-shell.sidebar-collapsed .admin-main {
  margin-left: var(--sidebar-w-collapsed);
}

.main-topbar {
  background: var(--surface);
  border-bottom: var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-title h1 {
  font-family: var(--display);
  font-size: 1.85rem;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-date {
  font-weight: 800;
  font-size: 0.85rem;
  color: #1e293b;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #94a3b8;
}
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--ink);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--line-color);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
  line-height: 1.2;
}
.btn-admin:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--line-color);
}
.btn-primary {
  background: #22c55e !important;
  color: #ffffff !important;
  border: 2px solid var(--ink) !important;
  box-shadow: 2px 2px 0 var(--line-color) !important;
}
.btn-primary:hover {
  background: #16a34a !important;
  color: #ffffff !important;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--line-color) !important;
}
.btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--ink);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--line-color);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-subtle:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--line-color);
}

.admin-content {
  padding: clamp(20px, 3vw, 32px);
  flex: 1;
}

/* --------------------------------------------------------------------------
   MOBIEL NAVIGATION BAR
   -------------------------------------------------------------------------- */
.mobile-admin-bar {
  display: none;
  background: #fff8d9;
  border-bottom: var(--border);
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}
.btn-mobile-menu {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line-color);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mobile-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--red);
}
.mobile-bar-logout {
  font-size: 1.2rem;
  text-decoration: none;
}

/* Brievenbus Icoon & Cijfertje Badge */
.brievenbus-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.brievenbus-icon {
  display: inline-block;
  font-size: inherit;
  line-height: 1;
}
.brievenbus-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  line-height: 15px;
  padding: 0 4px;
  background: var(--red, #dc2626);
  color: #ffffff !important;
  font-size: 0.65rem !important;
  font-weight: 900 !important;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  text-align: center;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 5;
  box-sizing: border-box;
}
.mobile-bar-inbox {
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  font-size: 1.3rem;
  line-height: 1;
}
.topbar-inbox-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm, 8px);
  background: var(--surface);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--line-color);
  font-size: 1.25rem;
  color: inherit;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.topbar-inbox-btn:hover {
  transform: translateY(-1px);
  background: var(--surface-hover, #f8fafc);
  box-shadow: 3px 3px 0 var(--line-color);
}

.sidebar-backdrop {
  display: none;
}

/* --------------------------------------------------------------------------
   DASHBOARD KPI METRICS
   -------------------------------------------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.kpi-card {
  background: var(--surface);
  border: var(--border-thick);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.kpi-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kpi-icon {
  font-size: 1.6rem;
}
.kpi-value {
  font-family: var(--display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}
.kpi-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.kpi-red { border-top: 6px solid var(--red); }
.kpi-yellow { border-top: 6px solid var(--yellow); }
.kpi-blue { border-top: 6px solid var(--blue); }
.kpi-green { border-top: 6px solid var(--green); }

/* --------------------------------------------------------------------------
   PANELEN & KAARTEN
   -------------------------------------------------------------------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.panel {
  background: var(--surface);
  border: var(--border-thick);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.panel-header {
  padding: 16px 20px;
  background: #fafaf9;
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.panel-title {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.panel-body {
  padding: 20px;
}

/* --------------------------------------------------------------------------
   TABELLEN
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
.admin-table th {
  background: #f1f5f9;
  padding: 12px 14px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #1e293b;
  border-bottom: var(--border);
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}
.admin-table tr:hover td {
  background: #fdfdfd;
}

/* --------------------------------------------------------------------------
   TIJDFILTER KNOPPEN
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: inline-flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: var(--border);
  gap: 2px;
}
.filter-tab {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.12s ease;
}
.filter-tab.is-active {
  background: var(--surface);
  color: var(--red);
  box-shadow: 1px 1px 0 var(--line-color);
}

/* --------------------------------------------------------------------------
   ACTIVITY FEED
   -------------------------------------------------------------------------- */
.activity-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.activity-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.activity-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.activity-title {
  font-weight: 800;
  color: var(--ink);
}
.activity-meta {
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   TAKENBEHEER (GAMES.PHP)
   -------------------------------------------------------------------------- */
.task-item-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 2px 2px 0 var(--line-color);
}
.task-num {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--red);
  min-width: 32px;
  flex-shrink: 0;
}
.task-text {
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
}
.task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-small {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  border: var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.1s ease;
}
.btn-small:hover {
  transform: translate(-1px, -1px);
}
.btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #dc2626;
}
.btn-danger:hover {
  background: #dc2626;
  color: #fff;
}

/* --------------------------------------------------------------------------
   FORMULIEREN & INVOERVELDEN
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: var(--border-thick);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
input, select, textarea {
  max-width: 100%;
  box-sizing: border-box;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  margin-top: 6px;
  transition: box-shadow 0.15s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}
.form-help {
  font-size: 0.8rem;
  color: #334155;
  font-weight: 600;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   ALERTS / NOTIFICATIES
   -------------------------------------------------------------------------- */
.admin-alert {
  position: relative;
  padding: 12px 16px;
  border: var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  max-height: 250px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
              margin 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-alert.is-fading-out {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-color: transparent !important;
  pointer-events: none;
}

.admin-alert-success {
  background: #dcfce7;
  color: #166534;
  border-color: #22c55e;
}

.admin-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}

.admin-alert-info {
  background: #e0f2fe;
  color: #075985;
  border-color: #38bdf8;
}

.admin-alert .alert-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.admin-alert .alert-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  word-break: break-word;
}

.admin-alert .alert-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.65;
  padding: 6px 10px;
  border-radius: 4px;
  margin-left: auto;
  transition: opacity 0.2s, background-color 0.2s, transform 0.15s;
}

.admin-alert .alert-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.08);
  transform: scale(1.1);
}

.admin-alert-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3.5px;
  width: 100%;
  background: currentColor;
  opacity: 0.35;
  transform-origin: left;
  animation: adminAlertProgress 5s linear forwards;
}

.admin-alert:hover .admin-alert-progress {
  animation-play-state: paused;
}

@keyframes adminAlertProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* --------------------------------------------------------------------------
   BREADCRUMBS
   -------------------------------------------------------------------------- */
.admin-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #334155;
}
.admin-breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}
.admin-breadcrumbs a:hover {
  text-decoration: underline;
}
.admin-breadcrumbs .sep {
  color: #64748b;
}
.admin-breadcrumbs .current {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   DONATIE & BETAALKNOP SPOTLIGHT PANEL
   -------------------------------------------------------------------------- */
.payment-spotlight {
  border: var(--border-thick);
  box-shadow: 4px 4px 0 #16a34a, 6px 6px 0 var(--line-color);
  background: #ffffff;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
}
.payment-spotlight-header {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-bottom: var(--border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.payment-spotlight-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  color: #14532d;
  display: flex;
  align-items: center;
  gap: 8px;
}
.payment-spotlight-badge {
  background: #166534;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.payment-spotlight-body {
  padding: 18px;
}
.payment-kpi-main {
  background: #f8fafc;
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
}
.payment-kpi-clicks {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.payment-kpi-clicks .number {
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  color: #166534;
}
.payment-kpi-clicks .label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #166534;
  background: #dcfce7;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #86efac;
}
.payment-kpi-subtext {
  font-size: 0.82rem;
  color: #334155;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}
.payment-kpi-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.payment-amount-box {
  background: #ffffff;
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.payment-amount-box.confirmed {
  background: #f0fdf4;
  border-color: #22c55e;
}
.payment-amount-box .box-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #1e293b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.payment-amount-box.confirmed .box-title {
  color: #166534;
}
.payment-amount-box .box-value {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}
.payment-amount-box.confirmed .box-value {
  color: #15803d;
}
.payment-amount-box .box-note {
  font-size: 0.74rem;
  color: #334155;
  font-weight: 600;
  line-height: 1.25;
}
.payment-note-callout {
  background: #fefce8;
  border: 1px dashed #ca8a04;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #713f12;
  margin-bottom: 14px;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   SPEULHAL ARCADE CARDS
   -------------------------------------------------------------------------- */
.arcade-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.arcade-card {
  background: #ffffff;
  border: var(--border-thick);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.arcade-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.arcade-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.arcade-card-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.arcade-card-title {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.arcade-card-desc {
  color: #334155;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 16px;
}
.arcade-stat-row {
  display: flex;
  gap: 12px;
  background: #f8fafc;
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 18px;
}
.arcade-stat-item {
  flex: 1;
}
.arcade-stat-item .val {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1;
}
.arcade-stat-item .lbl {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   FOTO'S & VIDEO'S BEHEER KAARTEN EN GRIDS
   -------------------------------------------------------------------------- */
.media-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.media-admin-card,
.media-card-published {
  background: var(--surface);
  border: var(--border-thick);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.media-admin-card:hover,
.media-card-published:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.media-thumb-wrap {
  position: relative;
  height: 190px;
  background: #141619;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-thumb-wrap img,
.media-thumb-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-body-admin {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.media-card-body-admin h3,
.media-card-body-admin h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--ink);
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (MOBIEL & TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .main-topbar {
    display: none; /* Mobiele topbar neemt dit over */
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .login-body {
    justify-content: center;
    padding: 16px;
    background-position: center center;
  }
  .login-wrapper {
    margin-left: 0;
    max-width: 420px;
  }
  .kluis-bg-video {
    object-position: center center;
  }
}

/* User Profile Modal in Admin */
.user-profile-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.user-profile-modal.is-active,
.user-profile-modal:not([hidden]) {
  display: flex;
}
.user-profile-modal[hidden] {
  display: none !important;
}
.user-profile-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}
.user-profile-card {
  position: relative;
  z-index: 2;
  margin: auto;
  background: #ffffff;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  box-sizing: border-box;
  animation: modalPopIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.user-profile-card.inbox-modal-large {
  max-width: 920px;
  width: 95vw;
}
@media (max-width: 600px) {
  .user-profile-modal {
    padding: 10px;
  }
  .user-profile-card {
    padding: 16px 14px;
    box-shadow: 4px 4px 0 var(--ink);
    border-width: 2.5px;
    border-radius: 10px;
    max-height: calc(100dvh - 20px);
  }
  .user-profile-card.inbox-modal-large {
    max-width: 100% !important;
    width: 100% !important;
    padding: 14px 10px !important;
  }
}
@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.user-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}
.user-profile-close {
  background: #fee2e2;
  border: 2px solid var(--ink);
  color: #991b1b;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  min-width: 38px;
  min-height: 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  line-height: 1;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.user-profile-close:hover,
.user-profile-close:focus-visible {
  background: #fecaca;
  transform: scale(1.06);
}
.user-profile-close:active {
  background: #fca5a5;
  transform: scale(0.95);
}
.profile-info-row {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}
.profile-menu-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
  font-family: inherit;
  box-sizing: border-box;
}
.profile-choice-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
  background: #fef08a;
}
.profile-choice-btn .choice-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.profile-choice-btn .choice-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-choice-btn .choice-text strong {
  font-size: 0.95rem;
  color: var(--ink);
}
.profile-choice-btn .choice-text small {
  font-size: 0.8rem;
  color: #334155;
  font-weight: 600;
}
.profile-choice-btn .choice-arrow {
  font-size: 1.1rem;
  font-weight: 900;
  color: #334155;
}
.choice-btn-logout:hover {
  background: #fee2e2 !important;
}
.choice-btn-logout:hover strong {
  color: #991b1b;
}
.profile-pw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.profile-logout-wrap {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px dashed #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-logout-btn {
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid #dc2626;
  border-radius: 4px;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-logout-btn:hover {
  background: #dc2626;
  color: #fff;
}

/* --------------------------------------------------------------------------
   MOBIEL RESPONSIVE STYLES (TABLET & SMARTPHONE)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* 0. Admin Shell & Body containment */
  html, body.admin-body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .admin-shell {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    position: relative !important;
  }

  /* 1. Vaste bovenbalk over de volle breedte met menu hamburger */
  .mobile-admin-bar {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 52px !important;
    z-index: 998 !important;
    background: #fff8d9 !important;
    border-bottom: var(--border-thick) !important;
    padding: 8px 14px !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
  }
  .mobile-bar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: var(--display) !important;
    font-size: 0.95rem !important;
    color: var(--red) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .mobile-bar-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
  }
  .mobile-bar-inbox,
  .mobile-bar-logout {
    font-size: 1.25rem !important;
    text-decoration: none !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
  }

  /* 2. Zijbalk wordt een off-canvas uitschuiflade */
  .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 290px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1000 !important;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.35);
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    visibility: hidden;
    pointer-events: none;
  }
  .admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    z-index: 999 !important;
    touch-action: manipulation;
  }
  .admin-shell.sidebar-open .sidebar-backdrop {
    display: block !important;
  }

  .nav-item,
  button.nav-parent-btn,
  .nav-sub-item {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Op mobiel altijd volledige teksten in de geopende zijbalk drawer tonen */
  .admin-shell.sidebar-collapsed .brand-text,
  .admin-shell.sidebar-collapsed .nav-label,
  .admin-shell.sidebar-collapsed .nav-section-title,
  .admin-shell.sidebar-collapsed .user-info,
  .admin-shell.sidebar-collapsed .sidebar-brand {
    display: flex !important;
  }
  .admin-shell.sidebar-collapsed .nav-label {
    display: inline !important;
  }
  .admin-shell.sidebar-collapsed .admin-sidebar {
    width: 290px !important;
  }
  .admin-shell.sidebar-collapsed .nav-item,
  .admin-shell.sidebar-collapsed .nav-sub-item {
    justify-content: flex-start !important;
    padding: 10px 12px !important;
  }
  .admin-shell.sidebar-collapsed .ext-icon,
  .admin-shell.sidebar-collapsed .logout-label,
  .admin-shell.sidebar-collapsed .nav-sub-indicator {
    display: inline-block !important;
  }
  .admin-shell.sidebar-collapsed .nav-parent-btn {
    justify-content: flex-start !important;
  }
  .admin-shell.sidebar-collapsed .nav-chevron-wrap {
    display: inline-flex !important;
  }
  .admin-shell.sidebar-collapsed .nav-submenu {
    display: flex !important;
  }
  .admin-shell.sidebar-collapsed .nav-submenu[hidden] {
    display: none !important;
  }

  /* Kruisje knop in zijbalk op mobiel */
  .sidebar-toggle-btn {
    width: 32px !important;
    height: 32px !important;
  }
  .sidebar-toggle-btn .desktop-toggle-icon {
    display: none !important;
  }
  .sidebar-toggle-btn .mobile-close-icon {
    display: inline-block !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  /* 3. Hoofdcontent vult volledig 100% van het scherm onder de vaste bovenbalk */
  .admin-main {
    margin-left: 0 !important;
    margin-top: 52px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
  }
  .admin-shell.sidebar-collapsed .admin-main {
    margin-left: 0 !important;
  }
  .admin-content {
    padding: 12px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* 4. Topbar en titels */
  .main-topbar {
    position: static !important;
    padding: 12px 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .topbar-title h1 {
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }
  .topbar-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .topbar-date {
    font-size: 0.78rem !important;
    padding: 4px 8px !important;
  }

  /* 5. KPI Tegels en Dashboard Grids */
  .dashboard-grid,
  .panels-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .dashboard-left,
  .dashboard-right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .kpi-grid,
  .stats-grid,
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .kpi-card {
    padding: 12px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .kpi-title {
    font-size: 0.74rem !important;
    word-break: break-word !important;
  }
  .kpi-icon {
    font-size: 1.3rem !important;
  }
  .kpi-value {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
    word-break: break-all !important;
    line-height: 1.1 !important;
  }
  .kpi-sub {
    font-size: 0.72rem !important;
    word-break: break-word !important;
  }

  /* 6. Donatie Spotlight & Betaalknop */
  .payment-spotlight {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .payment-spotlight-header {
    padding: 12px 14px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .payment-spotlight-body {
    padding: 14px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .payment-kpi-main {
    padding: 12px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .payment-kpi-clicks .number {
    font-size: 1.8rem !important;
  }
  .payment-kpi-amounts {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .payment-amount-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  .payment-amount-box .box-value {
    font-size: 1.25rem !important;
    word-break: break-all !important;
  }
  .payment-note-callout {
    font-size: 0.78rem !important;
    word-break: break-word !important;
  }

  /* 7. Speulhal Arcade Kaarten */
  .arcade-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }
  .arcade-card {
    padding: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .arcade-stat-row {
    padding: 8px 10px !important;
    gap: 8px !important;
  }
  .arcade-stat-item .val {
    font-size: 1.1rem !important;
  }

  /* 8. Panelen, Kaarten en Formulieren */
  .panel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  .panel-header {
    padding: 12px 14px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .panel-title {
    font-size: 1.15rem !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
  }
  .panel-header .btn-small,
  .panel-header a {
    align-self: flex-start !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .panel-body {
    padding: 14px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  .form-card {
    padding: 16px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .admin-card {
    padding: 14px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .party-btn {
    white-space: normal !important;
    text-align: center !important;
    word-break: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 9. Tabellen horizontaal scrollbaar maken met touch scrolling */
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    margin-bottom: 12px !important;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    box-sizing: border-box !important;
  }
  .admin-table {
    min-width: 480px !important;
    max-width: none !important;
  }

  /* 10. Takenoverzicht (Rad van Carnaval) */
  .task-item-card {
    padding: 12px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .task-text {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }
  .task-actions {
    width: 100% !important;
    justify-content: flex-end !important;
    margin-top: 4px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  /* 11. Foto's & Video's Grid */
  .media-items-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .media-admin-card,
  .media-card-published {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  .admin-tabs-bar {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px !important;
  }
  .tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
  }

  /* 12. Login Scherm Mobiel */
  .login-wrapper {
    margin: 0 auto !important;
    max-width: 100% !important;
  }
  .login-body {
    justify-content: center !important;
    padding: 16px !important;
    background-position: center center !important;
  }
  .login-card {
    padding: 22px 16px !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 13. Filter Tabs */
  .filter-tabs {
    width: 100% !important;
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 4px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
  }
  .filter-tab {
    flex: 1 0 auto !important;
    text-align: center !important;
    white-space: nowrap !important;
    padding: 7px 10px !important;
    font-size: 0.78rem !important;
  }

  /* 14. Modals */
  .user-profile-modal {
    padding: 12px !important;
  }
  .user-profile-card {
    width: 100% !important;
    max-width: 480px !important;
    padding: 18px 14px !important;
    box-sizing: border-box !important;
  }

  /* 15. Activity Feed */
  .activity-feed {
    width: 100% !important;
    max-width: 100% !important;
  }
  .activity-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    gap: 10px !important;
    padding: 10px !important;
  }
  .activity-info {
    min-width: 0 !important;
    overflow: hidden !important;
    word-break: break-word !important;
  }
  .activity-title {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }
  .activity-meta {
    font-size: 0.75rem !important;
    color: #334155 !important;
    font-weight: 600 !important;
    word-break: break-word !important;
  }
}

@media (max-width: 580px) {
  .kpi-grid,
  .stats-grid,
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .arcade-stat-row {
    flex-direction: column !important;
    gap: 6px !important;
  }
  .admin-alert {
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    word-break: break-word !important;
  }
  .btn-small {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}



/* --------------------------------------------------------------------------
   INBOX & MAIL COMMUNICATIE (info@cvvanalluswa.nl)
   -------------------------------------------------------------------------- */
.inbox-page-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Bovenbalk met titel, statusbadge en prominente Nieuw Bericht knop */
.inbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 2px;
}
.inbox-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.inbox-top-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
.inbox-top-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #475569;
  min-width: 0;
}
.inbox-top-email {
  font-weight: 700;
  color: var(--ink);
}
.inbox-top-dot {
  color: #94a3b8;
  font-weight: bold;
}
.inbox-active-filter-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--ink);
  border: 1px solid #cbd5e1;
  text-transform: capitalize;
  white-space: nowrap;
}
.inbox-top-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.btn-top-compose {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink, #141619);
  color: #ffffff !important;
  border: 2px solid var(--ink, #141619);
  box-shadow: 2.5px 2.5px 0 var(--yellow, #ffdf00);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  white-space: nowrap;
}
.btn-top-compose:hover {
  background: var(--red-dark, #b91c1c);
  border-color: var(--red-dark, #b91c1c);
  color: #ffffff !important;
  transform: translate(-1.5px, -1.5px);
  box-shadow: 3.5px 3.5px 0 var(--yellow, #ffdf00);
}
.btn-top-compose:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--yellow, #ffdf00);
}
.btn-top-compose .compose-btn-icon {
  font-size: 1.05rem;
  line-height: 1;
}
.btn-top-compose .compose-btn-text {
  line-height: 1.2;
}

/* Statistieken Grid */
.inbox-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.inbox-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}
.inbox-stat-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}
.inbox-stat-card.is-active-filter {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  background: #f8fafc;
}
.inbox-stat-card.is-highlight {
  background: #fff1f2;
  border-color: #e11d48;
}
.inbox-stat-card .stat-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.inbox-stat-card .stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.inbox-stat-card .stat-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #1e293b;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-stat-card .stat-value {
  font-size: 1.35rem;
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.inbox-stat-card .stat-total-text {
  font-size: 0.85rem;
  color: #64748b;
  font-family: var(--font);
}
.inbox-stat-card.is-highlight .stat-value {
  color: #e11d48;
}

/* ==========================================================================
   SOCIALS BEHEER STATISTIEKEN & KANAAL KAARTEN
   ========================================================================== */
.socials-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.social-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface, #ffffff);
  border: 2px solid var(--border-color, #cbd5e1);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: var(--ink, #1e1b4b);
  box-shadow: 2px 2px 0 var(--line-color, #94a3b8);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.social-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--line-color, #94a3b8);
}

.social-kpi-card.is-active-tab {
  border-color: var(--red, #dc2626) !important;
  background: #fff5f5 !important;
  box-shadow: 3px 3px 0 var(--red, #dc2626) !important;
}

.social-kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.social-kpi-icon-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.social-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.social-kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-kpi-count {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--display, inherit);
}

.social-kpi-body {
  margin-bottom: 8px;
  min-width: 0;
}

.social-kpi-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink, #1e1b4b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.social-kpi-sub {
  font-size: 0.74rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.social-kpi-footer {
  margin-top: auto;
  min-width: 0;
}

.social-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.3;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.social-status-pill.pill-amber {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.social-status-pill.pill-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.social-status-pill.pill-red {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

@media (max-width: 860px) {
  .socials-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .social-kpi-card {
    padding: 10px 10px !important;
    border-radius: 10px !important;
  }
  .social-kpi-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.95rem !important;
  }
  .social-kpi-label {
    font-size: 0.68rem !important;
  }
  .social-kpi-title {
    font-size: 0.85rem !important;
  }
  .social-kpi-count {
    font-size: 1.2rem !important;
  }
  .social-kpi-sub {
    font-size: 0.7rem !important;
  }
  .social-status-pill {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
  }
}

@media (max-width: 768px) {
  .inbox-top-bar {
    padding: 8px 12px !important;
    gap: 8px !important;
    margin-bottom: 2px !important;
  }
  .inbox-top-left {
    gap: 6px !important;
  }
  .inbox-top-title {
    font-size: 1.05rem !important;
  }
  .inbox-top-subtitle {
    font-size: 0.75rem !important;
    gap: 4px !important;
  }
  .inbox-active-filter-badge {
    font-size: 0.68rem !important;
    padding: 1px 6px !important;
  }
  .btn-top-compose {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    gap: 4px !important;
    box-shadow: 2px 2px 0 var(--yellow, #ffdf00) !important;
  }
  .btn-top-compose .compose-btn-icon {
    font-size: 0.92rem !important;
  }
  .inbox-stats-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 3px !important;
    margin-bottom: 12px !important;
  }
  .inbox-stat-card {
    padding: 6px 1px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 2px !important;
    border-radius: 8px !important;
    box-shadow: 2px 2px 0 var(--line-color) !important;
  }
  .inbox-stat-card .stat-icon {
    font-size: 1.15rem !important;
    line-height: 1 !important;
  }
  .inbox-stat-card .stat-info {
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .inbox-stat-card .stat-label {
    font-size: 0.54rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: 100% !important;
    line-height: 1.1 !important;
  }
  .inbox-stat-card .stat-value {
    font-size: 0.85rem !important;
    line-height: 1.1 !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 1px !important;
  }
  .inbox-stat-card .stat-value strong {
    font-size: 0.85rem !important;
  }
  .inbox-stat-card .stat-total-text {
    font-size: 0.65rem !important;
    color: #64748b !important;
  }
}

@media (max-width: 480px) {
  .inbox-top-email,
  .inbox-top-dot {
    display: none !important;
  }
  .inbox-top-bar {
    padding: 7px 10px !important;
  }
  .inbox-top-title {
    font-size: 1rem !important;
  }
  .btn-top-compose {
    padding: 6px 9px !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 380px) {
  .inbox-stats-grid {
    gap: 2px !important;
  }
  .inbox-stat-card {
    padding: 5px 1px !important;
  }
  .inbox-stat-card .stat-icon {
    font-size: 1rem !important;
  }
  .inbox-stat-card .stat-label {
    font-size: 0.50rem !important;
    letter-spacing: -0.03em !important;
  }
  .inbox-stat-card .stat-value {
    font-size: 0.78rem !important;
  }
  .inbox-stat-card .stat-value strong {
    font-size: 0.78rem !important;
  }
  .inbox-stat-card .stat-total-text {
    font-size: 0.60rem !important;
  }
}

/* Toolbar & Knoppen */
.inbox-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.inbox-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.inbox-action-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-lbl-compact {
  display: none;
}
.btn-lbl-full {
  display: inline;
}
.inbox-search-form {
  display: flex;
  align-items: center;
  gap: 4px;
}
.admin-input-search {
  padding: 6px 12px;
  font-size: 0.86rem;
  font-family: inherit;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  min-width: 220px;
}
.admin-input-search:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--yellow);
}

/* Batch Actions Toolbar */
.inbox-batch-bar {
  background: var(--ink, #1e1b4b);
  color: #fff;
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  padding: 10px 16px;
  margin-bottom: 12px;
  position: sticky;
  top: 12px;
  z-index: 100;
  animation: slideDownBatch 0.2s ease-out;
}
@keyframes slideDownBatch {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.inbox-batch-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.inbox-batch-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.batch-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
}
.batch-count-pill strong {
  color: #fbbf24;
  font-size: 1.05rem;
}
.inbox-batch-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-batch-btn {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
}
.btn-batch-btn:hover {
  transform: translateY(-1px) !important;
}
.btn-batch-spam {
  background: #ea580c !important;
  color: #fff !important;
  border-color: #c2410c !important;
}
.btn-batch-spam:hover {
  background: #c2410c !important;
  color: #fff !important;
}

/* Berichtentabel */
.inbox-table-panel {
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.inbox-table {
  width: 100%;
  border-collapse: collapse;
}
.inbox-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #e2e8f0;
}
.inbox-row td {
  cursor: pointer;
}
.inbox-row:hover td {
  background: #f8fafc;
}
.inbox-row.is-unread-row td {
  background: #fffbeb;
  font-weight: 700;
}
.inbox-row.is-unread-row:hover td {
  background: #fef3c7;
}

/* Status dots & indicators */
.dot-unread {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px #fecaca;
}
.dot-read {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

/* Links in rijen */
.inbox-row-link {
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.inbox-sender-email {
  display: block;
  font-size: 0.76rem;
  color: #334155;
  font-weight: 600;
}
.inbox-subject-text {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}
.inbox-snippet-text {
  display: block;
  font-size: 0.8rem;
  color: #334155;
  font-weight: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
}
.inbox-date-text {
  font-size: 0.82rem;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
}

/* Badges */
.badge-inbox-cat {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  margin-right: 4px;
}
.badge-inbox-source {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 4px;
  border: 1px solid var(--ink);
}
.badge-source-contact_form {
  background: #e0f2fe;
  color: #0369a1;
}
.badge-source-pop3_incoming {
  background: #fef3c7;
  color: #b45309;
}
.badge-source-outgoing {
  background: #f3e8ff;
  color: #7e22ce;
}
.badge-inbox-status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 4px;
  border: 1px solid var(--ink);
}
.status-unread {
  background: #fee2e2;
  color: #991b1b;
}
.status-read {
  background: #f1f5f9;
  color: #475569;
}
.status-replied {
  background: #dcfce7;
  color: #166534;
}
.status-archived {
  background: #e2e8f0;
  color: #475569;
}
.status-sent {
  background: #f3e8ff;
  color: #7e22ce;
}

/* Lege Inbox Staat */
.inbox-empty-cell {
  padding: 60px 20px !important;
  text-align: center;
}
.inbox-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.inbox-empty-state .empty-icon {
  font-size: 3rem;
  line-height: 1;
}
.inbox-empty-state h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ink);
}
.inbox-empty-state p {
  margin: 0;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 400px;
}

/* DETAIL CONTAINER */
.inbox-detail-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inbox-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.inbox-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.inbox-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  background: #f8fafc;
  border-bottom: var(--border);
}
.inbox-detail-meta-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.inbox-sender-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.inbox-detail-subject {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--ink);
  line-height: 1.2;
}
.inbox-detail-subline {
  font-size: 0.9rem;
  color: #334155;
  font-weight: 500;
}
.inbox-detail-subline a {
  color: var(--blue);
  text-decoration: underline;
}
.detail-sep {
  margin: 0 6px;
  color: #cbd5e1;
}
.inbox-detail-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.inbox-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.inbox-timestamp {
  font-size: 0.82rem;
  color: #334155;
  font-weight: 600;
  text-align: right;
}
.inbox-body-content {
  padding: 24px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Threads / Eerdere Reacties */
.inbox-thread-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inbox-thread-title {
  margin: 10px 0 4px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
}
.inbox-thread-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inbox-thread-card {
  background: #f1f5f9;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 2px 2px 0 var(--line-color);
  padding: 16px 20px;
}
.thread-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #334155;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 6px;
}
.thread-date {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
}
.thread-card-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
}

/* Reply Panel & Formulier */
.inbox-reply-panel {
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.inbox-reply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.reply-sender-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #334155;
  font-weight: 600;
}

/* Modals */
.inbox-modal-card {
  max-width: 680px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}
.inbox-settings-card {
  max-width: 820px;
}
.settings-sections-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}
.settings-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 16px;
}
.settings-box-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}
.settings-box-desc {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #334155;
  font-weight: 500;
}

/* Sneltoetsen Instructiebalk */
.inbox-shortcuts-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: #334155;
}
.shortcuts-intro {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-weight: 800;
}
.shortcuts-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.shortcut-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 600;
}
.kbd-hint,
.shortcut-chip kbd {
  display: inline-block;
  background: #0f172a;
  color: #fff;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.2;
}

/* Geselecteerde rij voor toetsenbordnavigatie */
.inbox-row.is-selected-row td {
  background: #e0e7ff !important;
  box-shadow: inset 3px 0 0 #4f46e5;
}

/* Snelle acties op tabelrijen */
.inbox-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.inbox-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}
.inbox-row-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.btn-action-read:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}
.btn-action-reply {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.btn-action-reply:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
}
.btn-action-forward {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}
.btn-action-forward:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.btn-action-trash {
  background: #fff;
  border-color: #fecaca;
  color: #b91c1c;
}
.btn-action-trash:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}
.btn-action-restore {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}
.btn-action-restore:hover {
  background: #fef9c3;
  border-color: #facc15;
}
.btn-action-spam {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.btn-action-spam:hover {
  background: #ffedd5;
  border-color: #f97316;
  color: #9a3412;
}
.icon-spam {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
}
.icon-sent {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
}

/* Checkbox selectiekolom & custom indicator */
.col-select {
  width: 44px;
  text-align: center !important;
  vertical-align: middle;
  padding: 8px 4px !important;
}
.inbox-checkbox-custom-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border-radius: 4px;
}
.inbox-checkbox-custom-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #4f46e5;
  margin: 0;
}
.inbox-row.is-checked-row td {
  background: #eff6ff !important;
  box-shadow: inset 3px 0 0 #3b82f6;
}
.inbox-row.is-checked-row:hover td {
  background: #dbeafe !important;
}

/* Bijlagen weergave in Inbox (Gmail-stijl) */
.inbox-att-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-size: 0.85rem;
  color: #64748b;
  vertical-align: middle;
}
.inbox-attachments-section {
  margin-top: 20px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
}
.inbox-attachments-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.inbox-attachments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.inbox-attachment-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.inbox-attachment-card:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}
.inbox-att-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.inbox-att-meta {
  display: flex;
  flex-direction: column;
  max-width: 200px;
}
.inbox-att-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-att-size {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}
.inbox-att-actions {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

/* Live Verbindingstest Feedback Console in Modal */
.test-feedback-card {
  margin-top: 14px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px;
}
.test-feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}
.test-feedback-banner {
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.test-feedback-banner.test-success {
  background: #dcfce7;
  color: #166534;
  border: 1.5px solid #86efac;
}
.test-feedback-banner.test-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1.5px solid #f87171;
}
.test-feedback-banner.test-loading {
  background: #e0f2fe;
  color: #0369a1;
  border: 1.5px solid #7dd3fc;
}
.test-feedback-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.test-step-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.test-step-row.step-ok {
  border-left: 4px solid #22c55e;
}
.test-step-row.step-fail {
  border-left: 4px solid #ef4444;
  background: #fff5f5;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
}
.step-ok .step-badge {
  background: #dcfce7;
  color: #166534;
}
.step-fail .step-badge {
  background: #fee2e2;
  color: #991b1b;
}
.step-content {
  flex: 1;
}

/* Responsive aanpassingen voor mobiel */
@media (max-width: 768px) {
  .inbox-toolbar-row {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 12px;
  }
  .inbox-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .inbox-search-form {
    width: 100%;
    display: flex;
    gap: 4px;
  }
  .inbox-search-form .admin-input-search {
    flex: 1;
    width: 100%;
    min-width: 0;
  }
  .inbox-action-buttons-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
  }
  .inbox-action-buttons-group .form-action-pop3 {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
  }
  .inbox-action-buttons-group .form-action-pop3 .btn-inbox-action {
    width: 100%;
  }
  .btn-inbox-action {
    flex: 1 1 0;
    min-width: 0;
    padding: 5px 6px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    height: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
    box-shadow: 1.5px 1.5px 0 var(--line-color) !important;
  }
  .btn-inbox-action:active {
    box-shadow: 0 0 0 transparent !important;
    transform: translate(1px, 1px) !important;
  }
  .inbox-detail-header {
    flex-direction: column;
    align-items: stretch;
  }
  .inbox-detail-meta-right {
    align-items: flex-start;
  }
  .inbox-timestamp {
    text-align: left;
  }
  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Batch bar zwevend onderin op mobiel voor eenvoudige duimbediening */
  .inbox-batch-bar {
    position: fixed !important;
    bottom: 12px !important;
    top: auto !important;
    left: 8px !important;
    right: 8px !important;
    margin-bottom: 0 !important;
    z-index: 10050 !important;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }
  .inbox-batch-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .inbox-batch-left {
    justify-content: space-between !important;
    width: 100% !important;
  }
  .inbox-batch-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .inbox-batch-actions .btn-batch-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 4px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  /* Inbox tabel op mobiel compacter en overzichtelijker */
  .inbox-table th.col-cat,
  .inbox-table td.col-cat {
    display: none !important;
  }
  .inbox-snippet-text {
    max-width: 190px !important;
  }
  .inbox-row-actions {
    gap: 2px !important;
  }
  .inbox-row-actions .inbox-row-btn .btn-text {
    display: none !important;
  }
  .inbox-row-actions .inbox-row-btn {
    padding: 6px 7px !important;
    min-width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
  }
  .inbox-row-actions .inbox-row-btn .btn-icon {
    font-size: 0.95rem !important;
    line-height: 1 !important;
  }
  .col-select {
    width: 38px !important;
    padding: 6px 2px !important;
  }
  .inbox-checkbox-custom-wrap {
    width: 36px !important;
    height: 36px !important;
  }
  .inbox-checkbox-custom-wrap input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
  }
}

/* ==========================================================================
   Donatie Telemetrie & IP Modal
   ========================================================================== */
.btn-telemetry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-telemetry-badge:hover {
  background: var(--yellow, #ffcb05);
  border-color: var(--ink, #111827);
  box-shadow: 2px 2px 0 var(--ink, #111827);
  transform: translateY(-1px);
}
.btn-telemetry-badge:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-telemetry-badge .telemetry-badge-icon {
  font-size: 0.85rem;
}
.btn-telemetry-empty {
  opacity: 0.85;
  border-style: dashed;
  color: #334155;
  font-weight: 600;
  font-family: inherit;
}

.mobile-only-ip-wrap {
  display: none;
}
@media (max-width: 768px) {
  .mobile-only-ip-wrap {
    display: inline-block !important;
  }
}

.cv-telemetry-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.cv-telemetry-modal.is-active,
.cv-telemetry-modal:not([hidden]) {
  display: flex;
}
.cv-telemetry-modal[hidden] {
  display: none !important;
}
.cv-telemetry-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}
.cv-telemetry-card {
  position: relative;
  z-index: 2;
  margin: auto;
  background: #ffffff;
  border: 3px solid var(--ink, #111827);
  box-shadow: 8px 8px 0 var(--ink, #111827);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  animation: modalPopIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cv-telemetry-header {
  padding: 14px 18px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffdf5;
}
.cv-telemetry-close {
  background: #fee2e2;
  border: 1.5px solid #ef4444;
  color: #991b1b;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.cv-telemetry-close:hover {
  background: #dc2626;
  color: #ffffff;
}
.cv-telemetry-body {
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.telemetry-banner {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.telemetry-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.telemetry-item-full {
  grid-column: 1 / -1;
}
.telemetry-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1e293b;
}
.telemetry-ip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.telemetry-ip-code {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}
.telemetry-ip-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.telemetry-val-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.telemetry-val-icon {
  font-size: 1.15rem;
  line-height: 1;
}
.telemetry-val-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}
.telemetry-raw-ua-box {
  margin: 8px 0 0;
  padding: 10px;
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 6px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 120px;
  overflow-y: auto;
}
.cv-telemetry-footer {
  padding: 12px 18px;
  border-top: 2px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 540px) {
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   GLOBALE CONTRASTVERHOGING VOOR LICHTGRIJZE TEKSTEN OP WITTE ACHTERGROND
   -------------------------------------------------------------------------- */
.admin-shell small,
.admin-shell .text-muted,
.admin-shell p.text-muted,
.admin-shell span.text-muted,
.panel small,
.panel p.text-muted,
.table-desc,
.admin-desc {
  color: #334155;
}
.admin-shell .admin-label {
  color: #0f172a;
  font-weight: 800;
}
.admin-input::placeholder,
.admin-textarea::placeholder,
.admin-input-search::placeholder {
  color: #475569;
  opacity: 1;
}

/* E-mail Handtekening & Voettekst Live Preview in Composer */
.inbox-footer-live-preview {
  position: relative;
  transition: border-color 0.2s ease;
}
.inbox-footer-live-preview:hover {
  border-color: #64748b !important;
}
.inbox-footer-live-preview img {
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   AGENDA FORMULIER & INPUT CONTRASTVERHOGING
   -------------------------------------------------------------------------- */
.form-input::placeholder,
.form-textarea::placeholder,
.form-select::placeholder {
  color: #475569 !important;
  opacity: 1 !important;
}

#agenda-form-panel {
  background: #ffffff;
}

#agenda-form-panel .panel-header {
  background: #f8fafc;
  border-bottom: 2px solid #0f172a;
}

#agenda-form-panel .panel-title {
  color: #0f172a !important;
  font-weight: 900 !important;
}

#agenda-form-panel .panel-body {
  color: #0f172a !important;
}

#agenda-form-panel label,
#agenda-form-panel .admin-label,
#agenda-form-panel .form-group label {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  display: block;
  margin-bottom: 6px;
  text-transform: none;
}

#agenda-form-panel .form-input,
#agenda-form-panel .form-textarea,
#agenda-form-panel .form-select {
  color: #0f172a !important;
  font-weight: 600;
  border: 2px solid #0f172a;
  background: #ffffff;
}

#agenda-form-panel .form-input:focus,
#agenda-form-panel .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#agenda-form-panel input[type="radio"] + span,
#agenda-form-panel input[type="checkbox"] + span {
  color: #0f172a !important;
  font-weight: 700;
}

/* =========================================================================
   LIVE E-MAIL TOAST NOTIFICATIE (RECHTSONDERIN) - CARNAVALS RETRO STIJL
   ========================================================================= */
.cv-mail-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 390px;
  width: calc(100vw - 32px);
}

.cv-mail-toast {
  pointer-events: auto;
  background: #ffffff;
  border: 3px solid var(--ink, #0f172a);
  box-shadow: 6px 6px 0 var(--ink, #0f172a);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  display: block;
  user-select: none;
}

.cv-mail-toast:hover {
  box-shadow: 8px 8px 0 var(--ink, #0f172a);
  transform: translateY(-2px);
}

.cv-mail-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cv-mail-toast.is-fading {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.cv-mail-toast-header {
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  padding: 10px 14px;
  border-bottom: 2.5px solid var(--ink, #0f172a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cv-mail-toast-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display, inherit);
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--ink, #0f172a);
  margin: 0;
  letter-spacing: -0.01em;
}

.cv-mail-toast-close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--ink, #0f172a);
  font-weight: 900;
  transition: background 0.15s, transform 0.15s;
}

.cv-mail-toast-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.15);
}

.cv-mail-toast-body {
  padding: 12px 14px 10px;
  background: #ffffff;
  color: var(--ink, #0f172a);
}

.cv-mail-toast-sender {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cv-mail-toast-subject {
  font-size: 0.92rem;
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-mail-toast-snippet {
  font-size: 0.83rem;
  line-height: 1.42;
  color: #334155;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cv-mail-toast-footer {
  padding: 8px 14px;
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
}

.cv-mail-toast-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  color: #2563eb;
}

.cv-mail-toast-progress-wrap {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  overflow: hidden;
}

.cv-mail-toast-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #f59e0b 100%);
  width: 100%;
  transform-origin: left center;
  animation: cvToastProgress 5s linear forwards;
}

.cv-mail-toast:hover .cv-mail-toast-progress-bar {
  animation-play-state: paused;
}

@keyframes cvToastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (max-width: 600px) {
  .cv-mail-toast-container {
    bottom: 16px;
    right: 14px;
    left: 14px;
    width: auto;
    max-width: none;
  }
}

/* =========================================================================
   MAXIMALE BREEDTE VOOR INBOX MODALS & TEKSTVELDEN (NIEUW BERICHT / ANTWOORD)
   ========================================================================= */
#modal-compose .user-profile-card,
#modal-reply .user-profile-card,
#modal-forward .user-profile-card {
  max-width: 1100px !important;
  width: 96vw !important;
  box-sizing: border-box !important;
}

.inbox-compose-form,
.inbox-reply-form,
.inbox-forward-form {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.inbox-compose-form .form-group,
.inbox-reply-form .form-group,
.inbox-forward-form .form-group {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.admin-textarea,
#comp_body,
#reply_body,
#fwd_body {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  border: 2px solid var(--ink, #0f172a);
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a !important;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 10px 12px;
  min-height: 150px;
  height: 185px;
  max-height: 36vh;
  resize: vertical;
}

.admin-textarea:focus,
#comp_body:focus,
#reply_body:focus,
#fwd_body:focus {
  border-color: var(--blue, #2563eb) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
  outline: none;
}

/* Compacte Live E-mail Footer Preview (subtiel & laag profiel) */
.inbox-footer-live-preview {
  margin: 8px 0 10px !important;
  background: #f8fafc !important;
  border: 1.5px dashed #94a3b8 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
}

.inbox-footer-live-preview img {
  height: 36px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 130px !important;
  object-fit: contain !important;
}

/* Mobiele schermoptimalisatie: alles compact passend op het scherm */
@media (max-width: 600px) {
  #modal-compose .user-profile-card,
  #modal-reply .user-profile-card,
  #modal-forward .user-profile-card {
    max-height: 96vh !important;
    padding: 12px 10px !important;
    width: 96vw !important;
    max-width: 96vw !important;
  }

  .inbox-footer-live-preview {
    padding: 5px 8px !important;
    margin: 6px 0 8px !important;
    gap: 6px !important;
  }

  .inbox-footer-live-preview img {
    height: 28px !important;
    max-height: 32px !important;
    max-width: 105px !important;
  }

  #comp_body,
  #reply_body,
  #fwd_body {
    min-height: 120px !important;
    height: 140px !important;
    max-height: 28vh !important;
    padding: 8px 10px !important;
    font-size: 0.9rem !important;
  }

  .btn-lbl-full {
    display: none !important;
  }
  .btn-lbl-compact {
    display: inline !important;
  }
  .btn-inbox-action {
    padding: 4px 5px !important;
    font-size: 0.72rem !important;
    gap: 3px !important;
  }
}

/* --------------------------------------------------------------------------
   SOCIALS BEHEER (FACEBOOK & INSTAGRAM)
   -------------------------------------------------------------------------- */
.social-plat-card:hover {
  border-color: #94a3b8 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-emoji-insert:hover {
  background: #e2e8f0;
  transform: scale(1.2);
}

.btn-tag-pill:hover {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
}

@media (max-width: 900px) {
  .socials-composer-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .social-post-card {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .social-platform-selector {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .social-plat-card {
    padding: 8px 4px !important;
  }
  .social-plat-card strong {
    font-size: 0.76rem !important;
  }
  .social-plat-card span {
    font-size: 0.65rem !important;
  }
}

/* --------------------------------------------------------------------------
   E-MAIL COMPOSE & REPLY MET INLINE AFBEELDINGEN
   -------------------------------------------------------------------------- */
.mail-rich-editor {
  white-space: pre-wrap;
  word-break: break-word;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mail-rich-editor:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(184, 20, 54, 0.12) !important;
}

.mail-rich-editor:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
  display: block;
}

.mail-rich-editor.is-dragover {
  background: #fef2f2 !important;
  border-color: var(--red) !important;
  border-style: dashed !important;
}

.mail-inline-img-card {
  position: relative;
  display: inline-block;
  margin: 12px auto;
  max-width: 100%;
  text-align: center;
  user-select: none;
}

.mail-inline-img-card img {
  max-width: 100%;
  max-height: 420px;
  height: auto;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  display: block;
}

.mail-inline-img-card .btn-remove-inline-img {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
  z-index: 10;
}

.mail-inline-img-card .btn-remove-inline-img:hover {
  background: #b81436;
  transform: scale(1.1);
}

.mail-img-uploading-placeholder {
  display: block;
  margin: 12px 0;
  padding: 14px 18px;
  background: #f1f5f9;
  border: 2px dashed #94a3b8;
  border-radius: 8px;
  text-align: center;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
}

/* ==========================================================================
   GEBRUIKER BEWERKEN / TOEVOEGEN POPUP MODAL (MET BACKDROP BLUR)
   ========================================================================== */
.user-edit-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.user-edit-modal.is-active,
.user-edit-modal:not([hidden]) {
  display: flex;
}
.user-edit-modal[hidden] {
  display: none !important;
}
.user-edit-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 1;
}
.user-edit-card {
  position: relative;
  z-index: 2;
  margin: auto;
  background: #ffffff;
  border: 3px solid var(--ink, #141619);
  box-shadow: 8px 8px 0 var(--ink, #141619);
  border-radius: 12px;
  width: 100%;
  max-width: 660px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  box-sizing: border-box;
  animation: modalPopIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.user-edit-close {
  background: #fee2e2;
  border: 2px solid var(--ink, #141619);
  color: #991b1b;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  line-height: 1;
  box-shadow: 2px 2px 0 var(--ink, #141619);
  transition: transform 0.12s ease, background 0.12s ease;
}
.user-edit-close:hover,
.user-edit-close:focus-visible {
  background: #fecaca;
  transform: scale(1.06);
}
.user-edit-close:active {
  transform: scale(0.96);
}

#cv-confirm-modal {
  z-index: 10200 !important;
}
#cv-confirm-backdrop {
  z-index: 10201 !important;
}
.cv-confirm-card {
  z-index: 10202 !important;
}

@media (max-width: 640px) {
  .user-edit-modal {
    padding: 10px;
  }
  .user-edit-card {
    padding: 16px 14px;
    box-shadow: 4px 4px 0 var(--ink, #141619);
    border-width: 2.5px;
    border-radius: 10px;
    max-height: calc(100dvh - 20px);
  }
}