body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('Backdrop.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #222;
}
header {
    background: #23408e;
    color: #fff;
    padding: 20px 0 10px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(30,58,92,0.10);
}
header img {
    vertical-align: middle;
}
nav {
    margin-top: 10px;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 18px;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
nav a:hover, nav a:focus {
    background: #fff;
    color: #23408e;
}
nav a.active, .wb_this_page_menu_item a {
    background: #ffd700;
    color: #23408e;
}
main {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255,255,255,0.75); /* More transparent */
    box-shadow: 0 2px 8px rgba(30,58,92,0.08);
    border-radius: 8px;
    margin-top: 30px;
}
footer {
    background: #1e3a5c;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* FullCalendar event text smaller and fixed time width */
.fc-event-title, .fc-event-time {
  font-size: 0.8em !important;
}
.fc-event-time {
  display: inline-block;
  min-width: 48px;
  text-align: right;
}
/* Make event text even smaller in month view */
.fc-daygrid-event .fc-event-title, .fc-daygrid-event .fc-event-time {
  font-size: 0.7em !important;
} 

/* Force FullCalendar event text to be very small in all views */
.fc .fc-event-title, .fc .fc-event-time {
  font-size: 0.7em !important;
  line-height: 1.1 !important;
}
.fc .fc-daygrid-event .fc-event-title, .fc .fc-daygrid-event .fc-event-time {
  font-size: 0.65em !important;
  line-height: 1.1 !important;
}
/* Reduce gap between bullet and text in month view */
.fc .fc-daygrid-event-dot {
  margin-right: 2px !important;
  margin-left: 0 !important;
  width: 6px !important;
  height: 6px !important;
}
.fc .fc-daygrid-event {
  padding-left: 2px !important;
  padding-right: 2px !important;
} 

/* Tighter gap between bullet and event text in FullCalendar month view */
.fc .fc-daygrid-event-dot {
  margin-right: 0 !important;
  margin-left: 0 !important;
  width: 6px !important;
  height: 6px !important;
  vertical-align: middle !important;
}
.fc .fc-daygrid-event .fc-event-time,
.fc .fc-daygrid-event .fc-event-title {
  display: inline !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  vertical-align: middle !important;
}
.fc .fc-daygrid-event {
  padding-left: 0 !important;
  padding-right: 0 !important;
} 

/* Custom slot grid for month view */
.fc-daygrid-day .slot-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2px;
}
.fc-daygrid-day .slot-block {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 0.7em;
  border-radius: 3px;
  padding: 0 2px;
  height: 13px;
  margin-bottom: 0;
  color: #222;
  font-family: monospace;
  letter-spacing: 0.5px;
  background: #fff;
  border: 1px solid #eee;
}
.slot-free {
  background: #28a745 !important;
  color: #fff !important;
  border: 1px solid #28a745 !important;
}
.slot-provisional { 
  background: #ffe066 !important; 
  color: #222 !important; 
  border: 1px solid #ffe066 !important; 
  opacity: 0.8 !important;
  font-style: italic !important;
}
.slot-booked { 
  background: #d9534f !important; 
  color: #fff !important; 
  border: 1px solid #d9534f !important; 
  opacity: 0.8 !important;
}
.slot-one_off { background: #424242 !important; color: #fff !important; border: 1px solid #212121 !important; }
.slot-provisional_one_off { background: #424242 !important; color: #fff !important; border: 1px solid #212121 !important; }

/* Earlier bookings - positioned at top with dark grey styling */
.slot-block.earlier-booking {
    background: #424242 !important; 
    color: #fff !important; 
    border: 1px solid #212121 !important;
    font-weight: normal;
    position: relative;
    opacity: 0.9;
}

.slot-block.earlier-booking::before {
    content: "↑";
    position: absolute;
    left: 2px;
    font-size: 10px;
}

/* Later bookings - positioned at bottom with dark grey styling */
.slot-block.later-booking {
    background: #424242 !important; 
    color: #fff !important; 
    border: 1px solid #212121 !important;
    font-weight: normal;
    position: relative;
    opacity: 0.9;
}

.slot-block.later-booking::before {
    content: "↓";
    position: absolute;
    left: 2px;
    font-size: 10px;
}

/* Remove extra space at the bottom of each day cell in month view */
.fc-daygrid-day-frame {
    min-height: auto !important;
    height: auto !important;
}

.fc-daygrid-day-events {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.fc-daygrid-day {
    height: auto !important;
    min-height: auto !important;
}

/* More aggressive height overrides for FullCalendar */
.fc-daygrid-day-frame {
    height: fit-content !important;
    min-height: fit-content !important;
}

.fc-daygrid-day {
    height: fit-content !important;
    min-height: fit-content !important;
}

.fc-daygrid-day-body {
    height: auto !important;
    min-height: auto !important;
}

.fc-daygrid-day-top {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.fc-daygrid-day-bottom {
    display: none !important;
}
.fc-daygrid-day-bg {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
} 

/* Further minimize or eliminate the vertical gap at the bottom of each day cell in FullCalendar month view */
.fc .fc-daygrid-day-frame {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
  vertical-align: top !important;
}
.fc .fc-daygrid-day {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
  vertical-align: top !important;
}
.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.fc .fc-daygrid-day-events {
  display: none !important;
} 
#slot-list {
    max-height: 400px;
    overflow-y: auto;
} 

/* Make extra space as small as possible */
.fc-daygrid-day-frame {
    height: 1px !important;
    min-height: 1px !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.fc-daygrid-day {
    height: 1px !important;
    min-height: 1px !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.fc-daygrid-day-body {
    height: 1px !important;
    min-height: 1px !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.fc-daygrid-day-events {
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
} 