.timeline-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.timeline-header h3 {
  margin: 0;
  font-size: 1.125rem;
  color: #333;
  font-weight: 600;
}

.time-display {
  font-size: 0.875rem;
  color: #666;
  font-family: monospace;
}

.current-time {
  color: #1976d2;
  font-weight: bold;
}

.separator {
  margin: 0 0.25rem;
  color: #999;
}

.total-time {
  color: #666;
}

.timeline-content {
  position: relative;
}

.timeline-track {
  position: relative;
  height: 40px;
  background-color: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #1976d2 0%, #2196f3 100%);
  border-radius: 20px;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

.timeline-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: white;
  border: 3px solid #1976d2;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: white;
  border: 3px solid #1976d2;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-slider:hover {
  opacity: 1;
}

.timeline-slider:hover::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.timeline-slider:hover::-moz-range-thumb {
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.detection-marker {
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

.detection-marker.normal {
  background-color: #ff9800;
}

.detection-marker.dangerous {
  background-color: #f44336;
  animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 1rem;
}

.detection-zones {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.zone-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
}

.zone-label.safe {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.zone-label.warning {
  background-color: #fff3e0;
  color: #e65100;
}

.zone-label.danger {
  background-color: #ffebee;
  color: #b71c1c;
}

.zone-icon {
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .timeline-container {
    padding: 1rem;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .detection-zones {
    justify-content: flex-start;
  }
}