/* Scheduling Interface Styles */
.scheduling-container {
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  display: flex;
  min-height: 600px;
}

.schedule-left-panel {
  color: #0337e8;
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 30px;
}

.calendar-container {
  background-color: #0337e8;
  color: white;
  padding: 15px;
  border-radius: 10px;
}

.jove-logo {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.logo-circle {
  width: 72px;
  height: 72px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4285f4;
  font-weight: bold;
  font-size: 16px;
}

.schedule-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 1.3;
  text-align: center;
}

.schedule-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.month-nav {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.month-nav:hover {
  background: rgba(255, 255, 255, 0.1);
}

.month-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.calendar {
  flex: 1;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.day-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0;
  opacity: 0.8;
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-date {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
}

.calendar-date:hover {
  background: rgba(255, 255, 255, 0.1);
}

.calendar-date.available {
  background: rgba(255, 255, 255, 0.1);
}

.calendar-date.selected {
  background: white;
  color: #4285f4;
  font-weight: bold;
}

.calendar-date.today:not(.selected) {
  border: 1px solid #ffffffa3;
  color: white;
  font-weight: 600;
  border-radius: 50%;
}

.calendar-date.other-month {
  opacity: 0.3;
}

.schedule-right-panel {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.meeting-duration {
  margin-bottom: 30px;
}

.meeting-duration h3 {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}

.duration-selector {
  display: flex;
  gap: 8px;
}

.duration-option {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.time-selection h3 {
  color: #374151;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.selected-date {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.timezone {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 25px;
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  max-height: 260px;
  overflow-y: auto;
}

.time-slot {
  padding: 15px 20px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.time-slot:hover,
.duration-option:hover {
  border-color: #355fed;
  color: #355fed;
}

.time-slot.selected,
.duration-option.active {
  color: #0337e8;
  border-color: #0337e8;
}

.confirm-booking {
  padding: 16px;
  background: #0337e8;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
  width: 100%;
}

.confirm-booking:hover:not(:disabled) {
  background: #0332d3;
}

.confirm-booking:disabled {
  background: #a3a3a3;
  cursor: not-allowed;
}

/* Loader styles for confirm booking buttons */
.confirm-booking .loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin: 0;
}

/* Ensure loader is visible when button is disabled */
.confirm-booking:disabled .loader {
  border-top: 2px solid #ffffff;
}

/* Spin animation for loaders */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Add this to fix the desktop layout */
.desktop-calendar {
  display: flex;
  width: 100%;
}

/* Responsive Layout */
.mobile-calendar {
  display: none; /* Hidden by default */
}

.calendar-date.past-date, .calendar-date.unavailable {
  color: #ffffff66;
  cursor: no-drop;
}

@media (max-width: 480px) {
  .jove-logo {
    margin-bottom: 0px;
  }
  .schedule-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .meeting-duration{
    margin-bottom: 20px;
  }
  .time-slots{
    max-height: 205px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .desktop-calendar {
    display: none; /* Hide desktop view on mobile */
  }
  .mobile-calendar {
    display: block;
    width: 100%;
    padding: 16px;
    height: 100%;
    transition: background-color 0.3s ease;
  }

  .mobile-calendar.date-step-active {
    background-color: #0337e8;
    color: white;
  }

  .mobile-calendar.time-step-active {
    background-color: white;
    color: #374151; /* Default dark text */
  }

  /* Ensure children inherit the correct color */
  .mobile-calendar.date-step-active .schedule-title,
  .mobile-calendar.date-step-active .month-nav {
    color: white;
  }

  .mobile-calendar.time-step-active .schedule-title,
  .mobile-calendar.time-step-active .back-button {
    color: #374151;
  }

  .schedule-left-panel {
    display: none;
  }
  .mobile-date-step,
  .mobile-time-step {
    display: none; /* Hide steps by default */
  }
  .mobile-date-step.active,
  .mobile-time-step.active {
    display: block; /* Show active step */
  }
  .mobile-date-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mobile-date-item {
    padding: 15px 20px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
  }
  .mobile-date-item .date {
    font-weight: 600;
  }
  .mobile-date-item .day {
    color: #6b7280;
  }
  .mobile-calendar-divider {
    border-color: #f3f4f745;
    border-width: 1px;
    border-bottom: unset;
    border-right: unset;
    border-left: unset;
    margin: 20px 0px;
  }
  .back-button {
    background: none;
    border: none;
    color: #355fed;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 16px;
  }
}
