/**
 * TopologyMapPanel Styles
 */

.TopologyMapPanel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--theme-color-bg-2);
}

.TopologyMapPanel__header {
  background: var(--theme-color-bg-3);
  border-bottom: 1px solid var(--theme-color-border-default);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.TopologyMapPanel__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.TopologyMapPanel__backButton {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--theme-color-border-default);
  border-radius: 4px;
  color: var(--theme-color-fg-default);
  cursor: pointer;
  padding: 6px;
  transition: all 0.2s ease;

  &:hover {
    background: var(--theme-color-bg-4);
    border-color: var(--theme-color-primary);
    color: var(--theme-color-primary);
  }

  &:active {
    background: var(--theme-color-bg-5);
  }
}

.TopologyMapPanel__icon {
  font-size: 24px;
}

.TopologyMapPanel__titleText {
  color: var(--theme-color-fg-default);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.TopologyMapPanel__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.TopologyMapPanel__breadcrumbLabel {
  color: var(--theme-color-fg-default-shy);
  font-weight: 500;
}

.TopologyMapPanel__breadcrumb {
  color: var(--theme-color-fg-default);
}

.TopologyMapPanel__breadcrumbSeparator {
  color: var(--theme-color-fg-default-shy);
  font-weight: 300;
}

.TopologyMapPanel__stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--theme-color-fg-default-shy);

  span {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

.TopologyMapPanel__orphanCount {
  color: var(--theme-color-warning) !important;
  font-weight: 500;
}

// Legend
.TopologyMapPanel__legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--theme-color-bg-2);
  border-radius: 6px;
  border: 1px solid var(--theme-color-border-subtle);
}

.TopologyMapPanel__legendItem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.TopologyMapPanel__legendIcon {
  font-size: 16px;
  min-width: 24px;
  text-align: center;
}

.TopologyMapPanel__legendText {
  color: var(--theme-color-fg-default);
  font-weight: 500;
}

// Tooltip
.TopologyMapPanel__tooltip {
  position: fixed;
  z-index: 1000;
  background: var(--theme-color-bg-4);
  border: 1px solid var(--theme-color-border-default);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  pointer-events: none;
  padding: 12px;
}

.TopologyMapPanel__tooltipTitle {
  color: var(--theme-color-fg-default);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--theme-color-border-default);
}

.TopologyMapPanel__tooltipContent {
  color: var(--theme-color-fg-default-shy);
  font-size: 12px;
  line-height: 1.6;

  div {
    margin-bottom: 4px;
  }
}

.TopologyMapPanel__tooltipSection {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px solid var(--theme-color-border-subtle);

  strong {
    color: var(--theme-color-fg-default);
  }
}

.TopologyMapPanel__tooltipHint {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--theme-color-border-subtle);
  color: var(--theme-color-primary);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}
