/* === LeftSidebar — Location, Actions, POIs === */
.sidebar {
  display: flex;
  flex-direction: column;
  background: rgba(10, 14, 23, 0.95);
  border-right: 1px solid rgba(61, 90, 108, 0.4);
  min-height: 0;
  overflow: hidden;
}

/* Tab Bar */
.tabBar {
  display: flex;
  border-bottom: 1px solid rgba(61, 90, 108, 0.3);
  flex-shrink: 0;
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.45rem 0.5rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--hull-grey);
  cursor: pointer;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.tab:hover {
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.05);
}

.tabActive {
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.08);
  border-bottom-color: var(--plasma-cyan);
}

.tabContent {
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 2px;
}

/* --- Location Header --- */
.location {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(61, 90, 108, 0.3);
}

.systemName {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--plasma-cyan);
  margin-bottom: 0.25rem;
}

.systemMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.metaTag {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  background: rgba(61, 90, 108, 0.2);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dockedBadge {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--energy-green);
  background: rgba(0, 200, 83, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.currentPoiBlock {
  margin-top: 0.3rem;
}

.currentPoi {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--star-white);
}

.poiDescription {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.resourceList {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.resourceItem {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.15rem 0.3rem;
  background: rgba(61, 90, 108, 0.1);
  border-radius: 2px;
}

.resourceName {
  flex: 1;
  color: var(--star-white);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resourceRichness {
  color: var(--plasma-cyan);
  flex-shrink: 0;
}

.resourceRemaining {
  color: var(--hull-grey);
  flex-shrink: 0;
}

.poiType {
  color: var(--hull-grey);
  font-size: 0.75rem;
}

.emptyState {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
}

/* --- Travel Progress --- */
.travelBar {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(61, 90, 108, 0.3);
}

.travelLabel {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  margin-bottom: 0.3rem;
}

/* --- Actions --- */
.actions {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(61, 90, 108, 0.3);
}

.sectionLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hull-grey);
  margin-bottom: 0.4rem;
}

.actionBtn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.2rem;
  border: 1px solid rgba(61, 90, 108, 0.3);
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.05);
  color: var(--star-white);
  cursor: pointer;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.actionBtn:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--plasma-cyan);
  color: var(--plasma-cyan);
}

.actionBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- POI Section --- */
.poiSection {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(61, 90, 108, 0.3);
}

.poiList {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.poiEntry {
  /* wrapper for item + details */
}

.poiItem {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.4rem;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  transition: background 0.15s, color 0.15s;
}

.poiItem:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--star-white);
}

.poiItemActive {
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.08);
}

.poiIcon {
  flex-shrink: 0;
}

.poiName {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poiOnline {
  font-size: 0.75rem;
  color: var(--energy-green);
  background: rgba(0, 200, 83, 0.15);
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.poiChevron {
  flex-shrink: 0;
  color: var(--hull-grey);
  transition: transform 0.2s ease;
}

.poiChevronOpen {
  transform: rotate(180deg);
}

.poiDetails {
  padding: 0.3rem 0.4rem 0.3rem 1.4rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
}

.poiDetailRow {
  display: flex;
  justify-content: space-between;
  padding: 0.1rem 0;
}

.poiDetailLabel {
  color: var(--hull-grey);
}

.poiTravelBtn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 3px;
  background: rgba(0, 212, 255, 0.05);
  color: var(--plasma-cyan);
  cursor: pointer;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  transition: background 0.15s;
}

.poiTravelBtn:hover {
  background: rgba(0, 212, 255, 0.15);
}

/* --- Connections Section --- */
.connectionsSection {
  padding: 0.5rem 0.75rem;
}

.connectionList {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.connectionItem {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.4rem;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  transition: background 0.15s, color 0.15s;
}

.connectionItem:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--plasma-cyan);
}

.connectionName {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connectionDist {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--hull-grey);
}

/* --- Explore Tab --- */
.exploreSearch {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(61, 90, 108, 0.3);
}

.searchInputWrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(61, 90, 108, 0.3);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.searchInputWrapper:focus-within {
  border-color: var(--plasma-cyan);
}

.searchIcon {
  color: var(--hull-grey);
  flex-shrink: 0;
}

.searchInput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--star-white);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  outline: none;
  min-width: 0;
}

.searchInput::placeholder {
  color: rgba(140, 170, 200, 0.4);
}

.searchResults {
  margin-top: 0.4rem;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.searchResultItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.35rem 0.5rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(61, 90, 108, 0.15);
  color: var(--chrome-silver);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.searchResultItem:last-child {
  border-bottom: none;
}

.searchResultItem:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--plasma-cyan);
}

.searchResultName {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchResultEmpire {
  font-size: 0.75rem;
  color: var(--hull-grey);
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.searchEmpty {
  padding: 0.75rem 0.5rem;
  text-align: center;
  color: var(--hull-grey);
  font-size: 0.75rem;
}

/* --- System Detail (Explore) --- */
.systemDetail {
  padding: 0.6rem 0.75rem;
}

.systemDetailName {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plasma-cyan);
  margin-bottom: 0.25rem;
}

.systemDetailEmpire {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--chrome-silver);
  margin-bottom: 0.4rem;
}

.systemDetailTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.detailTag {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detailTagDanger {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #ff6b6b;
  background: rgba(255, 68, 68, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plotCourseBtn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--plasma-cyan);
  cursor: pointer;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  transition: background 0.15s, border-color 0.15s;
}

.plotCourseBtn:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--plasma-cyan);
}

.plotCourseBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Intel Section (in system detail) --- */
.intelSection {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(61, 90, 108, 0.2);
}

.intelSection .sectionLabel {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--shell-orange, #f59e0b);
}

.intelMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.intelSubmitter {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  font-style: italic;
}

.intelPoiList {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.intelPoiItem {
  padding: 0.3rem 0.4rem;
  background: rgba(61, 90, 108, 0.08);
  border-radius: 3px;
  border-left: 2px solid rgba(245, 158, 11, 0.3);
}

.intelPoiHeader {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--star-white);
}

.intelPoiName {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intelPoiType {
  font-size: 0.75rem;
  color: var(--hull-grey);
  flex-shrink: 0;
}

.intelPoiStation {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--plasma-cyan);
  margin-top: 0.15rem;
  padding-left: 0.2rem;
}

.intelResourceList {
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.intelResourceItem {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.1rem 0.2rem 0.1rem 0.2rem;
}

.intelResourceIcon {
  color: var(--shell-orange, #f59e0b);
  flex-shrink: 0;
}

.intelResourceName {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--star-white);
}

.intelResourceRichness {
  color: var(--plasma-cyan);
  flex-shrink: 0;
}

.intelResourceRemaining {
  color: var(--hull-grey);
  flex-shrink: 0;
  min-width: 3rem;
  text-align: right;
}

/* --- Search section labels --- */
.searchSectionLabel {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hull-grey);
  padding: 0.4rem 0.5rem 0.15rem;
}

.searchResultIntelDetail {
  font-size: 0.75rem;
  color: var(--shell-orange, #f59e0b);
  margin-left: 0.4rem;
  flex-shrink: 0;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.systemDetailConnections {
  margin-top: 0.4rem;
}

.exploreEmpty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
}

.exploreEmptyIcon {
  opacity: 0.2;
}

/* === Responsive === */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
}
