.navigation-bar-item {
  padding-left: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;

  .button {
    border: 0;
    border-top: 1px solid var(--secondary-color);
    border-radius: 0;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 400;
    height: 44px;
    padding: 0;
    text-align: left;
    width: 100%;

    &:active {
      background: none;
    }
  }

  &:hover:not(.is-selected) {
    background: var(--secondary-highlight-color);
  }

  &.is-selected {
    background-color: var(--highlight-color);

    button {
      border-top: none;

      svg[class^='icon-'] {
        fill: var(--accent-color);
      }
    }
  }

  .navigation-bar-item__icon {
    color: var(--foreground-color);
    display: inline-block;
    margin-right: 18px;
    vertical-align: middle;

    svg {
      vertical-align: middle;
      position: relative;
      top: -0.2em;
    }
  }
}

/* this is the last child (Settings) and prevents a double border on the bottom */
.navigation-bar-item:first-child .button {
  border-top: none !important;
}

.navigation-bar-item.is-selected + .navigation-bar-item .button {
  border-top: none;
}
