/* Rails Calendar 스타일 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.calendar-day {
  background-color: white;
  padding: 0.5rem;
  min-height: 100px;
  position: relative;
}

.calendar-day.other-month {
  opacity: 0.5;
}

.calendar-day.today {
  background-color: #eff6ff;
  border: 2px solid #3b82f6;
}

.calendar-day-number {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.25rem;
}

.calendar-routine-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-routine-item:hover {
  opacity: 0.8;
}

.calendar-routine-item.completed {
  background-color: #dcfce7;
  color: #166534;
}

.calendar-routine-item.scheduled {
  background-color: #dbeafe;
  color: #1e40af;
}

.calendar-routine-more {
  font-size: 0.75rem;
  color: #6b7280;
  padding: 0.25rem;
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
  .calendar-grid {
    background-color: #374151;
  }
  
  .calendar-day {
    background-color: #1f2937;
  }
  
  .calendar-day.today {
    background-color: #1e40af;
  }
  
  .calendar-day-number {
    color: #f9fafb;
  }
  
  .calendar-routine-item.completed {
    background-color: #064e3b;
    color: #10b981;
  }
  
  .calendar-routine-item.scheduled {
    background-color: #1e3a8a;
    color: #3b82f6;
  }
  
  .calendar-routine-more {
    color: #9ca3af;
  }
}

/* 강제 다크모드 클래스 지원 */
.dark .calendar-grid {
  background-color: #374151;
}

.dark .calendar-day {
  background-color: #1f2937;
}

.dark .calendar-day.today {
  background-color: #1e40af;
}

.dark .calendar-day-number {
  color: #f9fafb;
}

.dark .calendar-routine-item.completed {
  background-color: #064e3b;
  color: #10b981;
}

.dark .calendar-routine-item.scheduled {
  background-color: #1e3a8a;
  color: #3b82f6;
}

.dark .calendar-routine-more {
  color: #9ca3af;
}