.flow-assets {
  border-radius: 5px;
  padding: 10px 15px;
  background-color: var(--bg-color);
  max-height: calc(100% - 40px);
  font-size: 1em;
  margin: 20px;
  pointer-events: all;
  input {
    font-size: 1em;
    outline: none;
    background-color: var(--bg-color);
    border: 1px solid var(--highlight-blue);
    border-radius: 4px;
    padding: 2px 5px;
    flex: 1;
  }
  .name {
    padding: 3px 6px;
  }
  .flow-assets-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    & > .arrow-right-icon {
      margin-right: 5px;
      fill: var(--text-inactive-color);
    }
  }

  .menu-container {
    position: absolute;
  }

  &:not(.active) {
    .asset-upload {
      display: none;
    }
    & > .entries {
      display: none;
    }
  }

  &.active {
    width: 500px;
    min-height: 300px;
    & > .flow-assets-header > .arrow-right-icon {
      transform: rotate(90deg);
    }
  }

  /* File Upload Styling */
  .file-upload {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    margin-bottom: 30px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    overflow: hidden;
    border: 2px dashed rgb(222, 222, 222);
    svg {
      fill: rgb(181, 181, 181);
    }
    &:hover svg {
      fill: var(--highlight-blue) !important;
    }
    &.selected {
      svg {
        fill: var(--highlight-green);
      }
      border-color: var(--highlight-green);
      background-color: var(--light-green);
    }
  }

  .file-upload input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }

  .file-upload:hover {
    background-color: var(--light-blue);
    border-color: var(--highlight-blue);
  }
}

.flow-asset-directory {
  & > .header {
    display: flex;
    cursor: pointer;
    align-items: center;
    & > .arrow-right-icon {
      margin-right: 5px;
      fill: var(--text-inactive-color);
    }
    &:hover {
      background-color: var(--hover-bg-color);
    }
  }
  &:not(.active) > .entries {
    display: none;
  }

  &.active {
    & > .header > .arrow-right-icon {
      transform: rotate(90deg);
    }
  }
}

.flow-asset {
  & > .header {
    display: flex;
    cursor: pointer;
    align-items: center;
    &:hover {
      background-color: var(--hover-bg-color);
    }
  }
}

.asset-size {
  margin-left: 1em;
  margin-right: 1em;
  font-size: 0.8em;
  color: var(--text-inactive-color);
}