/* Компактные стили для календаря */
.main-wrapper {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  width: 100%;
}

.calendar-box {
  flex-shrink: 0;
  width: 190px;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 4px;
}

.calendar-header h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  min-width: 75px;
  text-align: center;
  flex: 1;
}

.calendar-nav-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 2px 5px;
  cursor: pointer;
  font-size: 11px;
  color: #333;
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
  background: var(--accent-color, #007bff);
  color: white;
  border-color: var(--accent-color, #007bff);
}

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

.weekday {
  text-align: center;
  font-size: 8px;
  font-weight: 600;
  color: #666;
  padding: 1px 0;
  text-transform: uppercase;
}

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

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border-radius: 3px;
  cursor: pointer;
  background: transparent;
  color: #666;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.calendar-day:hover {
  background: transparent;
  border-color: var(--accent-color, #007bff);
}

.calendar-day.other-month {
  color: #ccc;
  background: transparent;
}

.calendar-day.other-month:hover {
  border-color: var(--accent-color, #007bff);
}

.calendar-day.today {
  background: transparent;
  color: #666;
  font-weight: 600;
  border-color: var(--accent-color, #007bff);
}

.calendar-day.today:hover {
  background: transparent;
  border-color: var(--accent-color, #007bff);
}

.calendar-day.selected {
  background: var(--accent-color, #007bff);
  color: white;
  font-weight: 600;
  border-color: var(--accent-color, #007bff);
}

.calendar-day.selected:hover {
  background: var(--accent-color, #007bff);
  border-color: var(--accent-color, #007bff);
}

.main {
  flex: 1;
  min-width: 300px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .main-wrapper {
    flex-direction: column;
  }

  .calendar-box {
    width: 100%;
  }

  .main {
    min-width: auto;
  }

  .container {
    max-width: 100%;
  }
}
