/* Calendar Container - White Theme */
.calendar {
  max-width: 100%;
  width: 600px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #fff;
  color: #333;
}

/* Header */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #4facfe, #00f2fe); /* blue gradient */
  color: #fff;
  padding: 16px 12px 10px;
  font-weight: bold;
  letter-spacing: 1px;
}
.calendar-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-bottom: 8px;
}
.calendar-header button:hover {
  transform: scale(1.2);
}

/* Weekdays row */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  background: #f7f9fc;
  padding: 6px 0;
}
.calendar-weekdays div {
  font-weight: bold;
  padding: 5px 0;
  font-size: 14px;
  color: #555;
}

/* Days grid */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  grid-auto-rows: 90px;
}

.calendar-days div {
  padding: 4px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.calendar-days div:hover {
  background: rgba(0, 153, 255, 0.15); /* soft blue hover */
}

/* Day number */
.day-cell span {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  z-index: 2;
  position: relative;
  color: #333;
}

/* Highlight today */
.today {
  background: #00c4ff !important;
  color: #fff !important;
  box-shadow: 0 0 6px rgba(0, 196, 255, 0.6);
  border-radius: 8px;
}
/* Selected range */
.calendar-days .selected {
  background: #ff4d7e !important;
  color: #fff !important;
  box-shadow: 0 0 6px rgba(255, 77, 126, 0.5);
  border-radius: 8px;
}

/* Empty day cells */
.calendar-days .empty-day {
  background: transparent;
  border: none;
  cursor: default;
}

/* Activity bars */
.activity {
  height: 8px;
  margin: 2px 0;
  width: 100%;
  border-radius: 3px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 3px rgba(0,0,0,0.15);
}
.activity.start { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.activity.end { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.activity.single { border-radius: 10px; }

/* Suggested pastel activity colors (white theme friendly) */
.activity:nth-child(1) { background: #81c784; } /* green */
.activity:nth-child(2) { background: #64b5f6; } /* blue */
.activity:nth-child(3) { background: #ffb74d; } /* orange */
.activity:nth-child(4) { background: #ba68c8; } /* purple */

/* Responsive */
@media (max-width: 576px) {
  .calendar {
    width: 100%;
  }
  .calendar-days {
    grid-auto-rows: 70px;
  }
  .calendar-weekdays div,
  .calendar-days div {
    font-size: 12px;
  }
}

/* Blocked days */
.day-cell.disabled-day {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 0, 0, 0.15),
    rgba(255, 0, 0, 0.15) 10px,
    rgba(255, 0, 0, 0.08) 10px,
    rgba(255, 0, 0, 0.08) 20px
  ) !important;
  color: #d32f2f;
  cursor: not-allowed;
  border-radius: 8px;
}

.blocked {
  height: 6px;
  margin-top: 2px;
  border-radius: 3px;
  background: #d32f2f; /* red bar */
  box-shadow: 0 0 4px rgba(211, 47, 47, 0.6);
}

/* Booking Info Panel */
.booking-info {
  background: #f9fbfd;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.booking-info:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.booking-title {
  font-weight: 600;
  color: #4facfe; /* matches calendar header gradient */
  display: flex;
  align-items: center;
}

.booking-details {
  font-size: 14px;
  line-height: 1.6;
}

/* Range box */
.booking-range {
  background: #f1f8ff;
  border-left: 4px solid #2196f3;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: #0d47a1;
}

/* Booking list */
.booking-list .list-group-item {
  border: none;
  border-radius: 6px;
  margin-bottom: 6px;
  background: #fafafa;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-list .list-group-item:hover {
  background: #f5faff;
}

.booking-card {
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.booking-card:hover {
  transform: translateY(-3px);
}
.booking-card strong {
  display: inline-block;
  width: 90px;
}
.booking-card.blocked {
  background: #6c757d !important;
  color: #fff !important;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Booking info container scroll */
#bookingInfo {
  max-height: 250px;   /* adjust as needed */
  overflow-y: auto;
  padding-right: 6px;  /* space for scrollbar */
}

/* Optional: custom scrollbar styling (WebKit browsers) */
#bookingInfo::-webkit-scrollbar {
  width: 6px;
}
#bookingInfo::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
}
#bookingInfo::-webkit-scrollbar-track {
  background: transparent;
}
/* Calendar Container - White Theme */
.calendar {
  max-width: 100%;
  width: 600px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #fff;
  color: #333;
}

/* Header */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #4facfe, #00f2fe); /* blue gradient */
  color: #fff;
  padding: 16px 12px 10px;
  font-weight: bold;
  letter-spacing: 1px;
}
.calendar-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-bottom: 8px;
}
.calendar-header button:hover {
  transform: scale(1.2);
}

/* Weekdays row */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  background: #f7f9fc;
  padding: 6px 0;
}
.calendar-weekdays div {
  font-weight: bold;
  padding: 5px 0;
  font-size: 14px;
  color: #555;
}

/* Days grid */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  grid-auto-rows: 90px;
}

.calendar-days div {
  padding: 4px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.calendar-days div:hover {
  background: rgba(0, 153, 255, 0.15); /* soft blue hover */
}

/* Day number */
.day-cell span {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  z-index: 2;
  position: relative;
  color: #333;
}

/* Highlight today */
.today {
  background: #00c4ff !important;
  color: #fff !important;
  box-shadow: 0 0 6px rgba(0, 196, 255, 0.6);
  border-radius: 8px;
}
/* Selected range */
.calendar-days .selected {
  background: #ff4d7e !important;
  color: #fff !important;
  box-shadow: 0 0 6px rgba(255, 77, 126, 0.5);
  border-radius: 8px;
}

/* Empty day cells */
.calendar-days .empty-day {
  background: transparent;
  border: none;
  cursor: default;
}

/* Activity bars */
.activity {
  height: 8px;
  margin: 2px 0;
  width: 100%;
  border-radius: 3px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 3px rgba(0,0,0,0.15);
}
.activity.start { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.activity.end { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.activity.single { border-radius: 10px; }

/* Suggested pastel activity colors (white theme friendly) */
.activity:nth-child(1) { background: #81c784; } /* green */
.activity:nth-child(2) { background: #64b5f6; } /* blue */
.activity:nth-child(3) { background: #ffb74d; } /* orange */
.activity:nth-child(4) { background: #ba68c8; } /* purple */

/* Responsive */
@media (max-width: 576px) {
  .calendar {
    width: 100%;
  }
  .calendar-days {
    grid-auto-rows: 70px;
  }
  .calendar-weekdays div,
  .calendar-days div {
    font-size: 12px;
  }
}

/* Blocked days */
.day-cell.disabled-day {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 0, 0, 0.15),
    rgba(255, 0, 0, 0.15) 10px,
    rgba(255, 0, 0, 0.08) 10px,
    rgba(255, 0, 0, 0.08) 20px
  ) !important;
  color: #d32f2f;
  cursor: not-allowed;
  border-radius: 8px;
}

.blocked {
  height: 6px;
  margin-top: 2px;
  border-radius: 3px;
  background: #d32f2f; /* red bar */
  box-shadow: 0 0 4px rgba(211, 47, 47, 0.6);
}

/* Booking Info Panel */
.booking-info {
  background: #f9fbfd;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.booking-info:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.booking-title {
  font-weight: 600;
  color: #4facfe; /* matches calendar header gradient */
  display: flex;
  align-items: center;
}

.booking-details {
  font-size: 14px;
  line-height: 1.6;
}

/* Range box */
.booking-range {
  background: #f1f8ff;
  border-left: 4px solid #2196f3;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: #0d47a1;
}

/* Booking list */
.booking-list .list-group-item {
  border: none;
  border-radius: 6px;
  margin-bottom: 6px;
  background: #fafafa;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-list .list-group-item:hover {
  background: #f5faff;
}

.booking-card {
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.booking-card:hover {
  transform: translateY(-3px);
}
.booking-card strong {
  display: inline-block;
  width: 90px;
}
.booking-card.blocked {
  background: #6c757d !important;
  color: #fff !important;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Booking info container scroll */
#bookingInfo {
  max-height: 250px;   /* adjust as needed */
  overflow-y: auto;
  padding-right: 6px;  /* space for scrollbar */
}

/* Optional: custom scrollbar styling (WebKit browsers) */
#bookingInfo::-webkit-scrollbar {
  width: 6px;
}
#bookingInfo::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
}
#bookingInfo::-webkit-scrollbar-track {
  background: transparent;
}
