/* Donderdagborrel – styles */
/* v1.7 2025-08-27 */
/* --- Responsive foundation (2026-01-02) --- */
:root{
  --bg:#f3f4f6;
  --text:#333;
  --primary:#1d72b8;
  --primary-dark:#155a99;
  --radius:12px;
  --surface-card:#ffffff;
  --surface-card-muted:#f9fafb;
  --surface-inset:#f6f7f9;
  --surface-border:rgba(15,23,42,.06);
  --surface-border-strong:rgba(15,23,42,.10);
  --surface-shadow-card:0 4px 12px rgba(15,23,42,.05);
  --surface-shadow-elevated:0 10px 24px rgba(15,23,42,.08);
  --surface-radius-lg:16px;
  --surface-radius-md:14px;
}

.btn-primary{
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.625rem;
  transition: background-color .25s ease, box-shadow .25s ease;
}

.btn-primary:hover{
  background: var(--primary-dark);
}

.btn-primary:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(29,114,184,.25);
}

.btn-primary:disabled{
  opacity: .65;
  cursor: not-allowed;
}

html{
  scrollbar-gutter: stable;
  font-size:16px;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

html, body{
  min-height:100%; background: var(--bg); }
/* --- Typography scaling (mobile-first) --- */
/* Default desktop */
/* Smaller screens */
@media (max-width:1024px){ html{ font-size:15px; } }
@media (max-width:768px){ html{ font-size:14.5px; } }
/* Small phones (e.g., ~360-420px) */
@media (max-width:420px){ html{ font-size:13.5px; } }
@media (max-width:360px){ html{ font-size:13px; } }

/* Fluid headings (keeps things tight on small screens) */
h1{ font-size: clamp(1.35rem, 4vw, 2.2rem); line-height: 1.15; }
h2{ font-size: clamp(1.15rem, 3.4vw, 1.6rem); line-height: 1.2; }


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

img, svg, video, canvas{ max-width:100%; height:auto; }

/* Notification bell icon */
#notificationBell{
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.notification-bell-icon{
  /* Match hamburger menu icon size (w-8 h-8 = 32px) */
  width: 32px;
  height: 32px;
  display: block;
  opacity: 0.75;
}

#hostFilterToggle{
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}

#hostFilterToggle.hidden{
  display:none;
}

.host-filter-icon{
  width:32px;
  height:32px;
  display:block;
  opacity:.75;
  transition:opacity .22s ease, color .22s ease, transform .22s ease;
}

#hostFilterToggle.is-active{
  color:#eab308;
}

#hostFilterToggle.is-active .host-filter-icon{
  opacity:1;
  transform:scale(1.05);
}

.header-title-wrap{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  text-align:center;
  pointer-events:none;
}

.header-actions-left{
  min-width:74px;
}

.history-toggle-disabled{
  opacity:0.6;
  filter:grayscale(0.35);
  cursor:not-allowed;
}

.home-inline-banner-stack{
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.home-inline-banner-stack.hidden{
  display: none !important;
}
.home-inline-banner-item{
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 0.75rem;
  padding: 0.75rem 0.875rem;
}

.app-toast-stack{
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(calc(100vw - 2rem), 22rem);
  pointer-events: none;
}

.app-toast{
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.72rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(254, 242, 242, 0.86);
  color: #991b1b;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity .22s ease, transform .22s ease;
}

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

.app-toast__icon{
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.08rem;
}

.app-toast__body{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.app-toast__close{
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.82;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.1rem;
}

.app-toast__close:hover{
  opacity: 1;
}
.home-inline-banner-content{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.home-inline-banner-title{
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}
.home-inline-banner-text{
  margin-top: 0.2rem;
  font-size: 0.875rem;
  line-height: 1.35;
}
.home-inline-banner-actions{
  margin-top: 0.45rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.home-inline-banner-link{
  color: #1d4ed8;
  text-decoration: underline;
  font-size: 0.8rem;
  font-weight: 600;
}
.home-inline-banner-dismiss{
  border: 0;
  background: transparent;
  color: #1e40af;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-inline-banner-dismiss:hover{
  background: rgba(29, 78, 216, 0.12);
}

[data-theme='dark'] .home-inline-banner-item{
  background:linear-gradient(180deg, rgba(25,39,64,.92) 0%, rgba(20,31,52,.92) 100%);
  border-color:#3b82f6;
  color:#e5e5ea;
  box-shadow: 0 0 0 1px rgba(59,130,246,.18), 0 6px 16px rgba(0,0,0,.28);
}
[data-theme='dark'] .home-inline-banner-title{
  color:#dbeafe;
}
[data-theme='dark'] .home-inline-banner-text{
  color:#c7d2fe;
}
[data-theme='dark'] .home-inline-banner-link{
  color:#8ab4ff;
}
[data-theme='dark'] .home-inline-banner-dismiss{
  color:#a1a1a6;
}
[data-theme='dark'] .home-inline-banner-dismiss:hover{
  background: rgba(138, 180, 255, 0.16);
  color:#e5e5ea;
}

.host-filter-transition{
  overflow:hidden;
  transition:max-height .32s ease, opacity .28s ease, transform .28s ease, margin .32s ease, padding .32s ease;
  will-change:max-height, opacity, transform;
}

/* Disabled Thursday panel (looks like history/greyed out) */
.panel-disabled{
  opacity: 0.6;
  filter: grayscale(0.35);
}
.panel-disabled .green-strip{ opacity: 0.35; }

/* Cancelled Thursday panel: same base color treatment as history cards */
.panel-cancelled{
  background-color: var(--surface-card-muted) !important;
  border: 1px solid var(--surface-border);
  filter: grayscale(12%) saturate(96%);
}
.panel-cancelled:hover{
  cursor: not-allowed;
}

body{
  margin:0;
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}

.login-container,
.modal-content,
#appHeader,
#mainContentWrapper,
.day-skeleton-card,
body.settings-page .panel,
body.stats-page header,
body.stats-page .container{
  background: var(--surface-card) !important;
  border: 1px solid var(--surface-border);
  border-radius: var(--surface-radius-lg);
  box-shadow: var(--surface-shadow-card) !important;
}

.poll-panel,
.status-drawer-body .status-group{
  background: var(--surface-inset) !important;
  border: 1px solid var(--surface-border);
  border-radius: var(--surface-radius-md);
  box-shadow: none !important;
}

.day-panel-shell::before{
  box-shadow: none;
  -webkit-box-shadow: none;
  filter: none;
  -webkit-filter: none;
}

/* Home page preload safeguards (scoped, no impact on admin/settings pages) */
body.home-page #appContainer.hidden,
body.home-page #dropdownMenu.hidden,
body.home-page #notificationBadge.hidden,
body.home-page #hostFilterToggle.hidden{
  display:none;
}

body.home-page.loading-shell{
  overflow-y: auto !important;
}

body.home-page.loading-shell #dagenLijst{
  overflow: visible !important;
}

/* Prevent accidental horizontal scroll on small devices */
body, #appContainer{ overflow-x:hidden; }

/* Home app shell: voorkom pagina-scrollbar rechts; laat alleen de lijst intern scrollen */
body.app-shell{
  height: auto;
  overflow-y: auto !important;
}

body.app-shell #appContainer{
  height: auto;
  max-height: none;
  display: block;
}

body.app-shell #appHeader{
  flex: 0 0 auto;
}

body.app-shell #dagenLijst{
  overflow: visible;
}

/* Desktop: gebruik normale pagina-scroll op de hoofdpagina —
   identiek aan de algemene .app-shell regels hierboven; geen override nodig. */

/* =============================
   Statuslijst UI
   - Mobile: iOS-like bottom sheet (JS gebruikt .ios-sheet*)
   - Desktop: side drawer (rechts)
   ============================= */

@media (min-width: 640px) and (hover: hover) and (pointer: fine){
  .status-drawer-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.22);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity:0;
    pointer-events:none;
    transition:opacity .24s cubic-bezier(0.22, 1, 0.36, 1);
    z-index:999;
  }
  .status-drawer-overlay.is-open{
    opacity:1;
    pointer-events:auto;
  }

  .status-drawer{
    position:fixed;
    top:0;
    right:0;
    width:380px;
    max-width:92vw;
    height:100vh;
    background:#fff;
    box-shadow:-14px 0 36px rgba(0,0,0,.24);
    transform:translateX(102%);
    transition:transform .32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index:1000;
    display:flex;
    flex-direction:column;
  }
  .status-drawer.is-open{ transform:translateX(0); }

  .status-drawer-header{
    padding:18px 18px 12px;
    border-bottom:1px solid #e5e7eb;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
  }
  .status-drawer-title{ font-size:1.05rem; font-weight:700; }
  .status-drawer-subtitle{ font-size:.9rem; color:#6b7280; }
  .status-drawer-close{
    border:none;
    background:transparent;
    font-size:20px;
    line-height:1;
    cursor:pointer;
    color:#6b7280;
    padding:6px 8px;
    border-radius:10px;
  }
  .status-drawer-close:hover{ background:#f3f4f6; color:#111827; }

  .status-drawer-body{
    padding:16px 18px 22px;
    overflow:auto;
    scrollbar-gutter: stable;
  }

  .status-drawer-body .status-group + .status-group{
    margin-top: 16px;
  }

  /* Desktop drawer: zelfde vibe als mobile status-sheet */
  .status-drawer-body .status-group{
    background: var(--surface-inset);
    border: 1px solid var(--surface-border);
    border-radius: var(--surface-radius-md);
    padding: 12px;
  }

  .status-drawer-body .status-group-title{
    font-weight: 700;
    color: rgba(31,41,55,1);
    margin: 0;
  }

  .status-drawer-body .status-group-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }

  .status-drawer-body .status-group-count{
    font-size: .85rem;
    color: rgba(107,114,128,1);
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    padding: 2px 9px;
  }

  .status-drawer-body .attendees-grid.attendees-grid--status{
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .status-drawer-body .attendee-status-item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .status-drawer-body .attendee-status-item + .attendee-status-item{
    margin-top: 6px;
  }
}


@keyframes spin{
0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}
}

.loader{
border:4px solid #f3f3f3;
  border-top:4px solid var(--primary);
  border-radius:50%;
  width:30px;height:30px;
  animation:spin .8s linear infinite;
  margin:20px auto;
}

@keyframes daysSkeletonShimmer{
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.days-skeleton-list{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.day-skeleton-card{
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  min-height: 86px;
  display: grid;
  grid-template-columns: 62px 1fr 14px;
  align-items: center;
  column-gap: 1rem;
}

.day-panel-card{
  background: var(--surface-card);
  position: relative;
  z-index: 1;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.day-panel-shell{
  position: relative;
  border-radius: 0.5rem;
  overflow: visible;
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.day-panel-shell::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  -webkit-filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.04)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.03));
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.04)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.03));
}

.day-panel-shell > *{
  position: relative;
  z-index: 1;
}

.day-skeleton-card::after{
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: daysSkeletonShimmer 1.25s ease-in-out infinite;
}

.day-skeleton-calendar,
.day-skeleton-line,
.day-skeleton-dot{
  background: linear-gradient(180deg, #e5e7eb 0%, #dfe4ea 100%);
}

.day-skeleton-calendar{
  width: 62px;
  height: 62px;
  border-radius: 0.6rem;
}

.day-skeleton-content{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.day-skeleton-line{
  height: 10px;
  border-radius: 999px;
}

.day-skeleton-dot{
  width: 8px;
  height: 58px;
  border-radius: 999px;
  opacity: 0.55;
  justify-self: end;
}

.panel-enter{
  opacity: 0;
  transform: translateY(8px) scale(0.995);
  transition: opacity 220ms ease-out var(--panel-enter-delay, 0ms), transform 220ms ease-out var(--panel-enter-delay, 0ms);
}

.panel-enter.panel-enter-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce){
  .day-skeleton-card::after{
    animation: none;
  }
  .panel-enter{
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.modal{
  position:fixed;
  inset:0;
  z-index:1000;
  width:100%;
  height:100%;
  overflow:auto;
  background-color:rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .24s cubic-bezier(0.22, 1, 0.36, 1);
  /* default hidden; Tailwind's .hidden must be able to win */
  display:none;
  justify-content:center;
  align-items:center;
  padding:16px; /* breathing room on small screens */
}

/* Help modal keeps same base overlay token */
.modal.modal-help-active,
#customModal.modal-help-active{
  background-color: rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* If you remove Tailwind's .hidden class, show the modal */
.modal:not(.hidden){ display:flex; }
.modal.is-open{ opacity:1; }

.modal-content{
background:#fff;
  width: min(92vw, 420px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  scrollbar-gutter: stable;
  margin:auto;
  padding:30px 25px;
  border-radius:12px;
  box-shadow:0 28px 64px rgba(0,0,0,.34);
  text-align:center;
  position:relative;
  transform: translateY(10px) scale(.985);
  opacity: .98;
  transition: transform .32s cubic-bezier(0.22, 1, 0.36, 1), opacity .24s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.is-open .modal-content{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.confetti-canvas{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 7000;
}

.modal-content h2{
  margin-bottom:24px;
  font-weight:600;
  color:var(--primary);
}

.modal-content label{
display:block;text-align:left;margin-bottom:6px;font-weight:600;font-size:0.85rem
}

.modal-content input[type=text], .modal-content input[type=email], .modal-content input[type=password]{
width:100%;padding:10px 14px;margin-bottom:18px;
  border:1.8px solid #ccc;border-radius:8px;font-size:1rem;transition:border-color .3s
}

.modal-content input[type=text]:focus, .modal-content input[type=email]:focus, .modal-content input[type=password]:focus{
border-color:#1d72b8;outline:none;box-shadow:0 0 6px rgba(29,114,184,.4)
}

.attendance-reason-wrap{
  display:block;
}

.attendance-reason-input{
  width:100%;
  min-height:44px;
  height:44px;
  padding:10px 14px;
  border:1.8px solid #ccc;
  border-radius:8px;
  font-size:1rem;
  line-height:1.2;
  resize:none;
  overflow-y:hidden;
  transition:border-color .3s, box-shadow .3s;
}

.attendance-reason-input:focus{
  border-color:#1d72b8;
  outline:none;
  box-shadow:0 0 6px rgba(29,114,184,.4);
}

[data-theme='dark'] .attendance-reason-input{
  background:#1c1c1e;
  color:#f5f5f7;
  border-color:#3a3a3c;
}

.modal-content button{
  width:100%;
  padding:12px 0;
  background:var(--primary);
  border:none;
  border-radius:0.625rem;
  color:#fff;
  font-size:0.98rem;
  font-weight:600;
  cursor:pointer;
  transition:background-color .25s ease, box-shadow .25s ease;
}

.modal-content button:hover{
background:var(--primary-dark)
}

/* Confirm dialog: keep yes/no actions visually equal in size */
.modal-content .confirm-choice-btn{
  width: 132px !important;
  min-height: 44px;
  padding: 10px 16px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.close{
position:absolute;top:10px;right:15px;color:#aaa;font-size:28px;cursor:pointer
}

.close:hover{
color:#333
}

.login-container{
width: min(92vw, 360px);
max-width:360px;margin:40px auto;padding:30px 25px;background:#fff;
  border-radius:12px;box-shadow:0 10px 25px rgba(0,0,0,.1);
  font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;text-align:center;
}

.login-container h2{
  margin-bottom:24px;
  font-weight:600;
  color:var(--primary);
}

.login-container label{
display:block;text-align:left;margin-bottom:6px;font-weight:600;font-size:0.85rem;color:#555
}

.login-container input[type=text], .login-container input[type=password]{
width:100%;padding:10px 14px;margin-bottom:18px;border:1.8px solid #ccc;border-radius:8px;font-size:1rem;transition:border-color .3s
}

.login-container input#usernameInput{
margin-bottom:18px
}

.login-container input#passwordInput{
margin-bottom:2px
}

.login-container input[type=text]:focus, .login-container input[type=password]:focus{
border-color:#1d72b8;outline:none;box-shadow:0 0 6px rgba(29,114,184,.4)
}


.login-container button{
  width:100%;
  padding:12px 0;
  background:var(--primary);
  border:none;
  border-radius:0.625rem;
  color:#fff;
  font-size:0.98rem;
  font-weight:600;
  cursor:pointer;
  transition:background-color .25s ease, box-shadow .25s ease;
}

.login-container button:hover{
background:var(--primary-dark)
}

.login-action-link{
  color: var(--primary);
}

.password-input-container{
position: relative;
  display: flex;
  align-items: center;
}

.login-container .password-input-container{
margin-bottom: 2px;
}

.login-container .password-input-container input{
margin-bottom: 0;
  padding-right: 40px;
}

.modal-content .password-input-container{
margin-bottom: 1rem;
}

.modal-content .password-input-container input{
margin-bottom: 0 !important;
  padding-right: 40px;
}

.toggle-password{
position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password svg{
width: 24px;
  height: 24px;
}

.calendar-icon{
width:62px;height:62px;text-align:center;border-radius:8px;overflow:hidden;
  box-shadow:0 2px 4px rgba(0,0,0,.15);margin-right:10px;flex-shrink:0;
  display:flex;flex-direction:column;justify-content:center;align-items:center
}

.calendar-icon .month{
  background:#e74c3c;
  color:#fff;
  padding:6px 0;
  font-size:0.62rem;
  font-weight:bold;
  width:100%;
}

.calendar-icon .day{
  background:#fff;
  color:#333;
  padding:11px 0;
  font-size:1.05rem;
  font-weight:bold;
  width:100%;
}

.aanwezig-btn{
padding:0;border:none;border-radius:8px;box-shadow:none;cursor:pointer;margin-left:12px;
  transition:background-color .3s;display:flex;align-items:center;justify-content:center;
  width:62px;height:62px;flex-shrink:0;background:#fff;
}

.aanwezig-btn .aanwezig-icon, .aanwezig-btn .afwezig-icon{
width:100%;height:100%;object-fit:contain
}

.aanwezig-btn:hover:not(:disabled){
opacity:.9
}

.aanwezig-btn:disabled, .disabled-btn{
background:#e0e0e0!important;border-color:#ccc!important;cursor:not-allowed;opacity:.7
}

.green-strip{
position:absolute;top:0;right:0;width:0;height:100%;background:#22c55e;z-index:2;
  opacity:0;transition:width .3s ease-out,opacity .3s ease-out;border-top-right-radius:.5rem;border-bottom-right-radius:.5rem
}

.day-panel-card .green-strip,
.panel-verleden .green-strip,
.panel-cancelled .green-strip{
  right: -1px !important;
}

.green-strip.active{
width:16px;opacity:1
}

.swipe-container{
position:relative;width:100%;overflow-x:hidden;
  /* Improves swipe smoothness on mobile */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;

  overscroll-behavior-x: contain;
}

.swipe-container [data-panel-container]{
  will-change: transform;
}

.host-panel{
display:flex;align-items:center
}

.host-star-invisible{
visibility:hidden
}

.host-become-icon{
cursor:pointer;transition:transform .3s,opacity .3s
}

.host-become-icon:hover{
opacity:.8;transform:scale(1.1)
}

.dag-row{
display:flex;align-items:center;justify-content:space-between;width:100%;gap:.75rem
}

.dag-info{
flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start;
  white-space:normal;word-break:break-word;overflow-wrap:anywhere
}

.calendar-icon + .dag-info, .calendar-icon ~ .dag-info{
margin-left:1.75rem
}

.host-slot{
width:80px;flex-shrink:0;display:flex;justify-content:flex-end;align-items:center;padding-right:16px
}

.host-slot img{
width:64px;height:64px;object-fit:contain;margin:0
}

.panel-toekomst{
  opacity: 1;
  background-color: var(--surface-card);
  position: relative;
  z-index: 1;
  box-shadow: var(--surface-shadow-card) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-toekomst:hover{
  box-shadow: var(--surface-shadow-elevated);
}

.host-star-muted{
  filter: grayscale(70%);
  opacity: .8;
}

/* --- Geschiedenis (verleden) kalender theming: geconsolideerd --- */
.panel-verleden .is-history-calendar .cal-month{
  background-color: #9ca3af !important;
  color: #f9fafb !important;
}

.panel-verleden .is-history-calendar .cal-day{
  background-color: #f9fafb !important;
  color: #374151 !important;
  border-color: #e5e7eb !important;
}

/* Typografie-kleuren in geschiedenis */
.panel-verleden .text-gray-800{ color:#374151 !important; }
.panel-verleden .text-gray-700{ color:#4b5563 !important; }
.panel-verleden .text-blue-600{ color:#64748b !important; }


/* History host-ster (data-history-host-star-wrap): forceer vaste maat zodat SVG nooit 'mega' wordt */
.panel-verleden [data-history-host-star-wrap]{
  width:64px;
  height:64px;
}
/* Alleen flexen als de ster zichtbaar is (anders wint .hidden weer) */
.panel-verleden [data-history-host-star-wrap]:not(.hidden){
  display:flex;
  align-items:center;
  justify-content:center;
}
.panel-verleden [data-history-host-star-wrap] svg{
  width:32px !important;
  height:32px !important;
}

/* Host-ster/icoon in geschiedenis: extra muted */
.panel-verleden .host-slot img,
.panel-verleden .host-slot [data-history-host-star-wrap] svg{
  filter: grayscale(100%) brightness(0.85);
  opacity: 0.7;
}

.panel-verleden{
background-color: #f4f5f7 !important;
  border: 1px solid var(--surface-border);
  filter: grayscale(10%) saturate(94%);
  opacity: 1;
}

.panel-verleden:hover{
  cursor: not-allowed;
}

.panel-verleden .is-history-calendar .cal-month{
background-color: #d46a6a !important;
  color: #fff7f7 !important;
}

.panel-verleden .is-history-calendar .cal-day{
background-color: #eef0f3 !important;
  color: #374151 !important;
  border-color: #d1d5db !important;
}

.panel-verleden [data-cal-icon] > div:first-child{
  background-color: #d46a6a !important;
  color: #fff7f7 !important;
}

.panel-verleden [data-cal-day]{
  background-color: #eef0f3 !important;
  color: #374151 !important;
  border-color: #d1d5db !important;
}

.panel-verleden .green-strip{
background: #86efac !important;
  width: 0 !important;
  opacity: 0 !important;
  transition: width .3s ease, opacity .3s ease;
}

.panel-verleden .green-strip.active{
width: 16px !important;
  opacity: 1 !important;
}


/* === HISTORY: alleen aanwezig (groen) en afwezig (rood) ===
   - 'misschien' (status=2) tonen we in geschiedenis als afwezig (rood) voor consistentie.
*/
.panel-verleden .green-strip.maybe,
.panel-verleden .green-strip.no{
  width: 16px !important;
  opacity: 1 !important;
}
/* 'misschien' -> afwezig (rood) */
.panel-verleden .green-strip.maybe{ background: #d46a6a !important; }
.panel-verleden .green-strip.no{ background: #d46a6a !important; }


.green-strip{
top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  height: auto !important;
  border-top-right-radius: inherit;
  border-bottom-right-radius: inherit;
  pointer-events: none;
}

.chevron-icon{
display: inline-block;
    transition: transform 0.3s ease;
}

.chevron-icon.rotate-180{
transform: rotate(180deg);
}

@media (max-width: 639px){
  /* Mobile uses one static card: hide attendees side panel and disable horizontal slide state. */
  .swipe-container [data-attendee-panel]{
    display: none !important;
  }
  .swipe-container [data-panel-container]{
    transform: translateX(0) !important;
    transition: none !important;
  }

  /* Compact attendee panel spacing */
  [data-attendee-panel]{
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    position: relative; /* for floating [data-attendee-all-btn] */
  }

  /* Title line: keep it tight + reserve space for the "all attendees" button */
  [data-attendee-panel] > p:first-child{
    margin-bottom: 0.125rem !important;
    line-height: 1.1;
    padding-right: 42px;
  }

  [data-attendee-names-display]{
    font-size: 0.9rem;
    line-height: 1.25;
    scrollbar-gutter: stable;
  }

  [data-attendee-names-display] .attendees-inline-row{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 0.25rem;
  }

  [data-attendee-names-display] .attendee-names-three-lines{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /*
    Mobile: paneelhoogtes moeten gelijk blijven.
    We doen dat door het attendees-paneel altijd exact dezelfde (3×3) grid-hoogte te geven,
    d.m.v. 'filler' items (visibility:hidden) — net als in de originele versie.
    Geen harde panel-/container-heights, zodat er niets wordt afgeknipt.
  */

  /* Laat panelen stretchen naar de hoogste content (zodat alle panels even hoog ogen) */
  .swipe-container [data-panel-container]{
    align-items: stretch;
  }

  /* Attendees panel: fixed 3×3 footprint (via fillers) */
  [data-attendee-names-display] .attendee-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.375rem;
    row-gap: 0.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.15;

    /* 3 rijen, kolomsgewijs vullen → altijd dezelfde hoogte */
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    align-content: start;
  }

  [data-attendee-names-display] .attendee-grid li{
    min-height: 1.15em; /* voorkom inklappen op lege/filler rijen */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  [data-attendee-names-display] .attendee-grid li.attendee-more{
    text-decoration: underline;
    cursor: pointer;
  }

  [data-attendee-names-display] .attendee-grid li.attendee-filler{
    visibility: hidden;
  }

  [data-attendee-names-display] .attendee-grid li.attendee-filler::before{
    content: "\00a0"; /* behoud rijhoogte */
  }

  /* Make "all attendees" button floating so it doesn't add panel height */
  [data-attendee-panel] [data-attendee-all-btn]{
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
  }
}

@media (max-width: 420px){
  .login-container{
    margin: 24px auto;
    padding: 22px 18px;
  }
  .modal-content{
    padding: 22px 18px;
  }
  .close{ top:8px; right:10px; }

  .calendar-icon,
  .aanwezig-btn{
    width:54px;
    height:54px;
  }
  .calendar-icon .day{ padding:9px 0; font-size:16px; }
  .calendar-icon .month{ padding:5px 0; font-size:9px; }

  .dag-row{ align-items:flex-start; gap:.6rem; }
  .host-slot{ width:64px; padding-right:10px; }
  .host-slot img{ width:54px; height:54px; }
}

/* iOS Safari: voorkom focus-zoom op inputs (vereist >= 16px) */
@supports (-webkit-touch-callout: none) {
  input, select, textarea, button {
    font-size: 16px !important;
  }
}


/* === Notificaties / berichtencentrum === */
#notifBadge{ box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.notif-list{ display:flex; flex-direction:column; gap:.5rem; }
.notif-item{ display:flex; gap:.75rem; align-items:flex-start; padding:.75rem; border:1px solid rgba(229,231,235,1); border-radius: .75rem; }
.notif-item.unread{ background: rgba(239,246,255,1); border-color: rgba(191,219,254,1); }
.notif-item .notif-meta{ font-size: 12px; color: rgb(107,114,128); margin-top: .25rem; }
.notif-trash{ flex-shrink:0; padding:.35rem; border-radius:.5rem; }
.notif-trash:hover{ background: rgba(243,244,246,1); }
.notif-empty{ color: rgb(107,114,128); text-align:center; padding: 1rem .5rem; }


/* =========================
   Messages page (messages.html)
   Match main app styling
   ========================= */
.messages-page-container{
  width: 100%;
  max-width: 672px; /* ~max-w-2xl */
}

.messages-card{
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -4px rgba(0,0,0,.10);
  overflow: hidden;
}

.message-item{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid rgba(229,231,235,1);
  border-radius: 12px;
  background: #ffffff;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.message-item:hover{
  background: rgba(249,250,251,1);
}

.message-item.unread{
  background: #eff6ff; /* heel licht blauw */
}
.message-item.unread:hover{
  background: #dbeafe; /* iets donkerder bij hover */
}
.message-icon{
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: inherit;
  color: rgba(31,41,55,1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.message-meta{
  flex: 1;
  min-width: 0;
}
.message-title{
  font-weight: 800;
  color: rgba(31,41,55,1);
  line-height: 1.2;
  margin-bottom: 2px;
}
.message-body{
  color: rgba(55,65,81,1);
  line-height: 1.35;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.message-time{
  margin-top: 6px;
  color: rgba(107,114,128,1);
  font-size: 0.8rem;
}

.message-actions{
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.icon-btn{
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.icon-btn:hover{
  background: rgba(243,244,246,1);
}
.icon-btn:active{
  transform: scale(0.98);
}
.icon-btn:disabled{
  opacity: .5;
  cursor: not-allowed;
}

/*test*/


/* =============================
   Layout A buttons (4 icons + divider)
   Reused from prior action button styles, but scaled to match .calendar-icon (62×62)
   Variant A: subtiele gekleurde border + icon, met zachte tint bij hover/selected
   ============================= */
.presence-action-group{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  width: 100%;
}

.action-sep{
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,.12);
  margin: 0 2px;
}

/* Base button */
.presence-action{
  /* Accent per knop (RGB), overschrijf via selectors hieronder */
  --accent-rgb: 107,114,128; /* gray-500 */
  --accent-soft: rgba(var(--accent-rgb), .10);
  --accent-border: rgba(var(--accent-rgb), .35);
  --accent-border-strong: rgba(var(--accent-rgb), .55);
  --accent-ring: rgba(var(--accent-rgb), .16);

  appearance:none;
  border: 1px solid var(--accent-border);
  background: #fff;
  color: rgba(var(--accent-rgb), .92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine){
  .presence-action:hover{
    transform: translateY(-1px);
    background: var(--accent-soft);
    border-color: rgba(var(--accent-rgb), .45);
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
  }
}
.presence-action:active{
  transform: translateY(0px) scale(.98);
  box-shadow: none;
}

/* Shape */
.presence-action--rect{
  width: 62px;
  height: 62px;
  border-radius: 12px;
}

/* Help modal previews: force identical button footprint for all action examples */
.help-action-preview{
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  min-height: 62px !important;
  flex: 0 0 62px !important;
}

/* Icons */
.action-ico{
  width: 26px;
  height: 26px;
}

/* Accents per keuze */
.presence-action[data-presence-choice="aanwezig"]{  --accent-rgb: 34,197,94; }  /* green-500 */
.presence-action[data-presence-choice="misschien"]{ --accent-rgb: 245,158,11; } /* amber-500 */
.presence-action[data-presence-choice="afwezig"]{   --accent-rgb: 239,68,68; }  /* red-500 */

/* Selected state (subtiel, geen 'schreeuwerige' kleur) */
.presence-action.is-selected{
  background: rgba(var(--accent-rgb), .08);
  border-color: rgba(var(--accent-rgb), .45);
  box-shadow: none;
}

.presence-action:disabled{
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Host button (blauw: los van aanwezig/misschien/afwezig) */
.host-action-btn{
  --accent-rgb: 29,114,184;           /* matches --primary (#1d72b8) */
  color: rgba(21,90,153,.95);         /* matches --primary-dark (#155a99) */
  border-color: rgba(29,114,184,.45);
}

/* Als host gekozen is */
.host-action-btn.is-selected{
  background: rgba(29,114,184,.10);
  border-color: rgba(29,114,184,.62);
  box-shadow: none;
}

/* Host button "locked" = iemand anders is host, maar wel klikbaar voor swap-verzoek */
.host-action-btn.is-locked{
  --accent-rgb: 29,114,184; /* zelfde blauw als host-knop */
  color: rgba(21,90,153,.95);
  border-color: rgba(29,114,184,.45);
  box-shadow: none;
  background: #fff;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine){
  .host-action-btn.is-locked:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(17,24,39,.08);
    background: rgba(29,114,184,.10);
    border-color: rgba(29,114,184,.62);
  }
}

/* Poll panel (home page) */
.poll-panel{
  border: 1px solid var(--surface-border);
  border-radius: var(--surface-radius-md);
  background: var(--surface-inset);
}
.poll-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  margin-bottom:.5rem;
}
.poll-panel-title{ font-size:.875rem; font-weight:700; color:#1f2937; }
.poll-panel-meta{ font-size:.75rem; color:#6b7280; }
.poll-panel-list{ display:flex; flex-direction:column; gap:.5rem; }
.poll-option-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:left;
  border:1px solid var(--surface-border);
  border-radius:.5rem;
  padding:.5rem .75rem;
  background:var(--surface-card);
  transition:background-color .12s ease,border-color .12s ease;
}
.poll-option-btn:hover{ background:var(--surface-card-muted); }
.poll-option-btn.is-selected{
  border-color:#3b82f6;
  background:#eff6ff;
}
.poll-option-text{ font-size:.875rem; color:#1f2937; }
.poll-option-votes{
  font-size:.75rem;
  font-weight:600;
  padding:.125rem .5rem;
  border-radius:999px;
  background:var(--surface-card);
  color:#374151;
  cursor:pointer;
  user-select:none;
}
.poll-option-votes.is-selected{
  background:#dbeafe;
  color:#1d4ed8;
}
.poll-panel-empty{ font-size:.875rem; color:#6b7280; }
.poll-add-wrap{
  margin-top:.75rem;
  display:flex;
  align-items:center;
  gap:.5rem;
}
.poll-add-wrap.is-disabled{
  opacity:.5;
  pointer-events:none;
}
.poll-add-input{
  flex:1;
  padding:.5rem;
  font-size:.875rem;
  border:1px solid var(--surface-border-strong);
  border-radius:.5rem;
  background:var(--surface-card);
  color:#111827;
}
.poll-add-btn{
  --accent-rgb: 29,114,184;
  padding:.5rem .75rem;
  border-radius:.5rem;
  border: 1px solid rgba(var(--accent-rgb), .35);
  background:var(--surface-card);
  color: rgba(var(--accent-rgb), .92);
  font-size:.875rem;
  font-weight:600;
  appearance:none;
  cursor:pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine){
  .poll-add-btn:hover{
    transform: translateY(-1px);
    background: rgba(var(--accent-rgb), .10);
    border-color: rgba(var(--accent-rgb), .45);
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
  }
}

.poll-add-btn:active{
  transform: translateY(0px) scale(.98);
  box-shadow: none;
}
.poll-panel-note{ margin-top:.5rem; font-size:.75rem; color:#6b7280; }

/* Small phones: keep them tappable but prevent overflow */
@media (max-width: 420px){
  .presence-action--rect{ width: 56px; height: 56px; }
  .help-action-preview{
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    flex-basis: 56px !important;
  }
  .action-ico{ width: 24px; height: 24px; }
}


/* Give the flip a 3D context so the back face renders upright (esp. Safari/iOS) */
[data-main-panel]{ perspective: 1000px; }

/* =============================
   Presence flip (main panel)
   ============================= */
.presence-flip{
  position:relative;
  width:100%;
  transform-style:preserve-3d;
  transition:transform .35s ease;
}
.presence-flip.is-flipped{ transform:rotateX(180deg); }

/* Tijdens verticale flip mag de host-ster nooit zichtbaar zijn. */
.presence-flip.is-flipped #hostStarWrapper{
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.presence-flipped .green-strip{
  opacity: 0 !important;
  width: 0 !important;
}

.presence-face{
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
.presence-face.back{
  position:absolute;
  inset:0;
  transform:rotateX(180deg);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 0;
}

.presence-actions{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  width:100%;
  padding:6px 6px 2px;
}

.presence-btn{
  border:none;
  border-radius:12px;
  padding:12px 10px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
  min-height:44px;
  transition:transform .12s ease, opacity .12s ease;
}
.presence-btn:active{ transform:scale(.98); }
.presence-btn:hover{ opacity:.95; }

.presence-btn.yes{ background:#22c55e; }    /* groen */
.presence-btn.maybe{ background:#d97706; }  /* oker/amber */
.presence-btn.no{ background:#ef4444; }     /* rood */

/* Status strip kleuren (naast bestaande .green-strip.active) */
.green-strip.maybe{ background:#d97706; opacity:1; width:15px; }
.green-strip.no{ background:#ef4444; opacity:1; width:16px; }


/* === Presence buttons: subtiele outline + symbool (achtergrond NIET aanpassen) ===
   Doel: zelfde vibe als action buttons (groen/oranje/rood), maar zonder tinted backgrounds.
   We overriden daarom expliciet eerdere (gevulde) varianten in dit stylesheet.
*/
.presence-btn{
  /* achtergrond laten zoals panel/button default (wit); geen kleurvlak */
  background: transparent;
  border: 1px solid rgba(0,0,0,.10);
  color: #374151;
}

/* Alleen outline + icoon kleur (subtiel) */
.presence-btn.yes{
  background: transparent;
  border-color: rgba(34,197,94,.45);
  color: rgba(34,197,94,.95);
}
.presence-btn.maybe{
  background: transparent;
  border-color: rgba(245,158,11,.50);
  color: rgba(245,158,11,.95);
}
.presence-btn.no{
  background: transparent;
  border-color: rgba(239,68,68,.45);
  color: rgba(239,68,68,.95);
}

/* Zorg dat SVG iconen de knopkleur volgen */
.presence-btn svg{ stroke: currentColor; }

/* Status strip subtler tones */
.green-strip.active { background: #22c55e; opacity: 1; width: 16px; }
.green-strip.maybe { background: #f59e0b; opacity: 1; width: 16px; }
.green-strip.no { background: #ef4444; opacity: 1; width: 16px; }


/* Host star on main panel: neutral base (no button look while loading) */
#hostStarWrapper {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

#hostStarWrapper img,
#hostStarWrapper svg {
  width: 26px;
  height: 26px;
}

/* Als jij zelf host bent: toon alleen de ster (geen 'button' omheen) */
#hostStarWrapper.host-self {
  /* Houd exact dezelfde footprint als andere dagen, zodat de rijhoogte overal gelijk blijft */
  width: 62px;
  height: 62px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 12px;
  padding: 0;
}

#hostStarWrapper.host-self svg {
  width: 28px;
  height: 28px;
}

/* === MOBILE: attendee panel hoogte altijd gelijk (ook bij 1-2 aanwezigen) ===
   Probleem: lege .attendee-filler <li>'s hebben 0 hoogte, waardoor rijen met alleen fillers inklappen.
   Fix: geef elke cel een minimale hoogte; geef fillers een non-breaking space zodat rijhoogte blijft bestaan. */
@media (max-width: 639px){
  [data-attendee-names-display] .attendee-grid li{
    min-height: 1.15em;
  }
  [data-attendee-names-display] .attendee-grid li.attendee-filler::before{
    content: "\00a0";
  }
}
/* === Status modal dots === */
.attendees-grid--status{
  list-style: none;
  padding: 0;
  margin: 0;
}

.attendee-status-item{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.status-dot--yes{ background: #22c55e; }   /* green */
.status-dot--maybe{ background: #d97706; } /* oker/amber */
.status-dot--no{ background: #ef4444; }    /* red */

.attendee-empty{ color: #6b7280; }
/* === Mobile: make data-attendee-all-btn "floating" so it doesn't add height === */
[data-attendee-panel]{
  position: relative;
}
@media (max-width: 639px){
  [data-attendee-panel] [data-attendee-all-btn]{
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
  }
  /* prevent overlap with the title line */
  [data-attendee-panel] > p:first-child{
    padding-right: 42px;
  }
}

/* === Status modal: force responsive columns (override generic .attendees-grid) === */
/* The status modal list uses: class="attendees-grid attendees-grid--status" */
.attendees-grid.attendees-grid--status{
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.75rem;
  row-gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 639px){
  .attendees-grid.attendees-grid--status{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === Subtiele ronde presence buttons (status lijst) === */
.presence-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}

.presence-btn:hover{
  background: #f9fafb;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
}

.presence-btn:active{
  transform: scale(.97);
}

.presence-btn.yes{ border-color: rgba(34,197,94,.35); }
.presence-btn.maybe{ border-color: rgba(245,158,11,.35); }
.presence-btn.no{ border-color: rgba(239,68,68,.35); }


/* === Ronde subtiele knop voor "alle aanwezigen" (2 poppetjes) === */
[data-attendee-all-btn]{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}

[data-attendee-all-btn]:hover{
  background: #f9fafb;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
}

[data-attendee-all-btn]:active{
  transform: scale(.97);
}

/* === History: host-ster uitlijning (vaste footprint + gecentreerde SVG) ===
   - host-slot is right-aligned (justify-content:flex-end)
   - we give the history wrap the same 64×64 footprint as het oude img
   - SVG blijft 32×32 (w-8 h-8) en wordt gecentreerd in die footprint
*/
.panel-verleden .host-slot [data-history-host-star-wrap]{
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.panel-verleden .host-slot [data-history-host-star-wrap]:not(.hidden){
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-verleden .host-slot [data-history-host-star-wrap] svg{
  width: 32px !important;
  height: 32px !important;
  display: block;
}
@media (max-width: 420px){
  .panel-verleden .host-slot{ width:64px; padding-right:10px; }
  .panel-verleden .host-slot [data-history-host-star-wrap]{ width:54px; height:54px; }
  .panel-verleden .host-slot [data-history-host-star-wrap] svg{ width:32px !important; height:32px !important; }
}


/* ===============================
   Mobile panel height consistency
   Fix: voorkomt hoogteverschillen
   =============================== */
@media (max-width: 420px){

  .dag-info{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dag-info > span,
  .dag-info > div{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .host-slot{
    width: 64px;
    padding-right: 10px;
  }
}

/* Safety: forceer dat Tailwind's .hidden altijd wint voor de history host-ster */
.panel-verleden [data-history-host-star-wrap].hidden,
.panel-verleden .host-slot [data-history-host-star-wrap].hidden{
  display: none !important;
}


/* Utility: animated ring (used for notification badge) */
.ring-animated{ box-shadow:0 0 0 0 rgba(34,197,94,0.35); animation:pulseRing 1.8s infinite; }
@keyframes pulseRing{ 0%{box-shadow:0 0 0 0 rgba(34,197,94,0.35);} 70%{box-shadow:0 0 0 18px rgba(34,197,94,0);} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0);} }


/* Mobile top-sheet menu (Variant 2) */
@media (max-width: 639px){
  .menu-sheet{
    padding-top: max(8px, env(safe-area-inset-top));
  }
}

#menuRoot .menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .24s cubic-bezier(0.22, 1, 0.36, 1);
}
#menuRoot .menu-sheet{
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .32s cubic-bezier(0.22, 1, 0.36, 1), opacity .24s cubic-bezier(0.22, 1, 0.36, 1);
}
#menuRoot.is-open .menu-overlay{ opacity: 1; }
#menuRoot.is-open .menu-sheet{
  transform: translateY(0);
  opacity: 1;
}


/* =============================
   iOS status bottom sheet (Statuslijst)
   ============================= */
#statusSheetRoot.hidden{ display: none; }

.ios-sheet-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .24s cubic-bezier(0.22, 1, 0.36, 1);
}

.ios-sheet-overlay.is-open{ opacity: 1; }

.ios-sheet{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -12px 34px rgba(0,0,0,.22);
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  max-height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ios-sheet.is-open{ transform: translateY(0); }

.ios-sheet-handle{
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,.15);
  margin: 10px auto 6px;
}

.ios-sheet-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.ios-sheet-title{
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(17,24,39,1);
  line-height: 1.15;
}

.ios-sheet-subtitle{
  margin-top: 2px;
  font-size: .85rem;
  color: rgba(107,114,128,1);
}

.ios-sheet-close{
  border: 0;
  background: rgba(0,0,0,.06);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
  font-size: 15px;
  line-height: 1;
}

.ios-sheet-close:hover{ background: rgba(0,0,0,.10); }
.ios-sheet-close:active{ transform: scale(.98); }

.ios-sheet-body{
  padding: 14px 16px 18px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.ios-status-section{
  background: rgba(249,250,251,1);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 12px 12px;
  margin-bottom: 12px;
}

.ios-status-section-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ios-status-section-title{
  font-weight: 700;
  color: rgba(31,41,55,1);
}

.ios-status-section-count{
  font-size: .85rem;
  color: rgba(107,114,128,1);
  background: rgba(255,255,255,1);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 2px 9px;
}

.ios-status-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 420px){
  .ios-status-list{ grid-template-columns: 1fr 1fr; }
}

.ios-status-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}

.ios-status-item--empty{
  justify-content: center;
}
.ios-status-item--empty .ios-status-name{
  color: rgba(107,114,128,1);
  font-weight: 500;
}
.attendee-status-item.ios-status-item--empty{
  justify-content: center;
  color: rgba(107,114,128,1);
}

.ios-status-name{
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(31,41,55,1);
  font-weight: 600;
}

.ios-status-reason{
  flex: 0 1 auto;
  min-width: 0;
  max-width: 52%;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  align-self: baseline;
  color: rgba(107,114,128,1);
  font-weight: 500;
}

.ios-status-separator{
  flex: 0 0 18px;
  text-align: center;
  color: rgba(107,114,128,1);
  font-weight: 600;
}

@media (hover: none) and (pointer: coarse){
  .ios-status-list{
    display: grid;
    grid-template-columns: 1fr;
  }
  .ios-status-item{
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .ios-status-item + .ios-status-item{
    margin-top: 6px;
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape){
  .ios-status-list{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 8px;
  }
  .ios-status-list .ios-status-item{
    width: 100%;
  }
  .ios-status-list .ios-status-item + .ios-status-item{
    margin-top: 0;
  }
  /* In kolom 1 de reden iets verder naar links voor meer ademruimte richting kolom 2. */
  .ios-status-list .ios-status-item:nth-child(odd) .ios-status-reason{
    padding-right: 10px;
  }
  .ios-status-list .ios-status-item:nth-child(even) .ios-status-name{
    padding-left: 6px;
  }
}

.ios-status-empty{
  padding: 16px 4px;
  color: rgba(107,114,128,1);
  text-align: center;
  font-weight: 600;
}

/* History panel host-star sizing parity (mobile + desktop) */
.panel-verleden .history-host-star-shell{
  width: 62px !important;
  height: 62px !important;
}
.panel-verleden .history-host-star-icon{
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-verleden .history-host-star-icon svg{
  width: 28px !important;
  height: 28px !important;
}
.panel-verleden .history-host-star-icon.hidden{
  display: none !important;
}
@media (max-width: 420px){
  .panel-verleden .history-host-star-shell{
    width: 54px !important;
    height: 54px !important;
  }
}

@media (max-width: 639px){
  /* Keep history cards same visual height as regular cards on mobile */
  .panel-verleden [data-main-panel] .history-host-star-shell{
    flex: 0 0 62px;
  }
  .panel-verleden [data-main-panel] [data-day-name],
  .panel-verleden [data-main-panel] [data-host-info],
  .panel-verleden [data-main-panel] [data-mobile-attendee-count]{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .panel-verleden{
    padding-top: .45rem !important;
    padding-bottom: .45rem !important;
  }
  .panel-verleden [data-main-panel] > .flex.items-center.w-full.py-2{
    height: 78px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* Slightly larger tap target on the attendees panel */
[data-attendee-panel]{
  -webkit-tap-highlight-color: transparent;
}
[data-attendee-panel]:active{
  transform: scale(0.995);
}


/* ===== Dark mode (non-admin pages) ===== */
[data-theme='dark']{
  --bg:#000000;
  --text:#e5e5ea;
  --text-secondary:#a1a1a6;
  --text-tertiary:#8e8e93;
  --surface-card:#1c1c1e;
  --surface-card-muted:#232326;
  --surface-inset:#2a2a2d;
  --surface-border:rgba(255,255,255,.08);
  --surface-border-strong:rgba(255,255,255,.12);
  --surface-shadow-card:0 1px 4px rgba(0,0,0,.24);
  --surface-shadow-elevated:0 8px 20px rgba(0,0,0,.34);
}

[data-theme='dark'] body{
  background:#000000;
  color:#e5e5ea;
}

[data-theme='dark'] .login-container,
[data-theme='dark'] .modal-content,
[data-theme='dark'] #appHeader,
[data-theme='dark'] .status-drawer,
[data-theme='dark'] .status-sheet,
[data-theme='dark'] #menuDropdown,
[data-theme='dark'] .day-panel-card,
[data-theme='dark'] .panel-verleden,
[data-theme='dark'] [data-datum-panel],
[data-theme='dark'] .panel-cancelled{
  background:#1c1c1e !important;
  color:#e5e5ea !important;
  border-color:#3a3a3c !important;
}


[data-theme='dark'] .panel-verleden{
  background:#17181b !important;
  border-color:var(--surface-border) !important;
  filter:grayscale(12%) saturate(88%);
  opacity:1;
}

[data-theme='dark'] .text-gray-800,
[data-theme='dark'] .text-gray-700{
  color:#e5e5ea !important;
}

[data-theme='dark'] .text-gray-600,
[data-theme='dark'] .text-gray-500{
  color:#a1a1a6 !important;
}

[data-theme='dark'] .text-gray-900{
  color:#e5e5ea !important;
}

[data-theme='dark'] .bg-white,
[data-theme='dark'] .bg-gray-100,
[data-theme='dark'] .bg-gray-200,
[data-theme='dark'] .bg-gray-50{
  background:#1c1c1e !important;
}

[data-theme='dark'] .day-skeleton-card{
  background:#1c1c1e !important;
  box-shadow:0 1px 5px rgba(0,0,0,.35);
}
[data-theme='dark'] .day-skeleton-calendar,
[data-theme='dark'] .day-skeleton-line,
[data-theme='dark'] .day-skeleton-dot{
  background: linear-gradient(180deg, #2c2c2e 0%, #242426 100%);
}
[data-theme='dark'] .day-skeleton-card::after{
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
[data-theme='dark'] .loader{
  border-color:#2c2c2e;
}

[data-theme='dark'] .hover\:bg-gray-100:hover,
[data-theme='dark'] .hover\:bg-gray-200:hover,
[data-theme='dark'] .hover\:bg-gray-300:hover{
  background:#2c2c2e !important;
}

[data-theme='dark'] .messages-card,
[data-theme='dark'] .message-item{
  background:#1c1c1e;
  border-color:#3a3a3c;
}

[data-theme='dark'] body.messages-page{
  background:#000000 !important;
}

[data-theme='dark'] body.messages-page header,
[data-theme='dark'] body.messages-page #closeMessagesBtn{
  background:#1c1c1e !important;
}

[data-theme='dark'] .message-item:hover,
[data-theme='dark'] .message-item.unread:hover{
  background:#1c1c1e;
}

[data-theme='dark'] .message-item.unread{
  background:rgba(44,44,46,.9);
  border-color:rgba(72,72,74,.85);
}

[data-theme='dark'] .message-icon,
[data-theme='dark'] .message-title,
[data-theme='dark'] .ios-status-section-title,
[data-theme='dark'] .ios-status-name,
[data-theme='dark'] .status-drawer-body .status-group-title,
[data-theme='dark'] .ios-sheet-title{
  color:#e5e5ea !important;
}

[data-theme='dark'] .message-body,
[data-theme='dark'] .message-time,
[data-theme='dark'] .ios-status-empty,
[data-theme='dark'] .ios-status-reason,
[data-theme='dark'] .ios-status-separator,
[data-theme='dark'] .status-drawer-subtitle,
[data-theme='dark'] .ios-sheet-subtitle,
[data-theme='dark'] .ios-status-section-count,
[data-theme='dark'] .status-drawer-body .status-group-count{
  color:#a1a1a6 !important;
}

[data-theme='dark'] .ios-sheet,
[data-theme='dark'] .ios-status-section,
[data-theme='dark'] .ios-status-item,
[data-theme='dark'] .ios-status-section-count,
[data-theme='dark'] .status-drawer-body .status-group,
[data-theme='dark'] .status-drawer-body .status-group-count{
  background:var(--surface-inset);
  border-color:var(--surface-border);
}

[data-theme='dark'] .ios-sheet-handle{
  background:rgba(142,142,147,.45);
}

[data-theme='dark'] .ios-sheet-header,
[data-theme='dark'] .status-drawer-header{
  border-color:#3a3a3c;
}

[data-theme='dark'] .ios-sheet-close,
[data-theme='dark'] .status-drawer-close,
[data-theme='dark'] .icon-btn{
  color:#e5e5ea;
}

[data-theme='dark'] .ios-sheet-close,
[data-theme='dark'] .status-drawer-close:hover,
[data-theme='dark'] .icon-btn:hover{
  background:#2c2c2e;
}

[data-theme='dark'] input,
[data-theme='dark'] textarea,
[data-theme='dark'] select{
  background:#000000 !important;
  color:#e5e5ea !important;
  border-color:#48484a !important;
}

/* Settings + Statistieken: dark mode centralized from page HTML into style.css */
[data-theme='dark'] body.settings-page,
[data-theme='dark'] body.stats-page{
  background:#000000 !important;
}

[data-theme='dark'] body.settings-page .panel-container{
  background: transparent;
}

[data-theme='dark'] body.settings-page .panel,
[data-theme='dark'] body.settings-page header{
  background-color:#1c1c1e !important;
  color:#e5e5ea;
  border-color:#3a3a3c !important;
}

[data-theme='dark'] body.settings-page .border-gray-200,
[data-theme='dark'] body.settings-page .border-gray-300,
[data-theme='dark'] body.settings-page .divide-gray-200 > :not([hidden]) ~ :not([hidden]){
  border-color:#48484a !important;
}

[data-theme='dark'] body.settings-page #customModal > div{
  background:#1c1c1e;
  color:#e5e5ea;
}

[data-theme='dark'] body.settings-page .theme-choice-btn{
  background:#000;
  border-color:#48484a;
  color:#e5e5ea;
}

[data-theme='dark'] body.settings-page .theme-choice-btn.is-active{
  border-color:#8e8e93;
  background:#2c2c2e;
  color:#f2f2f7;
}

[data-theme='dark'] body.stats-page header,
[data-theme='dark'] body.stats-page .container,
[data-theme='dark'] body.stats-page .modal{
  background-color:#1c1c1e !important;
  color:#e5e5ea !important;
  border-color:#3a3a3c !important;
}

[data-theme='dark'] body.stats-page .legend-count{
  color:#a1a1aa;
}

[data-theme='dark'] body.stats-page #tooltip{
  background-color:rgba(28,28,30,.95);
  color:#f2f2f7;
  border:1px solid #48484a;
}

[data-theme='dark'] .presence-action{
  background:#000000;
  border-color: rgba(var(--accent-rgb), .58);
  color: rgba(var(--accent-rgb), .96);
}

[data-theme='dark'] .presence-action.is-selected{
  background: rgba(var(--accent-rgb), .20);
  border-color: rgba(var(--accent-rgb), .82);
}

[data-theme='dark'] .presence-action:disabled{
  opacity:.5;
}

[data-theme='dark'] .action-sep{
  background: rgba(142,142,147,.35);
}

[data-theme='dark'] .host-action-btn,
[data-theme='dark'] .host-action-btn.is-locked{
  --accent-rgb: 29,114,184;
  color: rgba(80,170,240,.98);
  border-color: rgba(80,170,240,.58);
}

@media (hover: hover) and (pointer: fine){
  [data-theme='dark'] .presence-action:hover{
    background: rgba(var(--accent-rgb), .24);
    border-color: rgba(var(--accent-rgb), .82);
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
  }

  [data-theme='dark'] .host-action-btn.is-locked:hover{
    background: rgba(80,170,240,.24);
    border-color: rgba(80,170,240,.82);
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
  }
}

[data-theme='dark'] .poll-panel{
  background:var(--surface-inset);
  border-color:var(--surface-border);
}
[data-theme='dark'] .poll-panel-title{ color:#e5e5ea; }
[data-theme='dark'] .poll-panel-meta,
[data-theme='dark'] .poll-panel-empty,
[data-theme='dark'] .poll-panel-note{ color:#a1a1a6; }
[data-theme='dark'] .poll-option-btn{
  background:var(--surface-card);
  border-color:var(--surface-border);
}
[data-theme='dark'] .poll-option-btn:hover{ background:var(--surface-card-muted); }
[data-theme='dark'] .poll-option-btn.is-selected{
  background:var(--surface-card-muted);
  border-color:rgba(255,255,255,.18);
}
[data-theme='dark'] .poll-option-text{ color:#e5e5ea; }
[data-theme='dark'] .poll-option-votes{
  background:var(--surface-inset);
  color:#a1a1a6;
}
[data-theme='dark'] .poll-option-votes.is-selected{
  background:rgba(255,255,255,.14);
  color:#e5e5ea;
}
[data-theme='dark'] .poll-add-input{
  background:var(--surface-card);
  border-color:var(--surface-border);
  color:#e5e5ea;
}
[data-theme='dark'] .poll-add-input::placeholder{ color:#8e8e93; }
[data-theme='dark'] .poll-add-btn{
  --accent-rgb: 80,170,240;
  background:#000000;
  border-color: rgba(var(--accent-rgb), .58);
  color: rgba(var(--accent-rgb), .98);
}

[data-theme='dark'] .poll-add-btn:active{
  transform: translateY(0px) scale(.98);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine){
  [data-theme='dark'] .poll-add-btn:hover{
    background: rgba(var(--accent-rgb), .24);
    border-color: rgba(var(--accent-rgb), .82);
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
  }
}

#dropdownMenu svg,
#menuRoot .menu-sheet svg{
  stroke: currentColor;
}

#menuRoot .menu-sheet button > span{
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border: 1px solid rgba(0,0,0,.06);
}

#menuRoot .menu-sheet button > span svg{
  width: 1.25rem;
  height: 1.25rem;
}

#dropdownMenu .text-gray-600,
#menuRoot .menu-sheet .text-gray-600{
  color:#4b5563 !important;
}

[data-theme='dark'] #dropdownMenu .text-gray-600,
[data-theme='dark'] #menuRoot .menu-sheet .text-gray-600{
  color:#d1d5db !important;
}

[data-theme='dark'] #menuRoot .menu-sheet [data-menu-logout],
[data-theme='dark'] #menuRoot .menu-sheet [data-menu-logout] .text-red-500{
  color:#f87171 !important;
}

[data-theme='dark'] #dropdownMenu #menuLogout,
[data-theme='dark'] #dropdownMenu #menuLogout svg,
[data-theme='dark'] #dropdownMenu #menuLogout span{
  color:#f87171 !important;
}

#menuRoot .menu-sheet [data-menu-logout],
#menuRoot .menu-sheet [data-menu-logout] svg,
#menuRoot .menu-sheet [data-menu-logout] .text-red-500{
  color:#ef4444 !important;
}

[data-theme='dark'] #menuRoot .menu-sheet button > span{
  background:#2c2c2e !important;
  border-color:#3a3a3c !important;
}

[data-theme='dark'] #menuRoot .menu-sheet [data-menu-logout] > span{
  background:rgba(248,113,113,.16) !important;
  border-color:rgba(248,113,113,.38) !important;
}

[data-theme='dark'] #menuRoot .menu-sheet [data-menu-close]{
  background:#2c2c2e !important;
  color:#f2f2f7 !important;
  border:1px solid #3a3a3c !important;
}

/* ===== Jaarscheiding tussen donderdagen (hoofdpagina) ===== */
.year-divider{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.25rem .25rem 0;
  color:#9ca3af;
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.08em;
  font-variant-numeric:tabular-nums;
  user-select:none;
}
.year-divider::before,
.year-divider::after{
  content:'';
  flex:1;
  height:1px;
  background:rgba(0,0,0,.10);
}
[data-theme='dark'] .year-divider{ color:var(--text-tertiary, #8e8e93); }
[data-theme='dark'] .year-divider::before,
[data-theme='dark'] .year-divider::after{ background:var(--surface-border-strong, rgba(255,255,255,.12)); }

/* ===== Jaarfilter (statistieken) ===== */
.stats-year-filter{
  display:flex;
  justify-content:center;
  margin:0 auto 1rem;
  width:100%;
}
.stats-year-filter-track{
  display:inline-flex;
  gap:.25rem;
  padding:.25rem;
  border-radius:9999px;
  background:#f3f4f6;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.stats-year-filter-track::-webkit-scrollbar{ display:none; }
.stats-year-chip{
  flex-shrink:0;
  border:0;
  background:transparent;
  color:#4b5563;
  font-size:.875rem;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  padding:.375rem .875rem;
  border-radius:9999px;
  min-height:32px;
  cursor:pointer;
  transition:background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.stats-year-chip:hover{ color:#111827; }
.stats-year-chip:focus-visible{ outline:2px solid var(--primary, #1e73be); outline-offset:1px; }
.stats-year-chip[aria-checked='true']{
  background:#ffffff;
  color:#111827;
  box-shadow:0 1px 3px rgba(0,0,0,.12);
}
[data-theme='dark'] .stats-year-filter-track{ background:var(--surface-inset, #2a2a2d); }
[data-theme='dark'] .stats-year-chip{ color:var(--text-secondary, #a1a1a6); }
[data-theme='dark'] .stats-year-chip:hover{ color:var(--text, #e5e5ea); }
[data-theme='dark'] .stats-year-chip[aria-checked='true']{
  background:var(--surface-card, #1c1c1e);
  color:var(--text, #e5e5ea);
  box-shadow:0 1px 3px rgba(0,0,0,.4);
}
