/* Custom Calendar */
.date-picker-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}
.date-display {
  width: 100%;
  padding: 10px;
  background: #0D1117;
  border: 1px solid #30363D;
  border-radius: 6px;
  color: #E6EDF3;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
}
.date-display:hover {
  border-color: var(--color-primary);
}
.calendar-popup {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #161B22;
  border: 1px solid #30363D;
  border-radius: 6px;
  padding: 10px;
  z-index: 100;
  margin-top: 5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: none;
}
.calendar-popup.show {
  display: block;
}
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #30363D;
}
.cal-title {
  font-weight: 600;
  color: #E6EDF3;
  font-size: 14px;
}
.cal-btn {
  background: transparent;
  border: 1px solid #30363D;
  color: #8B949E;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cal-btn:hover {
  background: #30363D;
  color: #E6EDF3;
  border-color: #8B949E;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cal-day-header {
  font-size: 11px;
  font-weight: 600;
  color: #8B949E;
  padding: 4px 0;
}
.cal-day {
  padding: 8px 0;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  color: #C9D1D9;
  transition: background 0.2s;
}
.cal-day:hover:not(.disabled) {
  background: #30363D;
  color: #fff;
}
.cal-day.selected {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.cal-day.today {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.cal-day.today.selected {
  color: #fff;
}
.cal-day.disabled {
  color: #484F58;
  cursor: not-allowed;
  opacity: 0.5;
}
.cal-day.other-month {
  color: #484F58;
}
