.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

.leap-tabs,
.nav-tabs:not(.nav-tabs-inverted) {
  background-color: $nav-tabs-bg;
}
.leap-tabs-inverted,
.nav-tabs.nav-tabs-inverted {
  background-color: theme-color('primary-darker');
}

.nav-tabs {
  &:not(.nav-tabs-inverted) {
    @if $is-sirius {
      border-bottom: 0.0625rem solid $border-color;
    }

    .nav-link {
      background-color: transparent;
      color: $body-color;
      &::after {
        content: '';
        position: absolute;
        height: 0.125rem;
        width: 100%;
        left: 0;
        bottom: -1px;
        transform: scaleX(0);
        z-index: 10;
      
        @if $is-sirius {
          transition: all .25s ease-out;
        }
      
      
        @include mobile-device-only {
          &::after {
            height: 0.25rem;
            bottom: -0.125rem;
          }
        }
      
      }
      &:hover {
        color: theme-color('primary');
        background-color: $nav-tabs-link-hover-bg;
      
        &::after {
          background: $nav-tabs-link-hover-border;
          transform: scaleX(1);
        }
      }
      
      &:not(.active):hover {
        background-color: $nav-tabs-link-hover-bg;
      }
      
      &.active {
        color: $nav-tabs-link-active-color;
        z-index: 2;
      
        &::after {
          background: $nav-tabs-link-active-border;
          transform: scaleX(1);
        }
      }
    }
  }

  &.nav-tabs-inverted {
    color: $white;

    .nav-link {
      background-color: transparent;
      color: $white;
      &:hover {
        opacity: 1;
      }
      &:not(.active) {
        opacity: 0.8;
        &:hover {
          opacity: 1;
          background-color: darken(theme-color('primary-darker'), 5%);
        }
      }

      &.active {
        background-color: rgba(238, 238, 238, 0.25);
      }

      > span {
        white-space: nowrap;
      }
    }
  }

  .nav-link {
    // // IE Fix
    // display: inline-block;
    display: flex;
    align-items: center;
    padding: $nav-tabs-link-padding-x $nav-tabs-link-padding-y;
    font-weight: $nav-tabs-link-font-weight;
    font-size: $nav-tabs-link-font-size;
    border-radius: 0;
    position: relative;
    min-height: $nav-tabs-link-min-height;
    max-width: $nav-tabs-link-max-width;
    min-width: $nav-tabs-link-min-width;
    z-index: 1;

    @if $nav-tabs-link-is-uppercase {
      text-transform: uppercase;
    }
    
    @if not $is-sirius {
      &, &:hover {
        cursor: default;
      }
    }

    > span {
      letter-spacing: $nav-tabs-link-letter-spacing;
    }
  }
}

.nav-tabs-icon {
  .nav-link {
    gap: 0.5rem;
  }
}

.nav-tabs.nav-tabs-stacked {
  flex-direction: column;
  .nav-link {
    padding: $nav-tabs-stacked-padding;

    &.segment-button {
      padding: $nav-tabs-stacked-padding;
    }
  }

  @media screen and (max-width: 320px) {
    &.nav-tabs-icon {
      .segment-button-text {
        display: none;
        position: absolute;
        left: 100%;
        top: 0;
        bottom: 0;
        align-items: center;
        padding: 0.75rem;
      }
    
      .segment-button {
        padding: 0.75rem;
        &:hover .segment-button-text {
          display: flex;
          background-color: darken(theme-color('primary-darker'), 5%);
        }

        &.active:hover .segment-button-text {
          background-color: theme-color('primary-darker');
          &::after {
            content: '';
            position: absolute;
            background-color: rgba(238, 238, 238, 0.25);
            z-index: 0;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
          }
        }
      }

    }
  }
}

.navbar-dark {
  .nav-tabs {
    .nav-link {
      color: $navbar-dark-color;
      &.active {
        background-color: $navbar-dark-active-bg;
        color: $navbar-dark-active-color;
      }
      &:hover {
        background-color: $navbar-dark-hover-bg;
      }
      &:not(.active):hover {
        color: $navbar-dark-hover-color;
      }
    }
  }
}

.navbar-light {
  .nav-tabs {
    .nav-link:not(.active) {
      color: $body-color;

      &:hover {
        background-color: $navbar-light-hover-bg;
      }
    }
  }
}
// leap-tabs-menu .toolbar {
//   // position: -webkit-sticky;
//   position: fixed;
//   top: 0;
//   display: block;
//   z-index: 1030;
// }
@include mobile-device-only {
  leap-tabs-menu .toolbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1500;

    display: block !important;
    white-space: nowrap;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    background-color: white;
  }
  .nav-tabs {
    display: flex !important;
    flex-wrap: nowrap;
    width: 100%;

    .nav-link {
      display: inline-block;

      &:not(.activated) {
        position: relative;
        margin-bottom: -0.0625rem;
        border-bottom: 1px solid $border-color;
      }

      > span {
        display: block;
      }
    }
  } 
}