:root {
  --brand:#d9480f;
  --muted:#f5f5f7;
  --ink:#222;
  --ink2:#666;
}

.book-layout{
  max-width:1200px;
  margin:120px auto 60px;
  padding:0 20px;
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:24px;
}

.calendar-card, .panel{
  background:#fff;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  padding:18px;
}

.cal-head{
  display:flex; align-items:center; gap:12px; justify-content:space-between;
}
#calTitle{ font-weight:900; margin:0; }
.cal-head button{ border:1px solid #eee; background:#fff; width:36px; height:36px; border-radius:10px; cursor:pointer; }

.cal-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:8px;
}
.cal-grid .dow{
  font-size:.8rem; color:#888; text-align:center; padding:6px 0;
}
.day{
  background:#fff; border:1px solid #eee; border-radius:10px;
  height:44px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; user-select:none;
}
.day.off{ background:#fafafa; color:#bbb; cursor:default; }
.day.today{ outline:2px solid var(--brand); }
.day.booked{ background:#eee; color:#999; cursor:not-allowed; }

.cal-legend{ display:flex; gap:16px; align-items:center; color:#666; font-size:.9rem; margin-top:10px; }
.dot{ display:inline-block; width:12px; height:12px; border-radius:50%; vertical-align:middle; margin-right:6px; }
.dot.booked{ background:#ddd; border:1px solid #bbb; }
.dot.available{ background:#fff; border:1px solid #ccc; }
.dot.today{ background:var(--brand); }

/* panel lists */
.list{ display:flex; flex-direction:column; gap:10px; }
.card{
  border:1px solid #eee; border-radius:12px; padding:12px; background:#fff;
  display:grid; grid-template-columns: 1fr auto; gap:8px; align-items:center;
}
.card .meta{ color:#666; font-size:.9rem; }
.card .actions{ display:flex; gap:8px; }

.booking-form .btn,
#bookingForm .btn {
  border-radius: 9999px;
  padding: 8px 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.btn-outline{ background:transparent; border:2px solid var(--brand); color:var(--brand); }
.btn-primary{ background:var(--brand); color:#fff; }
.btn-danger{ background:#b00020; color:#fff; }

/* modal (shared style with your auth) */
.modal {
  position:fixed; inset:0; display:none; place-items:center;
  background:rgba(0,0,0,.55); backdrop-filter: blur(3px); z-index:1000;
}

.modal.show { display:grid; }

.modal-content {
  justify-content: center; 
  background:#fff; 
  border-radius:12px; 
  padding:18px; 
  width:600px; 
  overflow:auto; 
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.modal-content {
  margin: 5% auto;
  max-height: 90vh;
  overflow-y: auto;
  top: auto;   
  transform: none;
}

.modal-titlebar{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px; 
  margin-bottom: 8px;
}
.modal-titlebar::before{ content:""; }
.modal-titlebar h3{ font-weight: 900; margin:0; font-weight:900; }
.modal-titlebar .close{
  position: absolute;
  right: 16px;  
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

#bookingForm .row{ display:grid; grid-template-columns:1fr; gap:8px; margin-bottom:10px; }
#bookingForm .row input, #bookingForm .row textarea{ border:1px solid #e6e6e6; border-radius:10px; padding:10px 12px; }
#bookingForm .row textarea{ resize:vertical; }
#bookingForm .row.switches{ grid-template-columns:repeat(3, 1fr); align-items:center; }
#bookingForm h4{ margin:16px 0 6px; }
#bookingForm .form-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:10px; }

.error-text{ color:#b00020; }
.admin{ margin-top:24px; }
@media (max-width: 980px){ .book-layout{ grid-template-columns:1fr; } }
.booking-modal{
 width: 900px;
  max-width: 95vw;
  padding: 20px 40px;
  margin: 40px auto;
  max-height: 80vh; 
  overflow-y: auto;
  margin-top: 100px;
}

.status-counters {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 20px;
}

.counter-box {
  background: white;
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: bold;
  font-size: 14px;
  line-height: 1.4;
}

.counter-box small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: #333;
}

.pending {
  border: 2px solid orange;
}
.accepted {
  border: 2px solid limegreen;
}
.completed {
  border: 2px solid mediumseagreen;
}

.day-cell {
  width: 40px;
  height: 40px;
  margin: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.day-cell.available:hover {
  background-color: orange;
  color: white;
}

.day-cell.booked {
  background-color: #ccc;
  color: #888;
  cursor: not-allowed;
}

.day-cell.today {
  border: 2px solid #f27121;
}

.booking-form {
  max-width: 750px;
  margin: auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
}

.booking-form h2 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 0.25rem;
}

textarea {
  resize: vertical;
}

.form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.booking-form button[type="button"],
#bookingForm button[type="button"] {
  margin-right: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: #eeeeee;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-checks {
    flex-direction: column;
  }
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1rem;
  align-items: center;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: normal;
  white-space: nowrap;
  margin: 0;
}

button.submit-btn {
  background-color: #ff6b00; /* Vivid orange */
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
  transition: all 0.3s ease;
}

button.submit-btn:hover {
  background-color: #e25900;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.5);
}

button.submit-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.4);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  z-index: 9999;
  overflow-y: auto;
}

.modal-box {
  background: white;
  width: 100%;
  max-width: 500px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f27121;
  color: white;
  padding: 1rem 1.5rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.modal-body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.menu-scroll {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-scroll li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.menu-scroll li input {
  margin-right: 10px;
}

.modal-footer {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fafafa;
}

.full-width {
  width: 100%;
}

.btn-primary {
  background: #f27121;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.btn-secondary {
  background: transparent;
  color: #f27121;
  border: 2px solid #f27121;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

#menuModal .modal-box {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  margin-top: 50px;
  margin-bottom: 50px;       
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Ensure the modal itself is centered and flexible */
#menuModal {
  display: none; /* Default is hidden */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  padding-top: 100px; /* Push modal content down */
}

/* When modal is active, make it visible */
#menuModal.show {
  display: flex;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  min-height: 300px; /* Make it taller */
}

.calendar-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
  flex-wrap: wrap;
}

.calendar {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  padding: 20px;
  width: 380px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 20px;
}

.calendar-day {
  background-color: #fff;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.calendar-day.today {
  color: #f27121;
  font-weight: bold;
}

.calendar-day.selected {
  border: 2px solid #f27121;
  background-color: #fff5eb;
}

.legend {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
}

#calGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.day-label {
  font-weight: bold;
  text-align: center;
  padding: 0.5rem;
}

.day-cell {
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: #fff;
  cursor: pointer;
  border: 1px solid #eee;
}

.day-cell.today {
  background-color: #FF5722;
  color: white;
}

.day-cell.booked {
  background-color: #ccc;
  color: white;
}

.day-cell.available:hover {
  background-color: #f2f2f2;
}

.day-cell.empty {
  visibility: hidden;
}

#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  display: none;
  font-size: 14px;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  justify-items: center;
  align-items: center;
  gap: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}

.calendar-weekdays div {
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0;
}

.calendar-days {
  margin-top: 8px;
}

.day-cell,
.day-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
}

.request-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#selectedRestrictions {
  background-color: #f3f3f3;
  padding: 6px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0.6;
  user-select: none;
}

.menu-list {
  text-align: left;
  margin-top: 0.5rem;
}

.menu-list input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.1);
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-list label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

.menu-option {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

/* Title spacing */
.menu-modal-content h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.menu-modal-content h4 {
  display: none; 
}

/* Checkboxes: tighten spacing */
.menu-modal-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 18px;
}

.submit-btn {
  background-color: #ff6a00;
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.4);
  transition: background-color 0.3s;
  text-align: left; 
  display: block;
  margin-top: 16px;  
}

.menu-modal-content label.menu-option {
  margin: 4px 0;
}

#SelectedMenuItems {
  margin-bottom: 1rem;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Centered modal overlay */
.menu-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center; 
  z-index: 1000;
  overflow-y: auto;
}

/* Modal content */
.menu-modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

#menuModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

/* When shown */
#menuModal.show {
  display: flex;
}

/* Modal content box */
#menuModal .menu-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);

  /* Keep scrollable inside */
  max-height: calc(100vh - 120px);
  overflow-y: auto;

  /* This keeps it centered */
  margin: auto;
}

.counter-box {
  cursor: pointer;
  border: 2px solid transparent;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  background: #f9f9f9;
}

.counter-box.active {
  border: 2px solid orange;
  background: #fffaf2;
}

.scrollable-list {
  max-height: 300px; /* adjust for design */
  overflow-y: auto;
  padding: 10px;
}

#resetAutoDuration {
  width: 150px;
  padding: 10px;
  margin-top: 8px;
  border-radius: 6px;
  background: #f3f3f3;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left; 
}

#resetAutoDuration:hover {
  background: #e9e9e9;
}

.meat-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  cursor: pointer;
}

.meat-option input[type="radio"] {
  margin-top: 6px;
}

.meat-text {
  display: flex;
  flex-direction: column;
}

.meat-name {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

.meat-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.3;
}