/**
 * BoundaryIndicator component styles
 *
 * Floating badge showing where cross-component paths continue.
 * Uses design tokens for consistency.
 */

.boundaryIndicator {
  position: absolute;
  pointer-events: auto;
  z-index: 1001; /* Above highlighted nodes */
  transform: translate(-50%, -50%); /* Center on position */

  /* Animation */
  animation: fade-in 0.3s ease-out;
}

.content {
  display: flex;
  align-items: center;
  gap: var(--theme-spacing-2);
  padding: var(--theme-spacing-2) var(--theme-spacing-3);

  background-color: var(--theme-color-bg-3);
  border: 1px solid var(--theme-color-border-default);
  border-radius: 8px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

  /* Smooth hover transition */
  transition: all 0.2s ease;

  &:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }
}

.icon {
  font-size: 16px;
  font-weight: bold;
  color: var(--theme-color-fg-highlight);
  min-width: 16px;
  text-align: center;
}

.label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.text {
  font-size: 11px;
  color: var(--theme-color-fg-default-shy);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.componentName {
  font-size: 13px;
  color: var(--theme-color-fg-default);
  font-weight: 600;
}

.navigateButton {
  padding: var(--theme-spacing-1) var(--theme-spacing-2);
  background-color: var(--theme-color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    background-color: var(--theme-color-primary-hover);
    transform: scale(1.1);
  }

  &:active {
    transform: scale(0.95);
  }
}

/* Direction-specific styling */
.directionUp {
  .icon {
    color: var(--theme-color-accent-blue);
  }
}

.directionDown {
  .icon {
    color: var(--theme-color-accent-orange);
  }
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
