/* iOS-style Date Scroll Picker */
.date-scroll-picker-wrapper {
  position: relative;
  width: 100%;
}

.date-scroll-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(52, 58, 64, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  height: calc(1.5em + 0.94rem + 5px);
  transition: all 0.2s;
}

.date-scroll-trigger:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.date-scroll-picker-wrapper.is-invalid .date-scroll-trigger {
  border-color: #f06548;
}

.date-scroll-value {
  color: #fff;
  font-size: 14px;
}

.date-scroll-placeholder {
  color: #878a99;
  font-size: 14px;
}

.date-scroll-trigger i {
  font-size: 18px;
  color: #adb5bd;
}

.date-scroll-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.date-scroll-overlay.show {
  opacity: 1;
  visibility: visible;
}

.date-scroll-modal {
  width: 100%;
  max-width: 400px;
  background: rgba(52, 58, 64, 0.98);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.date-scroll-overlay.show .date-scroll-modal {
  transform: translateY(0);
}

.date-scroll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.date-scroll-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.date-scroll-cancel,
.date-scroll-done {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}

.date-scroll-cancel {
  color: #adb5bd;
}

.date-scroll-done {
  color: #dc3545;
  font-weight: 600;
}

.date-scroll-columns {
  display: flex;
  height: 220px;
  position: relative;
  padding: 0 10px;
}

.date-scroll-column {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.date-scroll-list {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.date-scroll-list::-webkit-scrollbar {
  display: none;
}

.date-scroll-spacer {
  height: 88px;
}

.date-scroll-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.4);
  scroll-snap-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.date-scroll-item.active {
  color: #fff;
  font-weight: 600;
}

.date-scroll-indicator {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

@media (min-width: 768px) {
  .date-scroll-overlay {
    align-items: center;
  }

  .date-scroll-modal {
    border-radius: 16px;
    max-width: 360px;
  }
}
