<template>
  <ChatInterface v-if="store.phase === 'chat'" />
  <ComparisonView v-else-if="store.phase === 'comparison'" />
  <Workbench v-else />
</template>

<script setup>
import { useItineraryStore } from './stores/itinerary'
import ChatInterface from './components/ChatInterface.vue'
import ComparisonView from './components/ComparisonView.vue'
import Workbench from './components/Workbench.vue'

const store = useItineraryStore()
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.3);
}
</style>
