@import 'variables';

.nav-bar {
  align-items: center;
  background: $nav-bar-color;
  display: flex;
  flex-direction: row;
  height: $nav-bar-height;
  padding: 0 32px 1px;

  .nav-bar-left {
    flex-basis: 234px;

    span.title-3 {
      color: $white;
      line-height: $navbar-item-line-height;
    }
  }

  .nav-bar-right {
    display: flex;
    margin-left: auto;

    a {
      color: $white;
      display: inline-block;
      height: 100%;
      line-height: $navbar-item-line-height;
      padding: 0 8px;

      &.border-bottom-white:hover,
      &.border-bottom-white.active {
        border-bottom: 4px solid $white;
      }
    }

    .nav-bar-avatar {
      background-color: $nav-bar-color;
      border-radius: 50%;
      border-style: none;
      height: 40px;
      margin-top: -4px;
      padding: 0;
      width: 40px;

      &:not(.avatar-dropdown) {
        .sb-avatar {
          margin: 4px 0 0 4px;
        }
      }

      &:hover {
        background-color: $white;
      }
    }
  }

  .nav-bar-left,
  .nav-bar-right {
    height: 100%;
    padding-top: 12px;

    a {
      text-decoration: none;
    }
  }

  .nav-bar-right > *:not(:last-child) {
    margin-right: 12px;
  }

  .search-bar {
    flex-grow: 1;
    margin: auto 16px auto auto;
  }

  .logo-icon {
    margin-right: 16px;
    max-height: 32px;
    max-width: 144px;
  }

  .profile-menu {
    $profile-menu-width: 200px;

    width: $profile-menu-width;

    .profile-menu-header {
      padding: 16px 16px 0;
    }

    li {
      a {
        color: $text-primary;
        padding: 16px;
        width: 100%;
      }
    }
  }
}
