.ship-context-menu {
  position: fixed;
  z-index: 1000;
  background: #1a1a2e;
  border: 1px solid #3a3a5e;
  border-radius: 4px;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  user-select: none;

  &__header {
    padding: 6px 12px;
    font-size: 12px;
    color: #aaa;
    border-bottom: 1px solid #3a3a5e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }

  &__item {
    position: relative;
    padding: 8px 12px;
    font-size: 13px;
    color: #ddd;
    cursor: pointer;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;

    &:hover {
      background: #2a2a4e;
      color: #fff;
    }

    &.has-submenu {
      padding-right: 24px;
    }

    &.active {
      background: rgba(0, 150, 255, 0.3);
      color: #fff;

      &::before {
        content: '✓';
        position: absolute;
        left: 4px;
        font-size: 10px;
        color: #00a8ff;
      }
    }

    .submenu-arrow {
      font-size: 10px;
      color: #888;
      margin-left: 8px;
    }
  }

  &__submenu {
    position: absolute;
    top: 0;
    background: #1a1a2e;
    border: 1px solid #3a3a5e;
    border-radius: 4px;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1001;

    &.right {
      left: 100%;
      margin-left: 2px;
    }

    &.left {
      right: 100%;
      margin-right: 2px;
    }
  }
}
