body { font-family: Arial; margin: 20px; }
h2 {margin: 0; font-size: 20px;}

.front-controls {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
@media (max-width: 1023px) {
	.front-controls {
		margin-top:30px !important;
	}
	/*
  .front-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }	
	*/
}
.nav-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn button {
  width: 40px;
  height: 40px;
}	
			
.month-label {
  flex: 1 1 auto;
  text-align: center;
}		

.select-wrapper {
  position: relative;
  display: inline-block;
  width: 60%;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 8px 32px 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
}

.select-wrapper::after {
  content: "\25BC";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
}

.table-wrapper {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}				
				
.calendar-message {
  margin-bottom: 10px;
  background-color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  text-align: center;
  color: #034206;
  border-radius: 4px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #f2f2f2; /* Match header */
  padding: 4px;
  border-radius: 6px;
}

@media screen and (min-width: 1024px) {
    .calendar {
    width: 80%;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}	
.calendar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calendar-header {
  background-color: #f2f2f2 !important;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 0 !important;
  min-height: auto !important;
  height: auto !important;
  line-height: 1.9;
  border-bottom: 0px solid #ccc;
}
.calendar div:not(.calendar-header) {
  padding: 10px 6px;
  min-height: 80px;
  font-size: 13px;
}
.calendar-header > div {
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  color: #333;
}
.header-cell {
  background-color: #f2f2f2;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  padding: 4px 0;
  height: auto;
  line-height: 1.2;
  border-bottom: 1px solid #ccc;
}
.calendar div:not(.header-cell) {
  min-height: 40px;
  padding: 10px 6px;
  font-size: 13px;
}

.calendar div {
  background: #fff;
  padding: 8px;
  min-height: 80px;
  font-size: 13px;
}

.slot-btn {
  display: block;
  padding: 4px 6px;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-top: 4px;
}

.slot-btn.available {
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}

.slot-btn.available:hover {
  background-color: #45a049;
}

.slot-btn.booked {
  background-color: #e53935 !important;
  color: white !important;
  cursor: default;
  opacity: 1;
  pointer-events: none;
}

.booked {
  color: #888;
  font-size: 12px;
}

.booked-wrapper {
  display: block;
  margin-top: 4px;
}

button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4CAF50;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #45a049;
}

button svg {
  width: 20px;
  height: 20px;
}

button[disabled],
button.disabled {
  background-color: #ccc !important;
  cursor: not-allowed !important;
}

button[disabled] svg path,
button.disabled svg path {
  stroke: #666 !important;
}

@media screen and (max-width: 768px) {
  .calendar {width: 100%;}
  .calendar div {font-size: 11px; padding: 6px; min-height: 60px;}
  .slot-btn {font-size: 10px; padding: 3px 5px; width: 100%;}
  button {width: 36px; height: 36px;}
  h2 {font-size: 18px; margin-top: 10px;}
}

