/*================= header area css ===============*/

.navbar {
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 100%;
  left: 0;
  top: 0;
  z-index: var(--z-sticky);
  position: fixed;
  background-color: transparent;
  transition: all var(--transition-base);
  backdrop-filter: blur(0);

  &.navbar_fixed {
    @include glass-panel(rgba(255, 255, 255, 0.8), blur(20px));
    border-bottom: var(--glass-border);
    border-radius: 0;
    box-shadow: var(--glass-shadow);
  }
}

.menu {
  margin-left: 80px;

  >.nav-item {
    padding-bottom: 34px;
    padding-top: 34px;
    transition: all 0.3s linear;

    >.nav-link {
      font-size: 14px;
      font-weight: 400;
      color: #333333;
      padding: 0;
      position: relative;
      line-height: 20px;

      &:after {
        display: none;
      }

      &::before {
        content: "";
        width: 0;
        height: 1px;
        position: absolute;
        left: 0;

        bottom: 0;
        background: #ac083f;
        transition: width 0.2s linear;

        @media (max-width: 991px) {
          display: none;
        }
      }
    }

    &.submenu {
      .dropdown-menu {
        top: 100%;
        margin: 0;
        @include glass-panel(rgba(255, 255, 255, 0.9), blur(20px));
        border: var(--glass-border);
        left: -30px;
        min-width: max-content;
        padding: 20px 0;
        box-shadow: var(--glass-shadow);

        &:before {
          content: "";
          width: 12px;
          height: 12px;
          background: rgba(255, 255, 255, 0.9);
          position: absolute;
          top: -6px;
          transform: rotate(45deg);
          left: 40px;
          border-left: var(--glass-border);
          border-top: var(--glass-border);
          z-index: 1;
        }

        @media (min-width: 992px) {
          transform: translateY(20px);
          transition: all 0.3s ease-in;
          opacity: 0;
          visibility: hidden;
          display: block;
        }

        .nav-item {
          padding: 0 40px 0 30px;
          transition: all 0.3s linear;
          position: relative;

          &+.nav-item {
            margin-top: 15px;
          }

          .nav-link {
            padding: 0;
            white-space: nowrap;
            font: 400 14px/16px $main_font;
            color: #333333;
            transition: color 0.2s linear;
            position: relative;
            display: inline-block;

            &:after {
              display: none;
            }

            &:before {
              content: "";
              width: 0;
              height: 1px;
              position: absolute;
              left: 0;
              bottom: 0;
              background: #ac083f;
              transition: all 0.2s linear;
            }
          }

          &:hover,
          &:focus,
          &.active {
            >.nav-link {
              color: #ac083f;

              &:before {
                width: 100%;
              }
            }

            >i {
              color: #ac083f;
            }
          }

          >.dropdown-menu {
            transition: all 0.3s ease-in;

            &:before {
              display: none;
            }

            @media (min-width: 992px) {
              position: absolute;
              left: 100%;
              top: -25px;
              opacity: 0;
              display: block;
              visibility: hidden;
              transform: translateY(20px);
              transition: all 0.3s ease-in;
            }
          }
        }
      }
    }

    &.active {
      .nav-link {
        color: #ac083f;

        &:before {
          transform: scaleX(1);
          opacity: 1;
          background: #ac083f;
          width: 100%;
        }
      }
    }

    &:hover {
      .nav-link {
        &:before {
          transform: scaleX(1);
          opacity: 1;
          background: #ac083f;
          width: 100%;
        }
      }

      @media (min-width: 992px) {
        .dropdown-menu {
          opacity: 1;
          transform: translateY(0);
          visibility: visible;

          >.nav-item {
            &:hover {
              @media (min-width: 992px) {
                .dropdown-menu {
                  transform: scaleY(1);
                  opacity: 1;
                  visibility: visible;
                }
              }
            }
          }
        }
      }
    }

    &+.nav-item {
      margin-left: 40px;
    }

    &.mega_menu {
      .dropdown-menu {
        min-width: 540px;
        padding: 0;
        background: transparent;
        max-height: 309px;
        min-height: 309px;
        border: none;

        li {
          .col-lg-7 {
            padding-left: 0;
            margin-left: -5px;
          }

          >div {
            min-height: 309px;
          }
        }

        .nav-pills {
          padding: 30px 0;
          background: #fff;
          border-top-left-radius: 8px;
          border-bottom-left-radius: 8px;
          height: 100%;
          margin-right: -10px;
          border-top: 1px solid #ebebeb;
          border-bottom: 1px solid #ebebeb;
          border-right: 0;
          border-left: 1px solid #ebebeb;
        }

        .tabHeader {
          .nav-item {
            padding: 0 30px;

            &:after {
              content: "\35";
              position: absolute;
              right: 25px;
              top: 5px;
              font-family: "ElegantIcons", serif;
              display: block;
              color: var(--brand_color);
              transition: all 0.2s linear;
              opacity: 0;
            }

            .nav-link {
              font-size: 14px;
              color: #000;
              display: inline-block;
              border-radius: 0;

              &.active {
                background: transparent;
              }
            }

            &+.nav-item {
              margin-top: 8px;
            }

            &:hover,
            &.active {
              &:after {
                opacity: 1;
                right: 20px;
              }

              .nav-link {
                color: var(--brand_color);
              }

              &:nth-child(2):after {
                color: #b03532;
              }

              &:nth-child(3):after {
                color: #59a627;
              }

              &:nth-child(4):after {
                color: #da6f2b;
              }

              &:nth-child(5):after {
                color: #000;
              }

              &:nth-child(6):after {
                color: #00aa6a;
              }

              &:nth-child(2) .nav-link {
                color: #b03532;

                &::before {
                  background-color: #b03532;
                }
              }

              &:nth-child(3) .nav-link {
                color: #59a627;

                &::before {
                  background-color: #59a627;
                }
              }

              &:nth-child(4) .nav-link {
                color: #da6f2b;

                &::before {
                  background-color: #da6f2b;
                }
              }

              &:nth-child(5) .nav-link {
                color: #000;

                &::before {
                  background-color: #000;
                }
              }

              &:nth-child(6) .nav-link {
                color: #00aa6a;

                &::before {
                  background-color: #00aa6a;
                }
              }
            }
          }
        }

        .tabContent {
          height: 100%;

          .tab-pane {
            height: 100%;
            padding: 30px 10px 10px 25px;
            min-height: 309px;
            border-top-right-radius: 8px;
            border-bottom-right-radius: 8px;

            .tab_list {
              width: 50%;
              padding-bottom: 12px;

              &.w_100 {
                width: 100%;
              }

              li {
                margin-bottom: 12px;
                display: block;

                &:last-child {
                  margin-bottom: 0;
                }

                a {
                  font-size: 14px;
                  font-weight: 400;
                  color: #fff;
                  position: relative;
                  padding: 0;
                  overflow: visible;

                  &:before {
                    content: "";
                    width: 0;
                    height: 1px;
                    background: #fff;
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    transition: all 0.2s linear;
                  }

                  &:hover,
                  &.active {
                    &:before {
                      width: 100%;
                    }
                  }
                }
              }
            }

            .text {
              a {
                display: block;
                padding: 0;
              }
            }

            p {
              font-size: 14px;
              line-height: 30px;
              color: rgba(255, 255, 255, 0.5);
              margin-bottom: 0;
            }

            &:first-child {
              background: var(--brand_color);
            }

            &:nth-child(2) {
              background: #b03532;
            }

            &:nth-child(3) {
              background: #59a627;
            }

            &:nth-child(4) {
              background: #da6f2b;
            }

            &:nth-child(5) {
              background: #1d2746;
            }

            &:nth-child(6) {
              background: #00aa6a;
            }
          }
        }
      }
    }
  }

  .mobile_dropdown_icon {
    display: none;
  }
}

.right-nav {
  margin-left: 1rem;
  display: flex;
  align-items: center;

  a {
    font-weight: 500;
  }

  .nav_btn {
    font-size: 16px;
    font-weight: 500;
    padding: 9px 18px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s linear;
    color: #fff;
    background: $brand_color;
    display: inline-flex;
    align-items: center;

    img {
      padding-right: 7px;
    }

    &:hover {
      background: $brand_hover;
    }
  }

  .signup-btn {
    color: var(--black_900);
    padding-right: 16px;
    border-right: 1px solid var(--black_200);
    line-height: 14px;
  }
}

.mCSB_inside>.mCSB_container {
  margin-right: 0;
}

.navbar_fixed {
  position: fixed;
  left: 0;
  right: 0;
  background-color: #fff !important;
  transition: all 0.2s, top 0.4s linear;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.navbar-toggler {
  padding-left: 0;
  outline: none;

  &:focus {
    box-shadow: none;
  }
}

.hamburger {
  height: 100%;
  width: 100%;
  display: block;

  span {
    width: 0%;
    height: 2px;
    position: relative;
    top: 0;
    left: 0;
    margin: 4px 0;
    display: block;
    background: $black_800;
    border-radius: 3px;
    -webkit-transition: 0.2s ease-in-out;
    transition: 0.2s ease-in-out;

    &:nth-child(1) {
      transition-delay: 0s;
    }

    &:nth-child(2) {
      transition-delay: 0.125s;
    }

    &:nth-child(3) {
      transition-delay: 0.2s;
    }
  }
}

.menu_toggle {
  width: 22px;
  height: 22px;
  position: relative;
  cursor: pointer;
  display: block;

  .hamburger {
    position: absolute;
  }

  .hamburger-cross {
    position: absolute;
    height: 100%;
    width: 100%;
    transform: rotate(45deg);
    display: block;

    span {
      display: block;
      background: $black_800;
      border-radius: 3px;
      -webkit-transition: 0.2s ease-in-out;
      transition: 0.2s ease-in-out;

      &:nth-child(1) {
        height: 100%;
        width: 2px;
        position: absolute;
        top: 0;
        left: 10px;
        transition-delay: 0.3s;
      }

      &:nth-child(2) {
        width: 100%;
        height: 2px;
        position: absolute;
        left: 0;
        top: 10px;
        transition-delay: 0.4s;
      }
    }
  }
}

.collapsed {
  .menu_toggle {
    .hamburger {
      span {
        width: 100%;

        &:nth-child(1) {
          transition-delay: 0.3s;
        }

        &:nth-child(2) {
          transition-delay: 0.4s;
        }

        &:nth-child(3) {
          transition-delay: 0.5s;
        }
      }
    }

    .hamburger-cross {
      span {
        &:nth-child(1) {
          height: 0%;
          transition-delay: 0s;
        }

        &:nth-child(2) {
          width: 0;
          transition-delay: 0.2s;
        }
      }
    }
  }
}

.navbar-dashboard {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 23px 0;

  .searchbar {
    position: relative;
    flex: 1;
    max-width: 570px;
    margin: auto;

    .form-control {
      background-color: var(--black_50);
      border-radius: 40px;
      height: 44px;
      font-size: 18px;
      font-weight: 400;
      line-height: 40px;
      color: var(--black_700);
      border-color: transparent;
      box-shadow: none;
      padding-left: 48px;
      padding-right: 40px;

      &::placeholder {
        font-size: 18px;
        font-weight: 400;
        line-height: 40px;
        color: $black_400;
      }

      &:focus {
        background-color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(#e40f60, 0.2);
      }
    }

    .search-icon {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%) scaleX(-1);
      font-size: 18px;
      color: $black_200;
    }

    .filter-btn {
      position: absolute;
      right: 14px;
      top: 6px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background-color: var(--black_100);
      color: var(--black_500);
      line-height: 32px;
      text-align: center;
      border: none;
      outline: none;
      padding: 0;
      box-shadow: none;
      transition: all 0.3s linear;

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

      &:focus {
        box-shadow: 0 0 0 0.2rem rgba(#e40f60, 0.2);
      }
    }
  }

  .right-action {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 10px;

    .action-btn {
      height: 40px;
      width: 40px;
      border: none;
      border-radius: 50%;
      line-height: 36px;
      background-color: $black_50;
      text-align: center;
      box-shadow: none;
      transition: all 0.3s linear;

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

      &:focus {
        box-shadow: 0 0 0 0.2rem rgba(#e40f60, 0.2);
      }
    }

    .notification-btn {
      position: relative;
      z-index: 2;

      &.show+.dropdown-backdrop {
        opacity: 0.6;
        visibility: visible;
      }
    }

    .dropdown-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: var(--black_900);
      z-index: 1;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s linear;
    }

    .profile-btn {
      background-color: transparent;
      border: none;
      padding: 0;

      img {
        height: 40px;
        width: 40px;
        border-radius: 50%;
      }
    }
  }

  .dropdown-menu {
    width: 310px;
    padding: 24px;
    border-radius: 4px;
    background-color: #fff;
    border: none;
    left: inherit;
    right: 0;
    top: 72px;

    &::before {
      content: "";
      width: 12px;
      height: 12px;
      background: #fff;
      position: absolute;
      top: -6px;
      transform: rotate(45deg);
      right: 15px;
      border-left: 1px solid rgb(230, 238, 239);
      border-top: 1px solid rgb(230, 238, 239);
      border-top-left-radius: 4px;
      z-index: 1;
    }
  }

  .profile-dropdown {
    .drop-header {
      display: flex;
      align-items: center;
      padding-bottom: 12px;

      .profile-img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        margin-right: 8px;
      }

      h5 {
        font-size: 20px;
        color: #000;
        font-weight: 600;
        margin-bottom: 4px;
      }

      .userid {
        font-size: 10px;
        line-height: 14px;
        color: $black_500;
      }

      .edit {
        font-size: 10px;
        line-height: 14px;
        color: $brand_color;
        margin-left: 6px;
        font-weight: 600;
      }
    }

    .offerings {
      font-size: 12px;
      line-height: 16px;
      color: $black_700;
      font-weight: 600;
      margin-top: 6px;
      margin-bottom: 14px;
      text-align: center;
    }

    .theme-btn {
      text-align: center;
      width: 100%;
      border-radius: 4px;
      margin-bottom: 14px;
    }

    .nav {
      li {
        width: 100%;
        margin-bottom: 5px;

        &:last-child {
          margin-bottom: 0;
        }
      }

      .nav-link {
        font-size: 12px;
        font-weight: 600;
        line-height: 16px;
        color: $black_700;
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
        align-items: center;

        i {
          font-size: 15px;
          margin-left: auto;
        }

        &.active,
        &:hover {
          color: $brand_color;
        }
      }
    }

    .logout {
      font-size: 12px;
      line-height: 16px;
      color: $black_700;
      font-weight: 600;
      margin-top: 150px;
      display: inline-block;

      img {
        margin-right: 5px;
      }
    }
  }

  .notification-dropdown {
    padding: 24px 0 0 0;

    .drop-title {
      font-size: 20px;
      line-height: 32px;
      color: $black_900;
      font-weight: 600;
      margin-bottom: 10px;
      padding: 0 20px;
    }

    .notify-nav {
      padding: 0 20px;
      gap: 8px;
      border: none;
      margin-bottom: 10px;

      button {
        background-color: transparent;
        font-size: 12px;
        line-height: 16px;
        color: #242424;
        padding: 4px 8px;
        border: none;
        border-radius: 4px;
        transition: all 0.3s linear;

        &.active {
          background-color: #fef1f7;
          color: $brand_color;
        }
      }
    }

    .tab-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 24px;

      span {
        font-size: 12px;
        line-height: 16px;
        color: #000;
      }

      a {
        font-size: 12px;
        line-height: 16px;
        color: $brand_color;
      }
    }

    .notification-list {
      display: flex;
      flex-direction: column;
      padding: 10px 0;

      .single-notifi {
        display: flex;
        gap: 10px;
        padding: 10px 20px;
        background-color: transparent;

        &:hover {
          background-color: #f9f9f9;
        }

        &.unread-notifi {
          .notifi-time {
            font-weight: 600;
            color: $brand_color;
          }
        }

        .notifi-user {
          height: 40px;
          width: 40px;
          border-radius: 50%;
        }

        .notifi-text {
          font-size: 14px;
          line-height: 20px;
          color: $black_700;
          margin-bottom: 2px;

          .user {
            font-size: 14px;
            color: $black_800;
            font-weight: 600;
          }
        }

        .notifi-time {
          font-size: 10px;
          color: $black_500;
          font-weight: 400;
          line-height: 14px;
        }

        .follow-action {
          display: flex;
          gap: 8px;
          margin-top: 6px;
          flex-wrap: wrap;

          .theme-btn {
            font-size: 12px;
            line-height: 16px;
            padding: 4px 12px;
            font-weight: 400;
          }

          .remove-btn {
            background-color: $black_100;
            color: #242424;
          }
        }
      }
    }
  }

  .navbar-toggler {
    display: block;
    padding: 0;
  }

  .menu_toggle {
    width: 40px;
    height: 40px;
    background-color: rgba(54, 53, 53, 0.11);
    border-radius: 50%;
    position: relative;

    &:hover {
      background-color: rgba(54, 53, 53, 0.2);
    }

    .hamburger {
      position: absolute;
      top: 9px;
      bottom: 10px;
      left: 10px;
      right: 10px;
      width: auto;
      height: auto;

      span {
        width: 100%;
      }
    }
  }
}

.side_menu {
  width: 0px;
  height: 100vh;
  max-height: 100vh;
  top: 0;
  position: fixed;
  transform: translate3d(300px, 0, 0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1040;
  background: #fff;
  padding: 20px 0;
  overflow-x: hidden;
  left: auto;
  right: 0;

  .mobile_menu_header {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 25px;
    justify-content: space-between;
    padding-top: 5px;

    .close_nav {
      font-size: 24px;
      color: #1d2746;
      cursor: pointer;
      padding: 0;
      transition: all 0.3s ease-in-out;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 40px;
      width: 40px;
      background-color: var(--black_50);
      border-radius: 50%;
      position: relative;
      z-index: 5;

      &:hover {
        background-color: var(--black_100);
        color: var(--brand_color);
      }

      &:active {
        transform: scale(0.9);
      }

      i {
        pointer-events: none;

        &+i {
          display: none;
        }
      }
    }
  }

  .doc_left_sidebarlist {
    border: 0;

    &:before {
      display: none;
    }
  }

  .nav-sidebar {
    .nav-item {
      padding-right: 0;
    }
  }

  .mobile_nav_wrapper {
    display: flex;
    transform: translate3d(300px, 0, 0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    .theme-btn {
      display: none;
    }
  }

  .mobile_nav_top,
  .mobile_nav_bottom {
    flex-shrink: 0;
    display: block;
    width: 350px;
    padding: 0 25px;
  }

  .mobile_nav_top {
    padding-top: 30px;

    .menu {
      padding-left: 0;
      padding-right: 0;

      .nav-item {
        &.submenu.active {
          .dropdown-menu {
            display: block;
          }
        }
      }
    }
  }

  &.menu-opened {
    width: 350px;

    &.side_menu {
      transform: translate3d(0, 0, 0);
    }

    .mobile_nav_wrapper {
      transform: translate3d(0, 0, 0);
    }

    .close_nav {
      i {
        display: block;
      }
    }
  }

  .menu>.nav-item {
    padding: 0;
    border-bottom: 1px solid var(--black_50);

    .nav-link {
      padding: 15px 0;

      &::before {
        display: none;
      }
    }
  }

  .menu>.nav-item+.nav-item {
    margin-left: 0;
  }

  .menu>.nav-item.submenu .dropdown-menu::before {
    display: none;
  }

  .menu>.nav-item.submenu .dropdown-menu .nav-item {
    padding: 0 40px 0 15px;
  }

  .navbar-toggler {
    box-shadow: none;
    padding: 0;
  }

  .menu>.nav-item.submenu .dropdown-menu .nav-item+.nav-item {
    margin-top: 10px;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .menu {
    padding: 5px 0px;
    margin-left: 0;
  }

  .menu .nav-item .mobile_dropdown_icon {
    position: absolute;
    right: 0;
    top: 0;
    color: #6b707f;
    line-height: 50px;
    font-size: 20px;
    display: inline-block;
    opacity: 0.8;
    cursor: pointer;
  }

  .menu>.nav-item.submenu .dropdown-menu {
    box-shadow: none;
    margin-top: 0;
    max-height: none !important;
    padding: 0 0 15px 0;
    opacity: 1;
    visibility: visible;
    transform: translate(0) !important;
    display: none;
    position: relative !important;
    left: 0 !important;
    transition: none;
    min-width: 100%;
    border: 0;
  }

  .menu>.nav-item.active .mobile_dropdown_icon {
    color: #ac083f;
  }

  .right-nav {
    margin-left: 0;
  }

  .menu>.nav-item.submenu.mega_menu .dropdown-menu .nav-pills,
  .menu>.nav-item.submenu.mega_menu .dropdown-menu .tabContent .tab-pane .tab_list {
    display: block !important;
    padding-bottom: 6px;
  }

  .menu>.nav-item.submenu.mega_menu .dropdown-menu .nav-pills {
    background: #f4f8ff;
    margin-right: 0;
    padding-top: 10px;
  }

  .menu>.nav-item.submenu.mega_menu .dropdown-menu .tabHeader .nav-item {
    padding: 0 16px;
  }

  .menu>.nav-item.mega_menu .dropdown-menu .tabContent .tab-pane .tab_list li {
    margin-bottom: 8px;
  }

  .menu>.nav-item.mega_menu .dropdown-menu .tabContent .tab-pane {
    min-height: auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 10px 10px 10px 17px;
  }

  .menu>.nav-item.mega_menu .dropdown-menu .nav-pills {
    border-radius: 0;
  }

  .menu>.nav-item.mega_menu .dropdown-menu li .col-lg-7 {
    padding-left: 12px;
    margin-left: 0;
  }
}

.navbar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--black_900);
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s linear;

  &.show {
    opacity: 0.6;
    visibility: visible;
  }
}