/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ========================================
   iOS Style Rolling DateTime Picker
   ======================================== */

.datetime-picker-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0;
  height: 12rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #18181b;
  border: 1px solid #3f3f46;
  padding: 0;
}

.picker-highlight {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2.75rem;
  transform: translateY(-50%);
  border-radius: 0;
  pointer-events: none;
  z-index: 10;
  background: rgba(168, 85, 247, 0.15);
  border-top: 1px solid rgba(168, 85, 247, 0.3);
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

.picker-column {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  padding: 5.5rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.picker-column::-webkit-scrollbar {
  display: none;
}

.picker-item {
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  scroll-snap-align: center;
  transition: all 150ms;
  font-size: 16px;
  color: #e4e4e7;
}

.picker-item.selected {
  font-weight: 700;
  font-size: 18px;
  color: #a855f7;
}

/* Fade effect at top and bottom */
.datetime-picker-wrapper::before,
.datetime-picker-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4rem;
  pointer-events: none;
  z-index: 20;
}

.datetime-picker-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, #18181b, transparent);
}

.datetime-picker-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, #18181b, transparent);
}

/* Compact version for smaller screens */
.datetime-picker-wrapper.datetime-picker-compact {
  height: 9.375rem;
}

.datetime-picker-wrapper.datetime-picker-compact .picker-column {
  padding: 3.3125rem 0;
}
