@import '../../styles/app';

.app-header.navbar {
  z-index: 100;
  padding: 0 1.85rem;

  @include media-breakpoint-down(md) {
    padding: 0 10px;
  }

  .dropdown-menu {
    color: $text-muted;
    margin-top: 12.5px;
    background: $default-bg;
    border: none;
  }

  .dropdown-item {
    color: $text-color;

    &:active,
    &:focus,
    &:hover {
      background-color: $addition-bg;
      color: $text-color;
      outline: none;
    }
  }

  .dropdown-menu-messages {
    .dropdown-item {
      display: flex;
      align-items: center;
    }
  }

  .dropdown-menu-settings {
    .dropdown-divider {
      border-color: $dark;
    }

    .sidebar-controls-dropdown {
      min-width: 180px;

      .btn-group {
        .btn {
          flex: 1;
          padding: 8px 16px;
          font-weight: 500;
          border: none;

          &.active-control {
            background-color: $primary;
            color: #fff;
          }

          &.inactive-control {
            background-color: rgba($primary, 0.6);
            color: #fff;

            &:hover {
              background-color: rgba($primary, 0.8);
            }
          }
        }
      }
    }
  }

  .input-group-transparent {
    .input-group-text {
      padding-left: 1rem;
      padding-right: 0.75rem;
      color: $text-muted;
      font-size: 0.95rem;
      border-top-left-radius: $border-radius-lg;
      border-bottom-left-radius: $border-radius-lg;
    }

    .form-control {
      padding-left: 0;
    }
  }

  .divider {
    display: block;
    width: 1px;
    margin: 0 15px;
    background: linear-gradient(rgba($dark, 0), rgba($text-color, 0.5), rgba($dark, 0));
  }

  .header-alert {
    background: $text-transparent;
    border: none;
    font-size: $font-size-base;
    line-height: 1.4;
    margin-bottom: 0;
    padding: 10px 18px;
    text-shadow: none;
    border-radius: 20px;
    color: $text-color;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;

    .header-alert-close {
      background: transparent;
      border: none;
      color: $blue;
      font-size: 1.25rem;
      font-weight: bold;
      padding: 0;
      margin-left: 12px;
      cursor: pointer;
      line-height: 1;

      &:hover {
        opacity: 0.8;
      }
    }

    @media (max-width: breakpoint-max('lg')) {
      display: none;
    }
  }

  .bell-icon-wrapper {
    position: relative;
    display: inline-block;

    .bell-notification-dot {
      position: absolute;
      top: -2px;
      right: 0;
      width: 8px;
      height: 8px;
      background-color: $green;
      border-radius: 50%;
    }
  }

  // Header icons
  .nav-link > i,
  .nav-link > .bell-icon-wrapper > i {
    font-size: 1.4rem;
  }

  .navbar-nav-mobile {
    flex-direction: row;

    .nav-item {
      display: flex;
      align-items: center;

      &.show {
        display: flex !important;
      }

      .nav-link {
        display: flex;
        align-items: center;
        padding: 0.5rem 0.6rem;
        color: $text-color;

        &:hover {
          color: $header-color;
        }
      }
    }

    .navbar-text {
      display: flex;
      align-items: center;
    }

    .dropdown-menu {
      position: absolute;

      @media (max-width: breakpoint-max('xs')) {
        position: fixed;
        top: $navbar-height;
        right: 1rem;
        margin-top: 0;
      }
    }
  }
}
