export interface BacktrackVessel {
  rank: number
  name: string
  imo: string
  type: string
  flag: string
  flagCountry: string
  probability: number
  closestTime: string
  closestDistance: number
  speedChange: string
  aisStatus: string
  description: string
  color: string
}

export interface BacktrackConditions {
  estimatedSpillTime: string
  analysisRange: string
  searchRadius: string
  spillLocation: { lat: number; lon: number }
  totalVessels: number
}

export interface ReplayPathPoint {
  lat: number
  lon: number
}

export interface ReplayShip {
  vesselName: string
  color: string
  path: ReplayPathPoint[]
  speedLabels: string[]
}

export interface CollisionEvent {
  position: { lat: number; lon: number }
  timeLabel: string
  progressPercent: number
}

export type BacktrackPhase = 'conditions' | 'analyzing' | 'results' | 'replay'

export const TOTAL_REPLAY_FRAMES = 120
