.search-bar {
  display: flex;
  align-items: center;

  &__container {
    height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 250px;

    &:focus-within {
      width: 300px;
      background: rgba(255, 255, 255, 0.02);
      border-color: rgba(255, 255, 255, 0.2);
    }
  }

  &__icon {
    color: rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
    transition: color 0.2s ease;
  }

  &__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: inherit;
    min-width: 0;

    &::placeholder {
      color: rgba(255, 255, 255, 0.6);
    }

    &:focus ~ .search-bar__icon {
      color: rgba(255, 255, 255, 0.7);
    }
  }

  &__clear {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s ease;

    &:hover {
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.8);
    }

    &:active {
      background: rgba(255, 255, 255, 0.15);
    }
  }
}
