/* Modernized Maaltijden index page styles */
.modern-bg {
  min-height: 100vh;
  width: 100vw;
    background: linear-gradient(135deg, #e0f2ff 0%, #b6d0f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modern-center {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modern-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(60, 72, 120, 0.18);
    padding: 2.5rem;
  max-width: 370px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.modern-logo {
  height: 60px;
  margin-bottom: 0.5rem;
}
.modern-title {
  font-size: 1.5rem;
  font-weight: 700;
    color: #2563eb;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.01em;
}
.modern-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.modern-label {
  font-size: 1.4rem;
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.modern-input {
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
    border: 2px solid #60a5fa;
  border-radius: 0.7rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
    background: #f0f7ff;
    color: #1e293b;
}
.modern-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #60a5fa44;
}
.modern-btn {
  background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.7rem;
  padding: 0.8rem 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(60, 72, 120, 0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  width: 100%;
  margin-top: 0.2rem;
}
.modern-btn:hover, .modern-btn:focus {
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
  box-shadow: 0 4px 16px rgba(60, 72, 120, 0.18);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}
body{
    margin: auto;
    line-height: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #141e30 0%, #243b55 100%); /* Dark Blue Gradient */
    color: #f0f0f0;
    min-height: 100vh;
    /* width: 20%; */
}

/* December theme - Christmas background */
body.december-theme {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/christmas_background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.form{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20vw;
    padding: 3rem;
    border: 3px solid #4f46e5;
    border-radius: 5%;
    margin: auto;
    width: 40vw;
    font-family: arial;
    font-size: 2rem;
    text-align: center;
    background: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(114, 133, 207, 1) 100%);
}

.container{
    height: 100vh;
    margin: auto;
    display: flex;
    align-items: center;
}

#btnSubmit {
  background-color: #4f46e5; /* Indigo */
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#btnSubmit:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
}

#btnSubmit:active {
  background-color: #3730a3;
  transform: translateY(0);
}


/* Input field style */
#textInput {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #4f46e5;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-right: 0.5rem;
}

#textInput:focus {
  border-color: #4338ca;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3); /* subtle glow */
}

/* Submit button style */
#btnSubmit {
  background-color: #4f46e5;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#btnSubmit:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
}

#btnSubmit:active {
  background-color: #3730a3;
  transform: translateY(0);
}

#spsm-logo{
    height: 80px;
    margin: auto;
    position: fixed;
    
}
table {
  width: 60%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin: auto;
  overflow: hidden;
}

table th {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

table td {
  padding: 15px;
  text-align: center;
  border: 1px solid #f1f3f4;
  cursor: pointer;
  background-color: #fafbfc;
  color: #333333; /* Dark text for readability */
  transition: all 0.2s ease;
  font-weight: 500;
}
/* Indicator voor dag met notitie */
table td.has-note { outline: none; /* border verwijderd op verzoek */ }
table td .note-indicator { position:absolute; top:2px; right:4px; font-size:1.3rem; pointer-events:none; color:#dc2626; font-weight:700; }

/* Hover only for non-touch devices */
@media (hover: hover) and (pointer: fine) {
  table td:hover {
    background-color: #e8f0fe;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}



.selected {
  background-color: #1e90ff;
  color: white;
}

.buttonwrap {
  display: flex;
  justify-content: center;       /* Horizontally center the buttons */
  align-items: center;           /* Vertically center the buttons */
  height: 20vh;
                   /* Full screen height */
}
.button {
  display: inline-block;          /* Makes them appear next to each other */
  padding: 10px 20px;             /* Adds space inside the button */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;                   /* White text */
  border: none;                   /* Removes border */
  border-radius: 8px;             /* Rounded corners */
  cursor: pointer;                /* Cursor becomes pointer on hover */
  text-align: center;             /* Centers text inside */
  margin-right: 10px;             /* Adds space between buttons */
  font-size: 16px;                /* Adjust font size */
  font-weight: 600;
  transition: all 0.2s ease;
  margin: auto 10px;
  width: 10rem;
  height: 2rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.button:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a5acd 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#warm{
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

#warm:hover{
  background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

#vegetarisch{
  background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

#vegetarisch:hover{
  background: linear-gradient(135deg, #00a085 0%, #019875 100%);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

#lunch{
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

#lunch:hover{
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

#thuis{
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

#thuis:hover{
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

#keuzesVerwijderen{
  background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
  box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

#keuzesVerwijderen:hover{
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  box-shadow: 0 6px 20px rgba(197, 48, 48, 0.4);
}

td.warm{
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
td.lunch{
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
td.vegetarisch{
  background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
td.thuis{
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Vacation day cells: not clickable and visually disabled */
td.vacation{
  background-color: lightgrey !important; /* light gray */
  color: #9ca3af !important;            /* muted text */
  pointer-events: none;                  /* block clicks */
  cursor: not-allowed;                   /* show not-allowed */
}

/* Weekend and Wednesday cells (non-clickable days) */
table td[style*="background-color: lightgrey"] {
  background-color: lightgrey !important;
  color: darkgrey !important;
}

/* Class-blocked cells */
td.class-blocked {
  background-color: lightgrey !important;
  color: #9ca3af !important;
  pointer-events: none;
  cursor: not-allowed;
}
/* Sta klikken toe op grijze dagen als er een notitie is */
td.vacation.has-note,
td.class-blocked.has-note {
  pointer-events: auto;
  cursor: pointer;
}
/* Op desktop hover moet werken op grijze cellen (geen selectie-kliklisteners aanwezig) */
@media screen and (min-width: 769px) {
  td.vacation,
  td.class-blocked { pointer-events: auto; }
}


#selectOptions{
  height: auto;
  min-height: 60px;
}

#maandag, #dinsdag, #donderdag, #vrijdag{
  cursor: pointer;
}

h1{
  text-align: center;
  margin-top: 2rem;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* White text for December theme */
body.december-theme h1 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Menu popup */
#menuPopup {
  background: #ffffff;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  min-width: 220px;
  max-width: 320px;
  font-size: 0.85rem;
  line-height: 1.25rem;
  pointer-events: none; /* purely informational */
  backdrop-filter: blur(4px);
}
#menuPopup .menu-popup-date {
  font-weight: 600;
  margin-bottom: 4px;
  color: #2d3748;
  font-size: 0.8rem;
  opacity: .8;
}
#menuPopup ul { margin: 4px 0 8px 1.1rem; padding:0; }
#menuPopup li { list-style: disc; margin: 0 0 2px 0; }
#menuPopup .menu-section strong { display:block; color:#1a202c; margin-top:4px; }
#menuPopup .veg-variant { display:inline-block; margin-left:4px; font-size:0.7rem; color:#4a5568; font-style:italic; opacity:0.85; }
#menuPopup .meat-icon { font-size:0.85rem; margin-left:6px; }
/* Day note styling inside popup */
#menuPopup .day-note { background:#f1f5f9; border:1px solid #cbd5e1; padding:4px 6px; border-radius:6px; font-size:0.72rem; color:#334155; margin-top:4px; white-space:pre-line; }
/* Position meat icon top-right inside popup on desktop */
#menuPopup .menu-popup-inner { position: relative; }
#menuPopup .menu-popup-date { display: flex; justify-content: space-between; align-items: flex-start; }
#menuPopup .menu-popup-date .meat-icon { margin-left: 10px; font-size: 1rem; line-height: 1; }

/* Desktop layout with sidebar menu */
.desktop-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.desktop-layout .table-and-buttons {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.desktop-layout table {
  width: 100% !important;
  margin: 0;
}

.desktop-menu-sidebar {
  display: block;
  width: 350px;
  min-width: 350px;
  flex-shrink: 0;
  min-height: 400px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 20px;
}

.desktop-menu-sidebar .menu-display {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.desktop-menu-sidebar .menu-left-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.desktop-menu-sidebar .menu-date {
  font-size: 1.2rem;
  font-weight: bold;
  color: #495057;
  white-space: pre-line;
  text-align: center;
  line-height: 1.3;
}

.desktop-menu-sidebar .menu-icons {
  display: flex;
  gap: 10px;
}

.desktop-menu-sidebar .menu-icons .meat-icon {
  font-size: 1.5rem;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.desktop-menu-sidebar .menu-right-column {
  flex: 1;
}

.desktop-menu-sidebar .menu-items {
  background: white;
  border-radius: 8px;
  padding: 15px;
  min-height: 200px;
}

.desktop-menu-sidebar .menu-items h4 {
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 1.1rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 5px;
}

.desktop-menu-sidebar .menu-items ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.desktop-menu-sidebar .menu-items li {
  margin-bottom: 5px;
  color: #495057;
  line-height: 1.4;
}

.desktop-menu-sidebar .placeholder {
  color: #6c757d;
  font-style: italic;
  text-align: center;
  margin-top: 50px;
}

.desktop-menu-sidebar .day-note {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #856404;
}

.desktop-menu-sidebar .veg-variant {
  color: #28a745;
  font-size: 0.9rem;
}

/* Mobile static menu section (hidden on desktop) */
.mobile-menu-static {
  display: none; /* only show on mobile via media query */
  margin-top: 20px;
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.9rem;
}

.menu-display {
  display: flex;
  gap: 16px;
  min-height: 80px;
}

.menu-left-column {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-right: 1px solid #e2e8f0;
  padding-right: 16px;
}

.menu-date {
  font-weight: 600;
  font-size: 0.85rem;
  color: #000000;
  margin-bottom: 8px;
  text-align: center;
  white-space: pre-line;
  line-height: 1.3;
}

.menu-icons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.meat-icon, .soup-icon {
  font-size: 1.2rem;
  opacity: 0.3;
}

.menu-right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-items {
  flex: 1;
}

.menu-items h4 { 
  margin: 0 0 8px; 
  font-size: 0.85rem; 
  text-transform: uppercase; 
  letter-spacing: 0.06em; 
  color: #000000; 
}

.menu-items ul { 
  margin: 4px 0 10px 1.1rem; 
  padding: 0; 
}

.menu-items li { 
  list-style: disc; 
  margin: 0 0 4px; 
  font-size: 0.95rem;
  line-height: 1.4;
  color: #000000; /* Force black text for readability */
}

.menu-items .veg-variant { 
  display: inline-block; 
  margin-left: 4px; 
  font-size: 0.85rem; 
  color: #4a5568; 
  font-style: italic; 
  opacity: 0.85; 
}

.menu-items .day-note { 
  background: #f1f5f9; 
  border: 1px solid #cbd5e1; 
  padding: 8px 10px; 
  border-radius: 6px; 
  font-size: 0.9rem; 
  color: #334155; 
  white-space: pre-line; 
  margin: 6px 0 10px; 
}

.menu-items .placeholder { 
  margin: 0; 
  color: #718196; 
  font-size: 1rem; 
  text-align: center;
  padding: 20px 0;
}

.menu-left-column h4 { 
  margin: 0 0 6px; 
  font-size: 0.75rem; 
  text-transform: uppercase; 
  letter-spacing: 0.06em; 
  color: #2d3748; 
  text-align: center;
}

.menu-left-column ul { 
  margin: 0; 
  padding: 0; 
  list-style: none;
  text-align: center;
}

.menu-left-column li { 
  margin: 0 0 2px; 
  font-size: 0.7rem;
  color: #4a5568;
}

/* Desktop view - show sidebar, hide mobile menu */
@media screen and (min-width: 769px) {
  #menuPopup { display: none !important; }
  .desktop-menu-sidebar { display: block; }
  .mobile-menu-static { display: none !important; }
  .desktop-layout { display: flex; }
}

@media screen and (max-width: 768px) {
  #menuPopup { display: none !important; }
  .desktop-menu-sidebar { display: none !important; }
  .desktop-layout { display: block; }
  .desktop-layout .table-and-buttons { display: block; }
  .mobile-menu-static { display: block; }
  
  /* Reset table styling for mobile */
  .desktop-layout table {
    width: 100% !important;
  }
}

#btnVerzenden{
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(45, 55, 72, 0.3);
}

#btnVerzenden:hover{
  background: linear-gradient(135deg, #1a202c 0%, #171923 100%);
  box-shadow: 0 6px 20px rgba(45, 55, 72, 0.4);
}

/* iOS-specific touch handling improvements */
#btnVerzenden {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

#btnVerzenden:active {
  background: linear-gradient(135deg, #171923 0%, #0f1419 100%);
  transform: translateY(1px);
}

.right{
  float: right;
  padding-right: 20px;
  bottom: 20px;
}

/* Responsive Design for Mobile and Tablet */
@media screen and (max-width: 1024px) {
  /* Tablet styles */
  table {
    width: 95%;
    font-size: 14px;
  }
  
  table th, table td {
    padding: 8px;
  }
  
  .button {
    width: 8rem;
    height: 2.5rem;
    font-size: 14px;
    margin: 5px;
  }
  
  .buttonwrap {
    height: 15vh;
    flex-wrap: wrap;
  }
  
  #selectOptions {
    height: 8vh;
  }
}

@media screen and (max-width: 768px) {
  /* Mobile styles */
  body {
    margin: 0;
    padding: 8px;
    font-size: 16px;
  }
  
  /* Meal choices in 2x2 grid */
  .buttonwrap.meal-choices {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    padding: 10px 5px !important;
  }
  
  .buttonwrap.meal-choices .button {
    width: calc(50% - 5px) !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 45px !important;
    font-size: 13px !important;
    margin: 0 !important;
    flex: 0 0 calc(50% - 5px) !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure grey cells stay grey on mobile */
  table td[style*="background-color: lightgrey"],
  td.vacation,
  td.class-blocked {
    background-color: lightgrey !important;
    color: darkgrey !important;
  }
  
  table td:active {
    background-color: #1d4ed8 !important;
    color: #fff !important;
    transform: scale(0.95);
    transition: all 0.1s ease;
  }
  
  h1 {
    font-size: 1.4rem;
    margin: 0.8rem 0;
    padding: 0 8px;
  }
  
  table {
    width: 100%;
    font-size: 14px;
    margin: 8px 0;
  }
  
  table th {
    padding: 10px 4px;
    font-size: 12px;
  }
  
  table td {
    padding: 12px 4px;
    font-size: 13px;
    min-height: 40px;
  }
  
  .buttonwrap {
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 0;
    justify-content: center;
  }
  
  .buttonwrap:first-of-type {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    display: flex;
  }
  
  .buttonwrap:first-of-type .button {
    width: calc(50% - 4px) !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px;
    font-size: 12px;
    line-height: 1.2;
    margin: 0 !important;
    padding: 8px 4px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 calc(50% - 4px);
  }
  
  .button {
    width: 70%;
    max-width: 200px;
    height: 35px;
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #selectOptions {
    height: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  #selectOptions .button {
    height: 35px;
    font-size: 11px;
    line-height: 1.1;
    width: 30%;
    min-width: 90px;
    max-width: 120px;
    margin: 0 2px;
  }
}

@media screen and (max-width: 480px) {
  /* Small mobile styles */
  body {
    font-size: 15px;
  }
  
  /* Smaller snowflakes on mobile */
  .snowflake {
    font-size: 1.2em;
  }
  
  /* Ensure grey cells stay grey on small mobile */
  table td[style*="background-color: lightgrey"],
  td.vacation,
  td.class-blocked {
    background-color: lightgrey !important;
    color: darkgrey !important;
  }
  
  table td:active {
    background-color: #1d4ed8 !important;
    color: #fff !important;
    transform: scale(0.93);
    transition: all 0.08s ease;
  }
  
  table {
    font-size: 13px;
  }
  
  table th {
    padding: 8px 3px;
    font-size: 11px;
  }
  
  table td {
    padding: 10px 3px;
    font-size: 12px;
    min-height: 38px;
  }
  
  h1 {
    font-size: 1.3rem;
  }
  
  .buttonwrap:first-of-type .button {
    width: calc(50% - 4px) !important;
    height: 40px;
    font-size: 11px;
  }
  
  .button {
    width: 85%;
    height: 38px;
    font-size: 14px;
  }
  
  #selectOptions .button {
    height: 32px;
    font-size: 12px;
  }
}

/* Touch screen devices - styling for selected and unselected cells */
@media (pointer: coarse) {
  /* Ensure grey cells (weekend/wednesday) stay grey on touch devices */
  table td[style*="background-color: lightgrey"],
  td.vacation,
  td.class-blocked {
    background-color: lightgrey !important;
    color: darkgrey !important;
  }
  
  /* Unselected/inactive cells on touch devices (excluding grey cells) */
  table td:not(.selected):not(.warm):not(.lunch):not(.vegetarisch):not(.thuis):not(.vacation):not(.class-blocked):not([style*="lightgrey"]) {
    background-color: #fafbfc !important;
    color: #333333 !important;
    border: 1px solid #f1f3f4 !important;
    box-shadow: none !important;
  }
  
  /* Selected cells on touch devices */
  table td.selected { 
    background-color: #000000 !important; 
    color: #ffffff !important; 
    border: 2px solid #333333 !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  
  /* Ensure meal choice cells keep their correct colors on touch devices */
  table td.warm {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
    color: white !important;
    font-weight: 600 !important;
  }
  
  table td.lunch {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: white !important;
    font-weight: 600 !important;
  }
  
  table td.vegetarisch {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%) !important;
    color: white !important;
    font-weight: 600 !important;
  }
  
  table td.thuis {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: white !important;
    font-weight: 600 !important;
  }
}

/* Snowflakes animation */
.snowflake {
  position: fixed;
  top: -50px;
  z-index: 9999;
  user-select: none;
  cursor: default;
  animation-name: snowflakes-fall, snowflakes-shake;
  animation-duration: 10s, 3s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-play-state: running, running;
  pointer-events: none;
  color: #ffffff;
  font-size: 2.5em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes snowflakes-fall {
  0% {
    top: -10%;
    opacity: 0;
  }
  5% {
    opacity: 0.9;
  }
  95% {
    opacity: 0.9;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes snowflakes-shake {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(80px);
  }
}

.snowflake:nth-of-type(0) {
  left: 1%;
  animation-delay: 0s, 0s;
}
.snowflake:nth-of-type(1) {
  left: 10%;
  animation-delay: 1s, 1s;
}
.snowflake:nth-of-type(2) {
  left: 20%;
  animation-delay: 6s, 0.5s;
}
.snowflake:nth-of-type(3) {
  left: 30%;
  animation-delay: 4s, 2s;
}
.snowflake:nth-of-type(4) {
  left: 40%;
  animation-delay: 2s, 2s;
}
.snowflake:nth-of-type(5) {
  left: 50%;
  animation-delay: 8s, 3s;
}
.snowflake:nth-of-type(6) {
  left: 60%;
  animation-delay: 6s, 2s;
}
.snowflake:nth-of-type(7) {
  left: 70%;
  animation-delay: 2.5s, 1s;
}
.snowflake:nth-of-type(8) {
  left: 80%;
  animation-delay: 1s, 0s;
}
.snowflake:nth-of-type(9) {
  left: 90%;
  animation-delay: 3s, 1.5s;
}
