.calendar-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.status-section {
  display: flex;
  align-items: center;
  gap: 15px;
}
.status-section h2 {
  font-size: 18px;
  font-weight: 600;
}
.status-indicators {
  display: flex;
  gap: 15px;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.pending {
  background-color: #ff9800;
}
.approved {
  background-color: #4caf50;
}
.cancelled {
  background-color: #f44336;
}
.completed {
  background-color: #00bcd4;
}
.filters {
  display: flex;
  gap: 10px;
}
.filter-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}
.icon-btn {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* Staff Filter */
.staff-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.staff-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #e0e0e0;
}
.staff-item.active {
  background-color: #f5f5f5;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Calendar Navigation */
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.nav-controls {
  display: flex;
  gap: 5px;
}
.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.today-btn {
  padding: 0 15px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  background-color: white;
  cursor: pointer;
}
.month-selector {
  display: flex;
  align-items: center;
  gap: 5px;
}
.month-selector h2 {
  font-size: 20px;
  font-weight: 600;
}
.view-options {
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.view-btn {
  padding: 8px 15px;
  background-color: white;
  border: none;
  cursor: pointer;
}
.view-btn.active {
  background-color: #f5f5f5;
}

/* Calendar Grid */
.calendar {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}
.weekday {
  padding: 10px;
  text-align: center;
  font-weight: 500;
  color: #666;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(120px, auto);
}
.day {
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px;
  position: relative;
}
.day:nth-child(7n) {
  border-right: none;
}
.day-number {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  display: inline-block;
}
.other-month .day-number {
  color: #bbb;
}

/* Booking Cards */
.booking-card {
  position: relative;
  background-color: #ffebee;
  border: 1px solid;
  border-radius: 8px;
  padding: 8px;
  margin-top: 5px;
  cursor: pointer;
  position: relative;
  transition: all 7000s;
  /* display: flex;
  flex-direction: column;
  align-items: center; */
}

.booking-popup {
  display: none;
  /* display: block !important; */
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  padding: 10px;
  height: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  min-width: 240px;
  background-color: #fff;
  transition: all 7000s;
}

.booking-popup.above {
  top: auto;
  bottom: 100%;
}

.booking-card:hover .booking-popup {
  display: block;
  transition: all 7000s;
}

.booking-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  /* color: #333; */
  margin-bottom: 5px;
}

.booking-time {
  font-size: 14px;
}

.booking-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #000;
}

.booking-person {
  font-size: 12px;
  color: #000;
}

/* //////////////////////////////////// */
/*////////// BOOKING TYPES DROP DOWN ///////// */
/* ////////////////////////////////// */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background-color: #f9f9f9;
  color: #333;
  padding: 10px 15px;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 200px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 220px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 0;
  margin-top: 5px;
}

.dropdown-content.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #ddd;
}

.dropdown-item input[type="checkbox"] {
  margin-right: 8px;
}

/* Booking Details Popup */
.booking-details {
  position: absolute;
  width: 300px;
  background-color: #ffebee;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: none;
}
.booking-details-header {
  padding: 15px;
  border-bottom: 1px solid #ffcdd2;
  display: flex;
  justify-content: space-between;
}
.booking-details-header h3 {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  flex: 1;
}
.booking-actions {
  display: flex;
  gap: 5px;
}
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}
.action-btn:hover {
  color: #333;
}
.booking-details-content {
  padding: 15px;
}
.detail-row {
  display: flex;
  margin-bottom: 10px;
}
.detail-label {
  width: 80px;
  color: #666;
  font-size: 14px;
}
.detail-value {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* //////////////////////////////////// */
/*////////// WEEK DAY FORMAT ///////// */
/* ////////////////////////////////// */

#weekCalendar {
  border: 1px solid #ccc;
}

.week-header-row {
  display: flex;
  border-bottom: 1px solid #ccc;
}

.week-header-item {
  flex: 1;
  padding: 5px;
  text-align: center;
  border-right: 1px solid #eee;
}

.week-header-item:last-child {
  border: none;
}

.week-time-slots {
  /* Add styles to arrange the time slots */
}

.week-time-slot-row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.week-time-label {
  width: 80px;
  padding: 5px;
  text-align: right;
}

.week-day-slot {
  flex: 1;
  border-left: 1px solid #eee;
  /* padding: 5px; */
  min-height: 20px;
}

.empty {
  width: 80px;
  border-right: 1px solid #eee;
}

.all-day-row {
  background-color: #f0f0f0;
  border-bottom: 1px solid #ccc;
}

.all-day-slot {
  border-left: 1px solid #eee;
}

/* //////////////////////////////////// */
/*//////////// DAY FORMAT //////////// */
/* ////////////////////////////////// */

.day-time-slots {
  /* Style the time slots container */
}

.day-time-slot-row {
  display: flex;
  border-bottom: 1px solid #eee;
}

.day-time-label {
  width: 80px;
  text-align: right;
  padding: 5px;
}

.day-day-slot {
  /* flex: 1; */
  padding: 12px;
  display: flex;
  gap: 12px;
  border-left: 1px solid #eee;
  min-height: 30px; /* Adjust as needed */
}

/* //////////////////////////////////// */
/*//////////// LIST FORMAT //////////// */
/* ////////////////////////////////// */

.listCalendar {
  background-color: #f5f5f5;
  padding: 2rem;
}

.list-calendar-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 22px;
}

.list-calendar-container:last-child {
  margin-bottom: 0;
}

.list-day-div,
.list-date-div {
  font-size: 1.2em;
  font-weight: bold;
}

.list-appointment-div {
  /* margin-top: 10px; */
  border: 1px solid;
  border-radius: 12px;
  padding: 24px;
  /* background-color: #f9f9f9; */
}

.list-time-div {
  font-weight: bold;
}

.list-details-div,
.list-person-div {
  font-size: 16px;
  font-weight: 500;
}

.list-edit-button,
.list-delete-button {
  margin-left: 10px;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  /* background-color: #eee; */
  cursor: pointer;
}

.list-edit-button {
  background-color: #1aa053;
}

.list-delete-button {
  background-color: #c03221;
}

/* //////////////////////////////////// */
/*//////////// CUSTOM CALENDAR //////////// */
/* ////////////////////////////////// */
#customCalendarContainer {
  position: absolute;
  top: 40px;
  left: 0;
  /* transform: ; */
  z-index: 50;
}

.custom-calendar {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 350px;
}

.calendar-header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
}

.calendar-days-header {
  display: flex;
}

.calendar-days-header span {
  flex: 1;
  text-align: center;
  padding: 5px;
  font-weight: bold;
}

.calendar-days {
  display: flex;
  flex-direction: column;
}

.calendar-week-row {
  display: flex;
}

.calendar-day-cell {
  flex: 1;
  text-align: center;
  padding: 5px;
  cursor: pointer;
}

.calendar-day-cell:hover {
  background-color: #f0f0f0;
}

.other-month {
  color: #ccc;
}

.month-select,
.year-input {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.month-select {
  width: 120px;
}

.year-input {
  width: 60px;
}

/* hover calendar */
.calendar-day.has-bookings {
  position: relative;
}

.booking-details-hover {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  padding: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  min-width: 200px;
}

.calendar-day.has-bookings:hover .booking-details-hover {
  display: block;
}
