:host {
  display: inline-block;
  position: relative;
  --hb-date-picker-font-size: 14px;
  --hb-date-picker-height: 32px;
  --hb-date-picker-border-color: var(--hb-border-color, #dcdfe6);
  --hb-date-picker-border-color-hover: var(--hb-color-primary);
  --hb-date-picker-bg-color: var(--hb-color-white, #ffffff);
}

.hb-date-picker {
  display: inline-block;
  position: relative;
  width: 240px;
}

.hb-date-picker__input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: pointer;
}

.hb-date-picker__input {
  display: inline-block;
  width: 100%;
  height: var(--hb-date-picker-height);
  line-height: var(--hb-date-picker-height);
  padding: 0 30px 0 15px;
  font-size: var(--hb-date-picker-font-size);
  color: var(--hb-color-text-regular, #606266);
  background-color: var(--hb-date-picker-bg-color);
  border: 1px solid var(--hb-date-picker-border-color);
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hb-date-picker__input:hover:not(:disabled) {
  border-color: var(--hb-date-picker-border-color-hover);
}

.hb-date-picker__input:focus {
  border-color: var(--hb-date-picker-border-color-hover);
}

.hb-date-picker__suffix {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.hb-date-picker__clear {
  margin-right: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--hb-color-text-placeholder, #c0c4cc);
  transition: color 0.2s;
}

.hb-date-picker__clear:hover {
  color: var(--hb-color-text-regular, #606266);
}

.hb-date-picker__icon {
  font-size: 14px;
}

.hb-date-picker__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background-color: var(--hb-date-picker-bg-color);
  border: 1px solid var(--hb-date-picker-border-color);
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 280px;
  padding: 12px;
}

.hb-date-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hb-date-picker__header-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--hb-color-text-regular, #606266);
}

.hb-date-picker__prev-btn,
.hb-date-picker__next-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--hb-color-text-regular, #606266);
  padding: 4px 8px;
  transition: color 0.2s;
}

.hb-date-picker__prev-btn:hover,
.hb-date-picker__next-btn:hover {
  color: var(--hb-color-primary);
}

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

.hb-date-picker__weekday {
  text-align: center;
  font-size: 12px;
  color: var(--hb-color-text-placeholder, #c0c4cc);
  font-weight: 500;
}

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

.hb-date-picker__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--hb-color-text-regular, #606266);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.hb-date-picker__day:hover:not(.hb-date-picker__day--other-month) {
  background-color: var(--hb-fill-color-light, #f5f7fa);
}

.hb-date-picker__day--other-month {
  color: var(--hb-color-text-placeholder, #c0c4cc);
  cursor: default;
}

.hb-date-picker__day--today {
  color: var(--hb-color-primary);
  font-weight: 600;
}

.hb-date-picker__day--selected {
  background-color: var(--hb-color-primary);
  color: var(--hb-color-white, #ffffff);
}

.hb-date-picker__day--disabled {
  color: var(--hb-color-text-placeholder, #c0c4cc);
  cursor: not-allowed;
}

.hb-date-picker__day--disabled:hover {
  background-color: transparent;
}

.hb-date-picker--small {
  width: 200px;
}

.hb-date-picker--small .hb-date-picker__input {
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  padding: 0 25px 0 12px;
}

.hb-date-picker--large {
  width: 280px;
}

.hb-date-picker--large .hb-date-picker__input {
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  padding: 0 35px 0 18px;
}

.hb-date-picker--disabled {
  cursor: not-allowed;
}

.hb-date-picker--disabled .hb-date-picker__input {
  background-color: var(--hb-fill-color-light, #f5f7fa);
  border-color: var(--hb-date-picker-border-color);
  color: var(--hb-color-text-disabled, #c0c4cc);
  cursor: not-allowed;
}

