/* 
* Nichelest Nigeria Limited - Schedule Stylesheet - Optimized for performance
* Version: 1.3
*/

/* ===== GENERAL STYLES ===== */
:root {
  --scheduled-color: #ffc107;
  --confirmed-color: #17a2b8;
  --in-progress-color: #fd7e14;
  --completed-color: #28a745;
  --cancelled-color: #dc3545;
  --rescheduled-color: #6c757d;
}

/* Schedule Service Page */
.schedule-service-container {
  padding: 30px 0;
}

/* Calendar Styles - FIXED */
.calendar-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.calendar {
  width: 100%;
}

.calendar-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 15px !important;
  background-color: transparent !important;
  border-bottom: none !important;
}

.calendar-weekdays {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  text-align: center !important;
  background-color: #f8f9fa !important;
  border-bottom: 1px solid #dee2e6 !important;
  border-top: 1px solid #dee2e6 !important;
  padding: 10px 0 !important;
}

.calendar-weekdays div {
  font-weight: bold !important;
  color: #495057 !important;
}

.calendar-days {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  grid-gap: 0 !important;
  background-color: #fff !important;
  border: 1px solid #dee2e6 !important;
  border-top: none !important;
}

.calendar-row {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100% !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.calendar-row:last-child {
  border-bottom: none !important;
}

.calendar-day {
  background-color: #fff !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  border-right: 1px solid #dee2e6 !important;
  min-height: 40px !important;
  padding: 0 !important;
}

.calendar-day:last-child {
  border-right: none !important;
}

.calendar-day:hover:not(.empty):not(.unavailable) {
  background-color: #e9ecef !important;
}

.calendar-day.empty {
  background-color: #f8f9fa !important;
  cursor: default !important;
}

.calendar-day.unavailable {
  color: #adb5bd !important;
  cursor: default !important;
}

.calendar-day.past {
  color: #adb5bd !important;
  text-decoration: line-through !important;
}

.calendar-day.available {
  font-weight: 600 !important;
  color: #0056b3 !important;
}

.calendar-day.selected {
  background-color: #0056b3 !important;
  color: white !important;
}

.calendar-day.today {
  position: relative !important;
  z-index: 1 !important;
}

.calendar-day.today:after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 30px !important;
  height: 30px !important;
  background-color: transparent !important;
  border: 2px solid #0056b3 !important;
  border-radius: 50% !important;
  z-index: -1 !important;
}

/* Time Slots Section */
.time-slots-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  height: 100%;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 15px;
  margin-top: 20px;
}

.time-slot {
  position: relative;
}

.time-slot input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.time-slot label {
  display: block;
  padding: 15px;
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot input[type="radio"]:checked + label {
  background-color: #e6f7ff;
  border-color: #0056b3;
}

.time-slot label:hover {
  background-color: #e9ecef;
}

.time-slot .time {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.time-slot .availability {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
}

.no-slots-message,
.no-date-selected {
  padding: 30px;
  text-align: center;
  color: #6c757d;
}

.booking-form-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.booking-summary {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
}

.summary-details p {
  margin-bottom: 10px;
}

/* Service card styles */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card .card-body {
  padding: 1.5rem;
}

.service-card .card-title {
  color: #0056b3;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card .card-footer {
  background-color: transparent;
  border-top: none;
  padding: 1rem 1.5rem 1.5rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .time-slots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .calendar-day {
    height: 35px !important;
  }
}

@media (max-width: 575px) {
  .calendar-weekdays div {
    padding: 5px !important;
    font-size: 0.9rem !important;
  }

  .calendar-day {
    height: 30px !important;
    font-size: 0.9rem !important;
  }

  .time-slots {
    grid-template-columns: 1fr;
  }
}

/* Error message styling */
.error-message {
  color: #dc3545;
  padding: 10px;
  text-align: center;
  background-color: #f8d7da;
  border-radius: 5px;
  margin: 10px 0;
}

/* Alert styling */
.alert {
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}
