.date-picker-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  min-width: 320px;
}

.date-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.date-picker-month-year {
  font-weight: 600;
  font-size: 16px;
  flex: 1;
  text-align: center;
}

.date-picker-nav-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.date-picker-nav-btn:hover {
  background-color: #f7f7f7;
}

.date-picker-nav-btn svg {
  width: 10px;
  height: 16px;
}

.date-picker-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}

.day-name {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #717171;
  padding: 8px 0;
}

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

.date-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s ease;
  position: relative;
  border: 1px solid transparent;
}

.date-cell:not(.disabled):hover {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  transform: scale(1.05);
}

.date-cell.disabled {
  color: #ddd;
  cursor: not-allowed;
  text-decoration: line-through;
}

.date-cell.selected {
  color: #e0e0e0;
  font-weight: 600;
  border: 1px solid var(--tblr-primary);
}

.date-cell.selected:hover {
  background-color: #000;
  transform: scale(1.0);
}

.date-cell.start-date {
  background: linear-gradient(90deg, #ee2e66, #ef6a54);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.date-cell.end-date {
  background: linear-gradient(280deg, #ee2e66, #ef6a54);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.date-cell.in-range {
  background: linear-gradient(1deg, #ee2e66, #ef6a54);
  border-radius: 0;
  color: #e0e0e0;
}

.date-cell.in-range:hover {
  background-color: #fdfdfd;
}

.date-picker-time-inputs {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ebebeb;
}

.time-input-group {
  flex: 1;
}

.time-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.time-input-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.date-picker-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ebebeb;
}

.date-picker-clear {
  padding: 10px 16px;
  border: none;
  background: none;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
}

.date-picker-clear:hover {
  background-color: #f7f7f7;
}

.date-picker-done {
  padding: 10px 24px;
  background: linear-gradient(90deg, #ee2e66, #ef6a54);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.date-picker-done:hover {
  background-color: #000;
}

.home_date_dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 100;
  padding: 0;
  min-width: 360px;
  max-width: 90vw;
}

.home_date_dropdown.d-none {
  display: none !important;
  visibility: hidden;
}

.home_date_dropdown:not(.d-none) {
  display: block !important;
  visibility: visible;
}

.home_date_filter {
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

/* .home_date_filter.active {
  background-color: #f7f7f7;
  border-radius: 32px;
} */

.home_date_filter:hover {
  /* background-color: #f7f7f7; */
  border-radius: 32px;
}

.home_date_filter > div:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.home_date_filter > div:first-child > div {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home_date_dropdown {
    left: 10px;
    right: 10px;
    min-width: auto;
  }
  
  .home_date_dropdown {
    transform: translateY(-10px) scale(0.95);
  }
  
  .home_date_dropdown:not(.d-none) {
    transform: translateY(0) scale(1);
  }
  
  .date-picker-container {
    min-width: auto;
    padding: 15px;
  }

  .mobile_date_dropdown .date-picker-container {
    min-width: auto;
    padding: 15px;
  }
  
  .date-picker-days-grid {
    gap: 1px;
  }
  
  .date-cell {
    font-size: 13px;
  }
}
