.breakdown-container {
  padding: 108px 20px 20px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

#boat-breakdown-view {
  /* display: flex; No longer a flex container */
  /* height: calc(100vh - 128px); */
}

#boat-selector-container {
  margin-bottom: 20px;
}

#boat-selector {
  width: 100%;
  padding: 10px;
  background-color: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  font-size: 1.1em;
}

#boat-details-container {
  padding: 20px;
  overflow-y: auto;
}

/* Remove old list container styles */
/*
#boat-list-container {
  width: 300px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 10px;
}
*/
.view-toggle {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}

.view-toggle button {
  padding: 10px 15px;
  border: 1px solid var(--border);
  background-color: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.view-toggle button:hover {
  background-color: var(--surface);
}

.view-toggle button.active {
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: bold;
}

.group-container {
  margin-bottom: 40px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.node-chart {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 10px;
}

.node {
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px;
  margin: 0 2px;
  min-width: 60px;
  text-align: center;
  font-size: 0.7em;
}

.node-arrow {
  font-size: 1em;
  color: var(--muted);
}

.timeline {
  width: 100%;
  padding: 20px 0;
}

.timeline-bar {
  width: 100%;
  height: 10px;
  background-color: var(--surface-2);
  border-radius: 5px;
  position: relative;
  border: 1px solid var(--border);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.8em;
  color: var(--muted);
}

.timeline-hour-tick {
  position: absolute;
  width: 1px;
  height: 5px;
  background-color: var(--muted);
  top: -5px;
}

.timeline-hour-label {
  position: absolute;
  top: -20px;
  transform: translateX(-50%);
  font-size: 0.7em;
  color: var(--muted);
}

.timeline-event-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--muted);
  border-radius: 50%;
  transition: all 0.2s;
}

.timeline-event-marker.highlight {
  background-color: var(--tech-color);
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 12px var(--tech-color);
}

#timeline-view {
  padding: 20px;
}

.view-toggle {
  position: sticky;
  top: 88px; /* Height of main site header */
  background-color: var(--surface);
  z-index: 30;
  padding-top: 10px;
  padding-bottom: 10px;
}

.gantt-header-container {
  position: sticky;
  top: 142px; /* Header (88) + View Toggle (~54) */
  z-index: 20;
  background-color: var(--surface);
  overflow-x: hidden;
  margin-left: 150px; /* Align with timeline area */
}

.gantt-body-container {
  overflow-x: auto;
  display: flex;
}

.gantt-boat-labels {
  flex-shrink: 0;
  width: 150px;
  background-color: var(--surface);
  z-index: 10;
}

.gantt-boat-label {
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.2;
}

.gantt-boat-label .model {
  font-size: 0.85em;
  font-weight: 400;
  opacity: 0.8;
}

.gantt-header {
  display: flex;
}

.gantt-hour {
  flex-shrink: 0;
  width: 40px; /* Restored smaller size */
  text-align: center;
  padding: 10px 5px;
  border-right: 1px solid var(--border);
  font-size: 0.8em;
  color: var(--muted);
}

.gantt-timeline-area {
  position: relative;
}

.gantt-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.gantt-grid-line {
  flex-shrink: 0;
  width: 40px; /* Restored smaller size */
  border-right: 1px solid var(--border);
}

.gantt-row {
  height: 40px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.gantt-time-bar {
  position: absolute;
  top: 5px;
  height: 30px;
  border-radius: 4px;
  opacity: 0.8;
  cursor: pointer;
  transition: all 0.2s;
}

.gantt-time-bar:hover {
  opacity: 1;
  transform: scaleY(1.1);
}

@media (max-width: 768px) {
  .view-toggle {
    flex-wrap: wrap;
  }

  #boat-breakdown-view {
    flex-direction: column;
    height: auto;
  }

  #boat-list-container, #boat-selector-container {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 200px;
  }

  .group-container {
    padding: 10px;
  }

  .node {
    min-width: 90px;
    padding: 8px;
    font-size: 0.8em;
  }

  .gantt-chart-container {
    grid-template-columns: 100px 1fr;
  }

  .gantt-boat-labels, .gantt-header-container {
    margin-left: 0;
  }

  .gantt-header-container {
    padding-left: 100px;
  }

  .gantt-boat-label {
    font-size: 0.7em;
  }

  #timeline-view {
    padding: 10px;
  }
}

.gantt-time-bar.tech { background-color: var(--tech-color); }
.gantt-time-bar.review { background-color: var(--review-color); }
.gantt-time-bar.media { background-color: var(--media-color); }
.gantt-time-bar.boss { background-color: var(--boss-color); }

/* Remove unused connector and old segment styles */
.timeline-connector, .timeline-work-segment {
  display: none;
}

.node.clicked {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.timeline-day-label {
  position: absolute;
  top: 20px;
  font-size: 0.8em;
  color: var(--muted);
  transform: translateX(-50%);
  text-align: center;
}

.boat-details-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.boat-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#metrics-list ul {
  list-style: none;
  padding: 0;
}

#metrics-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.boat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.boat-list-item {
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background-color 0.3s;
}

.boat-list-item:hover {
  background-color: var(--surface);
  border-color: var(--accent);
}
