// Variables
$bg-item: #2a2a2a;
$bg-item-hover: #333333;
$accent-blue: #4f46e5;
$text-primary: #f5f5f5;
$text-secondary: #aaa;

.llm-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 4px;
  background-color: $bg-item;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #404040;
  position: relative;

  &:focus {
    outline: none;
    border-color: $accent-blue;
  }

  &:hover {
    background-color: $bg-item-hover;
  }

  &.selected {
    background-color: rgba($accent-blue, 0.15);
    border-color: $accent-blue;
    box-shadow: 0 0 0 1px rgba($accent-blue, 0.4);

    .select-button {
      background-color: $accent-blue;
      color: white;
    }
  }

  .provider-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    margin-right: 16px;

    .item-text {
      line-height: 1.3;
      font-size: 13px;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      min-width: 0;
      max-width: 100%;
      color: $text-primary;

      .custom-name {
        color: $text-secondary;
        margin-left: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }

  .select-button {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: $text-secondary;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;

    &:hover {
      background-color: rgba($accent-blue, 0.8);
      color: white;
    }

    i {
      font-size: 12px;
    }
  }
}
