/**
 * Calendar Component Styles
 */

.calendar-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-container {
  width: 100%;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
}

.calendar-month-year {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e40af;
  text-transform: capitalize;
}

.calendar-nav {
  background: #f3f4f6;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #4b5563;
}

.calendar-nav:hover {
  background: #1e40af;
  color: white;
}

.calendar-nav svg {
  width: 20px;
  height: 20px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.calendar-weekday {
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: #6b7280;
  padding: 0.5rem 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day,
.calendar-day-empty {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.calendar-day-empty {
  cursor: default;
  background: transparent;
}

.calendar-day {
  background: #f9fafb;
  border: 2px solid transparent;
  color: #374151;
}

.calendar-day:hover {
  background: #e0e7ff;
  border-color: #1e40af;
  color: #1e40af;
}

.calendar-day.today {
  background: #3b82f6;
  color: white;
  font-weight: 700;
}

.calendar-day.today:hover {
  background: #1e3a8a;
}

.calendar-day.actived {
  background: #003d7c; 
  color: white;
  border-color: #003d7c; 
}

.calendar-day.actived:hover {
  background: #2563eb;
}

.calendar-day.selected {
  background: #003d7c; 
  color: white;
  border-color: #003d7c; 
}

.calendar-day.selected:hover {
  background: #2563eb;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .calendar-wrapper {
    padding: 1.5rem;
    max-width: 100%;
  }

  .calendar-month-year {
    font-size: 1rem;
  }

  .calendar-nav {
    padding: 0.4rem;
  }

  .calendar-nav svg {
    width: 18px;
    height: 18px;
  }

  .calendar-weekday,
  .calendar-day {
    font-size: 0.875rem;
  }
}
