.date-range-picker {
  position: relative;
  display: inline-block;
}

.date-range-btn {
  
}


.calendar-icon {
  flex-shrink: 0;
  color: #666;
}

.date-range-text {
  flex: 1;
  text-align: left;
  font-weight: 600;
}

.date-range-placeholder {
  flex: 1;
  text-align: left;

}

.clear-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: color 0.2s ease;
}

.clear-btn:hover {
  color: #333;
}

.close-icon {
  flex-shrink: 0;
}

.calendar-popup {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background-color: #fff;
  border: 1px solid #ECEDF0;
  border-radius: 8px;
   box-shadow:  0 0 8px 0 rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 16px;
  min-width: 700px;
}

.calendar-container {
  display: flex;
  gap: 24px;
}

.calendar-months {
  display: flex;
  gap: 24px;
  flex: 1;
}

.month-section {
  flex: 1;
  min-width: 280px;
}

.month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 8px;
}

.month-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  min-width: 150px;
  text-align: center;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 4px 8px;
  transition: color 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.nav-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}

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

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

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

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.day:not(.other-month):hover {
   background-color: var(--primary-btn-bg-color-hover);
   border-color: var(--primary-btn-bg-color-hover);
    color: #fff;
}

.day.other-month {
  color: #ccc;
  cursor: default;
}

.day.today {
  border-color: var(--primary-btn-bg-color);;
  color: var(--primary-btn-bg-color);;
  font-weight: 600;
}

.day.selected-start,
.day.selected-end {
  background-color: var(--primary-btn-bg-color);
  color: #fff;
  font-weight: 600;
  border-color: var(--primary-btn-bg-color);
}

.day.in-range {
  background-color: rgba(250, 100, 5, 0.1);
  color: #333;
  border-color: transparent;
}
.day.hover-range {
  background-color: #ECEDF0;
  color: #333; 
  border-radius: 0;
  position: relative;
}
.quick-select {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 160px;
}
.quick-select-title {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.preset-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  transition: all 0.2s ease;
  text-align: left;
}

.preset-btn:hover {
  border-color: 007bff;
  background-color: #f0f7ff;
  color: var(--primary-btn-bg-color);
}

.preset-btn.active {
  background-color: var(--primary-btn-bg-color);
  color: #fff;
  border-color: var(--primary-btn-bg-color);
}

.select-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background-color: var(--primary-btn-bg-color);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.select-btn:hover {
  background-color: #0056b3;
}

.select-btn:active {
  background-color: #003d82;
}

/* Адаптивность */
@media (max-width: 768px) {
  .calendar-popup {
    min-width: auto;
    width: 90vw;
    max-width: 500px;
  }

  .calendar-container {
    flex-direction: column;
    gap: 16px;
  }

  .calendar-months {
    flex-direction: column;
  }

  .month-section {
    min-width: auto;
  }

  .quick-select {
    min-width: auto;
  }
}
