/* Custom Animations & Styles for Baby Sleep Tracker */

@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.entry-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.06);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth modal transitions */
#entryModal:not(.hidden),
#feedingModal:not(.hidden) {
  opacity: 1;
}

#entryModal:not(.hidden) #modalCard,
#feedingModal:not(.hidden) #feedingModalCard {
  transform: scale(1);
}

/* Timeline Tooltips */
.timeline-segment {
  transition: all 0.15s ease;
}

.timeline-segment:hover {
  filter: brightness(1.1);
  z-index: 10;
}

.timeline-marker {
  transform: translateX(-50%);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-marker:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.15);
  z-index: 20;
}

/* Filling Column / Gauge Styles */
.feeding-column-container {
  position: relative;
  background: linear-gradient(to top, #f8fafc, #f1f5f9);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feeding-column-fill {
  transition: height 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
  background: linear-gradient(180deg, #34d399 0%, #10b981 40%, #059669 100%);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.feeding-column-fill.overflow {
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 40%, #0284c7 100%);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.45);
}

/* Custom range/number input clean look */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

/* 24-Hour Drum Wheel Time Picker */
.drum-wheel-wrapper {
  position: relative;
  background: #f8fafc;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  user-select: none;
}

.drum-wheel-lens {
  position: absolute;
  top: 50%;
  left: 0.5rem;
  right: 0.5rem;
  height: 48px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #6366f1;
  border-radius: 0.875rem;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.drum-wheel-lens.emerald {
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.drum-wheel-scroll-col {
  height: 190px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 71px;
  padding-bottom: 71px;
  position: relative;
  z-index: 2;
}

.drum-wheel-scroll-col::-webkit-scrollbar {
  display: none;
}

.drum-cell {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
}

.drum-cell.active {
  color: #0f172a;
  font-size: 1.6rem;
  font-weight: 800;
  transform: scale(1.08);
}

/* Drum Midnight Boundary Badges */
.drum-boundary-tag-yesterday {
  background: #ffe4e6;
  color: #e11d48;
  border: 1px solid #fecdd3;
  box-shadow: 0 1px 4px rgba(225, 29, 72, 0.15);
}

.drum-boundary-tag-today {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.15);
}

.drum-shade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.95) 10%, rgba(248, 250, 252, 0) 100%);
  pointer-events: none;
  z-index: 10;
}

.drum-shade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(248, 250, 252, 0.95) 10%, rgba(248, 250, 252, 0) 100%);
  pointer-events: none;
  z-index: 10;
}
