.calendar {
  max-width: 400px;
  margin: 0 auto;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #4a90d9;
  border-radius: 8px 8px 0 0;
}

.calendar-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
}

.nav-button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.calendar-body {
  padding: 15px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.day:hover {
  background: #e8f4ff;
}

.day.empty {
  background: transparent;
  border: none;
  cursor: default;
}

.day.today {
  background: #4a90d9;
  color: white;
  font-weight: bold;
  border-color: #4a90d9;
}

.day.has-holiday {
  border-color: #4caf50;
  position: relative;
}

.day.past {
  background: #f0f0f0;
  color: #999;
  cursor: default;
}

.day.future {
  background: #e8f5e9;
}

.holiday-marker {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.7rem;
}

.calendar-footer {
  padding: 10px 15px;
  background: #f0f0f0;
  border-radius: 0 0 8px 8px;
  text-align: center;
}

.today-button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.today-button:hover {
  background: #45a049;
}

@media (max-width: 480px) {
  .calendar {
    max-width: 100%;
  }
  
  .calendar-header {
    padding: 10px;
  }
  
  .calendar-title {
    font-size: 1rem;
  }
  
  .nav-button {
    font-size: 1.2rem;
    padding: 3px 5px;
  }
  
  .calendar-body {
    padding: 10px;
  }
  
  .day {
    font-size: 0.8rem;
  }
  
  .today-button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) {
  .calendar {
    max-width: 600px;
  }
  
  .calendar-header {
    padding: 20px;
  }
  
  .calendar-title {
    font-size: 1.5rem;
  }
  
  .calendar-body {
    padding: 20px;
  }
  
  .today-button {
    padding: 10px 20px;
    font-size: 1rem;
  }
}
