/* Appointment Module Styles */

.month-btn {
  transition: all 0.3s ease;
  border: 1px solid var(--gray-300);
}

.month-btn.active {
  background-color: #347eb1 !important;
  color: white !important;
  border-color: #347eb1;
}

.month-btn:not(.active):hover {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
}

.day-btn {
  transition: all 0.3s ease;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--gray-300);
  position: relative;
}

.day-btn:not(:disabled):hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.day-btn:disabled {
  background-color: white !important;
  color: var(--gray-400) !important;
  border-color: var(--gray-300) !important;
  cursor: not-allowed;
}

/* Scheduled appointment indicator */
.day-btn .appointment-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
} /* Calendar grid responsive adjustments */
#calendar-grid {
  gap: 4px;
}

/* Time select styling */
#time-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}

#time-select:focus {
  outline: 2px solid #347eb1;
  outline-offset: 2px;
  border-color: #347eb1;
}

/* Schedule button */
#schedule-button {
  transition: all 0.3s ease;
}

#schedule-button:disabled {
  background-color: var(--gray-400);
  cursor: not-allowed;
}

/* Success modal animation */
#success-modal {
  animation: fadeIn 0.3s ease-out;
}

#success-modal .bg-white {
  animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Legend items */
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 375px) {
  .month-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  #calendar-grid {
    gap: 2px;
  }

  .day-btn {
    min-width: 28px;
    min-height: 28px;
    font-size: 12px;
  }
}

/* Back button hover effect */
#back-button:hover {
  background-color: var(--gray-100);
  border-radius: 8px;
}

#schedule-button:disabled {
  background-color: var(--gray-400) !important;
  cursor: not-allowed;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Month Navigator Styles */
.month-navigator .nav-button {
  transition: all 0.2s ease;
}

.month-navigator .nav-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.month-navigator .nav-button:not(:disabled):hover {
  background-color: #ECF4F9;
}

/* Availability filter checkbox custom styles */
#filter-my-nutritionist {
  accent-color: var(--secondary);
}

#filter-my-nutritionist:checked {
  background-color: var(--secondary);
  border-color: var(--secondary);
}
