.conversation-item {
  margin-bottom: 16px;
  margin-top: 16px;
  padding: 16px 16px 18px 32px;
  cursor: pointer;
  border-radius: 8px;
  color: #6D717C;

  .actions {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #B9D6ED;
    position: relative;
    top: 0;
    right: 0;
    float: right;

    .menu {
      cursor: pointer;
      text-align: right;

      i {
        font-size: 1.2rem;
      }
    }

    .dropdown {
      .dropdown-menu {
        right: 0;
        left: auto;
      }

      .dropdown-item {
        i {
          margin-right: 0.5rem;
        }
      }

      &.is-hoverable:hover {
        .dropdown-menu {
          display: block;
        }
      }
    }

    .trash {
      color: red;
      fill: red;
    }
  }

  &:hover {
    background: #3B87CC1A;
  }

  &.is-active {
    background: rgba(#3B87CC1A, 10%);
    font-weight: 600;

    .active-peak {
      position: relative;
      right: calc(-100% - 16px);
      top: -35px;
      visibility: visible;
    }
  }

  .pinned-icon {
    position: relative;
    left: -1.7em;

    i {
      color: #FEC553;
      fill: #FEC553;
    }
  }

  .active-peak {
    visibility: hidden;
  }

  .name {
    color: #1E1F22;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    margin-top: -1.5em;
    margin-left: 0;
  }

  .description {
    color: #6D717C;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    margin-right: 4px;
  }

  .date {
    color: rgba(#5F5F5F99, 60%);
    float: right;
    text-align: right;
    font-family: Barlow;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 8px;
    margin-top: -1.5em;
  }

  input {
    display: none;

    &.is-visible {
      display: block;
    }
  }
}

// Dropdown styles
.dropdown {
  position: relative;
  display: inline-block;

  &.is-active,
  &.is-hoverable:hover {
    .dropdown-menu {
      display: block;
    }
  }

  .dropdown-trigger {
    display: inline-block;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    z-index: 20;
    top: 100%;
    right: 0;
    min-width: 12rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.02);
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
  }

  .dropdown-content {
    padding: 0.5rem 0;
  }

  .dropdown-item {
    color: #4a4a4a;
    display: block;
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0.375rem 1rem;
    position: relative;
    cursor: pointer;

    &:hover {
      background-color: #f5f5f5;
      color: #0a0a0a;
    }

    &.is-active {
      background-color: #3273dc;
      color: white;
    }
  }
}

// LLM avatar
.llm-avatar {
  background: white;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background-size: contain;
  margin-right: 10px;
}
