/* SAFE PRUNE of style.css: includes selectors used in HTML & JS, plus conservative fallbacks */
/* v1.7 2025-08-27 */
/* --- Responsive foundation (2026-01-02) --- */
:root{
  --bg:#f3f4f6;
  --text:#333;
  --primary:#1d72b8;
  --primary-dark:#155a99;
  --radius:12px;
}

html, body{
  min-height:100%; background: var(--bg); }
/* --- Typography scaling (mobile-first) --- */
/* Default desktop */
html{ font-size:16px; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
/* 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; }


html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
*,
*::before,
*::after{ box-sizing:border-box; }

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

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

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

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}

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

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

@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;
}

.modal{
  position:fixed;
  inset:0;
  z-index:1000;
  width:100%;
  height:100%;
  overflow:auto;
  background-color:rgba(0,0,0,.6);
  /* 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 */
}
/* If you remove Tailwind's .hidden class, show the modal */
.modal:not(.hidden){ display:flex; }

.modal-content{
background:#fff;
  width: min(92vw, 420px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin:auto;
  padding:30px 25px;
  border-radius:12px;
  box-shadow:0 10px 25px rgba(0,0,0,.1);
  text-align:center;
  position:relative;
}

.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)
}

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

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

.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:10px;
  color:#fff;
  font-size:0.98rem;
  font-weight:600;
  cursor:pointer;
  transition:background-color .3s ease;
}

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

.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
}

.green-strip.active{
width:15px;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;
}

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

.history-content{

}

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

.crown-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
}

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

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

.panel-toekomst{
opacity: 1;
  background-color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-toekomst:hover{
transform: scale(1.01);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

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

.panel-verleden .is-history-calendar .cal-month{
background-color: #9ca3af !important; 
  color: #f9fafb !important;
}

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

.panel-verleden .text-gray-800{
color: #4b5563 !important;
}

.panel-verleden .text-gray-700{
color: #4b5563 !important;
}

.panel-verleden .text-blue-600{
color: #64748b !important;
}

.panel-verleden .is-history-calendar .cal-month{
background-color: #9aa1aa !important; 
  color: #f9fafb !important;
}

.panel-verleden .is-history-calendar .cal-day{
background-color: #f1f5f9 !important;  
  color: #475569 !important;             
  border-color: #e2e8f0 !important;
}

.panel-verleden #hostCrownIcon img, .panel-verleden [data-history-crown-wrap] img{
filter: grayscale(70%) brightness(0.95);
  opacity: .85;
}

.panel-verleden .is-history-calendar .cal-month{
background-color: #b91c1c !important; 
  color: #f3f4f6 !important;
  opacity: .85;
}

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

.panel-verleden .text-gray-800{
color: #374151 !important;
}

.panel-verleden .text-gray-700{
color: #4b5563 !important;
}

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

.panel-verleden{
background-color: #f9fafb !important; 
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  filter: grayscale(12%) saturate(96%);
}

.panel-verleden:hover{
box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: not-allowed;
}

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

.panel-verleden .is-history-calendar .cal-day{
background-color: #fafafa !important; 
  color: #374151 !important;
  border-color: #e5e7eb !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: 15px !important;  
  opacity: .65 !important;
}

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

.panel-verleden [data-history-crown-wrap] img{
filter: grayscale(100%) brightness(0.85);
    opacity: 0.7;
}

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

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

@media (max-width: 639px){
[data-attendee-panel]{
padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

[data-attendee-panel] > p:first-child{
margin-bottom: 0.125rem !important; 
    line-height: 1.1;
}

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

[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;
}
}

@media (max-width: 639px){
[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;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    align-content: start;
}

[data-attendee-names-display] .attendee-grid li{
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;
}
}


/* Aanwezigen modal:
   - portrait: 2 kolommen
   - landscape (telefoon & tablet): 3 kolommen
*/
.attendees-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 350px;
  overflow-y: auto;
}

.attendees-grid li{
  padding-left: 18px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendees-grid li::before{
  content: "•";
  position: absolute;
  left: 0;
  color: #9ca3af;
}

/* Landscape = 3 kolommen (mobiel & tablet) */
@media (orientation: landscape) and (max-width: 1024px){
  .attendees-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* === Enhancements v2025-10-04 === */
.amount-positive { color: #16a34a; } /* green-600 */
.amount-negative { color: #dc2626; } /* red-600 */


/* === Credentials panel: adopt login look === */
#credentialsPanel .auth-input { 
  width: 100%;
  padding: 10px 14px;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color .3s;
}
#credentialsPanel .auth-input:focus {
  outline: none;
  border-color: #1d72b8;
  box-shadow: 0 0 0 3px rgba(29,114,184,.12);
}
#credentialsPanel .auth-button {
  padding: 12px 16px;
  background: #1d72b8;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1.05em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .3s ease;
}
#credentialsPanel .auth-button:hover { background: #155a99; }


/* --- Mobile fixes for Account panel (2025-10-12) --- */
@media (max-width: 640px){
  body{
    padding-bottom: 96px; /* ruimte voor evt. vaste footers / toasts */
  }
  /* Only allow full height when accordion is open */
  .accordion-open .accordion-content,
  [data-accordion].open > .accordion-content{
    max-height: none !important; /* voorkom afkappen */
    overflow: visible !important;
    padding-bottom: 12px;
  }
  .panel .bg-white{
    padding: 12px;
    border-radius: 12px;
  }
  .password-input-container{
    position: relative;
  }
  .password-input-container .toggle-password{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  form button[type="submit"]{
    min-height: 44px; /* beter tapdoel */
  }
  input[type="text"], input[type="password"], input[type="email"]{
    min-height: 44px;
  }
}


/* --- Accordion base (collapsed by default) --- */
.accordion-content{
  display: block; /* do NOT use display:none; settings.html uses max-height animation */
  max-height: 0;
  overflow: hidden;
}
/* Open state supports both class names */
.accordion-open .accordion-content,
[data-accordion].open > .accordion-content{
  max-height: 800px;
  overflow: visible;
}
/* Chevron rotation */
.accordion-open [data-accordion-trigger] .chevron,
[data-accordion].open [data-accordion-trigger] .chevron{
  transform: rotate(90deg);
  transition: transform .2s ease;
}
[data-accordion] [data-accordion-trigger] .chevron{
  transition: transform .2s ease;
}

/* Ensure global confirm/info modal is always above other modals (e.g., registration) */
#customModal{z-index:5000 !important;}


/* --- Form controls (mobile friendly) --- */
input[type="text"],
input[type="password"],
input[type="email"],
button{
  font-family: inherit;
}

@media (max-width: 640px){
  /* Prevent iOS Safari input-focus zoom:
     Safari zooms when the *computed* font-size of a form control is < 16px. */
  body{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }

  /* Baseline */
  input, select, textarea{
    font-size: 16px;
  }

  /* Override more specific rules in this stylesheet */
  .login-container input[type="text"],
  .login-container input[type="password"],
  .modal-content input[type="text"],
  .modal-content input[type="email"],
  .modal-content input[type="password"],
  #credentialsPanel .auth-input{
    font-size: 16px !important;
  }
}

}

@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; }
  .crown-slot{ width:64px; padding-right:10px; }
  .crown-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*/
