/* Timeline bars */
.hour-segment {
  flex: 1;
  height: 100%;
  min-width: 0;
  transition: opacity 0.2s;
  position: relative;
}

.hour-segment.day {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  opacity: 0.35;
}

.hour-segment.night {
  background: linear-gradient(180deg, #312e81, #1e1b4b);
  opacity: 0.5;
}

.hour-segment.current {
  opacity: 1 !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  z-index: 1;
}

.hour-segment:first-child {
  border-radius: 6px 0 0 6px;
}

.hour-segment:last-child {
  border-radius: 0 6px 6px 0;
}

/* Now indicator */
.now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f472b6;
  box-shadow: 0 0 8px 2px rgba(244, 114, 182, 0.5);
  z-index: 10;
  pointer-events: none;
}

.now-dot {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f472b6;
  box-shadow: 0 0 6px rgba(244, 114, 182, 0.6);
}

/* City row */
.city-row {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.city-row:hover .remove-btn {
  opacity: 1;
}

.remove-btn {
  opacity: 0;
  transition: opacity 0.15s;
}

/* Timeline container */
.timeline-bar {
  display: flex;
  gap: 1px;
  height: 36px;
  position: relative;
  border-radius: 6px;
  overflow: visible;
}

/* Hour labels */
.hour-labels {
  display: flex;
  gap: 1px;
  padding: 0 0;
}

.hour-labels span {
  flex: 1;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

/* Modal */
.modal-backdrop {
  animation: fadeIn 0.15s ease-out;
}

.modal-content {
  animation: scaleIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Search results */
.city-option {
  transition: background-color 0.1s;
}

.city-option:hover {
  background-color: rgba(99, 102, 241, 0.2);
}

.city-option.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Scrollbar */
.city-list::-webkit-scrollbar {
  width: 6px;
}

.city-list::-webkit-scrollbar-track {
  background: transparent;
}

.city-list::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 640px) {
  .city-row-inner {
    flex-direction: column !important;
    gap: 4px !important;
  }

  .city-label {
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
  }

  .timeline-bar {
    height: 28px;
  }

  .remove-btn {
    opacity: 1;
  }
}
