/* Meal Calendar Styles */

.meal-calendar .week-row {
  margin-bottom: 1.5rem;
  position: relative;
}

.meal-calendar .meal-card {
  transition: all 0.2s ease;
  height: 100%;
  cursor: pointer;
}

.meal-calendar .meal-card[data-has-meal="false"] {
  cursor: default;
}

.meal-calendar .meal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.meal-calendar .meal-card.dragging {
  opacity: 0.6;
  transform: scale(0.95);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.meal-calendar .meal-card[data-drag-source="true"] {
  cursor: pointer;
}

.meal-calendar .meal-slot {
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.meal-calendar .meal-slot.drop-target {
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.meal-calendar .meal-slot.drop-invalid {
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* Week indicator styles */
.meal-calendar .week-indicator {
  color: #6B7280;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  background-color: #F3F4F6;
  border-radius: 0.375rem;
}

/* Today's date highlight */
.meal-calendar .date-today {
  background-color: rgba(var(--color-primary-50), 0.5);
  border-radius: 0.375rem;
}

/* Loading state styles */
.meal-calendar .meal-slot.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.meal-calendar .meal-slot.loading::before {
  content: "";
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
  z-index: 11;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .meal-calendar .week-row::before {
    display: none;
  }
  
  .meal-calendar {
    overflow-x: auto;
    padding-bottom: 1rem;
  }
  
  .meal-calendar .grid-cols-7 {
    min-width: 700px;
  }
} 