@import "variable";

html {
  scroll-behavior: smooth;
}

// module page all module top header design
.dnxte_dashb_page_toper_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;

  .dnxte_dashb_title_left {
    h3 {
      font-size: 16px;
      color: $dash-main-title;
      line-height: 18px;
      font-weight: 500;
      margin: 0 0 8px;
    }

    p {
      font-size: 14px;
      line-height: 18px;
      color: $dash-pra;
      margin: 0 0 5px;
    }
  }

  .dnxte_dashb_button_right {
    .dnxte_dashb_button_wrap {
      display: flex;
      border: 1px solid #eff1f5;
      padding: 4px;
      border-radius: 4px;

      a {
        font-size: 12px;
        font-weight: 600;
        line-height: 14px;
        color: $dash-main-title;
        text-transform: capitalize;
        text-decoration: none;
        background: #EFF1F5;
        border-radius: 2px;
        transition: all 0.5s;
        padding: 10px 22px;
        margin-right: 4px;

        &:hover,
        &.active {
          background: $dash-active-two !important;
          color: $dash-white !important;
        }

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

        &:last-child {
          margin-right: 0;
          background: $dash-white;
          color: $dash-main-title;

          &:hover {
            background: $dash-active-two;
            color: $dash-white;
          }
        }
      }
    }
  }
}

.dnxte_dashb_primary_nav_wrap {
  background: $dash-white;
  margin-bottom: 40px;
}

.dnxte_dashb_primary_nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

// Primary Navbar
.dnxte_dashb_menu_leftside {
  display: flex;
  align-items: center;

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


    img {}
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0 45px;
    display: flex;

    li {
      margin-right: 25px;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      transition:
        border-bottom 0.3s ease-in-out,
        color 0.3s ease-in-out;
      color: #555;
      transition: all 0.5s;
      margin-bottom: 0;

      a {
        font-size: 14px;
        line-height: 120%;
        font-weight: 500;
        padding: 19px 5px;
        display: flex;
        align-items: center;
        text-decoration: none;
        color: $dash-pra;
        transition: all 0.5s;

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

        svg {
          margin-right: 8px;
          /* width: 18px;
          height: 18px; */
        }
      }

      &:hover {
        a {
          color: $dash-active;
          font-weight: 500;

          svg {
            color: $dash-active;

            path {
              fill: $dash-active;
            }
          }
        }
      }

      &.active {
        transition: all 0.5s ease-in-out;
        border-bottom: 2px solid $dash-active;

        a {
          color: $dash-active;

          svg>path {
            fill: $dash-active;
          }
        }
      }
    }
  }
}

// primary menu right side css
.dnxte_dashb_menu_rightside {
  display: flex;
  align-items: center;

  .dnxte_dashb_vesion {
    font-size: 12px;
    line-height: 100%;
    font-weight: 400;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #7d89b0;
    position: relative;
    margin-right: 35px;
    text-transform: capitalize;

    &::before {
      position: absolute;
      content: "";
      right: -17px;
      height: 100%;
      width: 1px;
      background: #eff1f5;
      top: 50%;
      transform: translateY(-50%);
    }

    span {
      border: 1px solid #eff1f5;
      border-radius: 4px;
      font-weight: 500;
      color: $dash-pra;
      padding: 5px 6px;
      margin-left: 4px;
    }
  }

  .dnxte_dashb_question_wrap {
    display: flex;

    .dnxte_dashb_drop {
      position: relative;
      z-index: 2;

      svg {
        font-size: 20px;
      }

      .drop_down_wrap {
        position: absolute;
        right: 0;
        top: 100%;
        width: 270px;
        margin: 0;
        background: $dash-white;
        height: max-content;
        z-index: 0;
        padding: 16px;
        border-radius: 8px;
        display: none;
        // transform: translateY(15px);
        box-shadow: 3px 10px 20px 0 rgba(0, 0, 0, 0.06);

        a {
          text-decoration: none;
          color: $dash-pra;

          &:focus {
            box-shadow: none;
            outline: none;
            color: $dash-pra;
          }
        }

        .single_item {
          display: flex;
          align-items: flex-start;
          gap: 12px;
          padding: 12px;
          background: $dash-white;
          border-radius: 4px;
          cursor: pointer;
          transition: all 0.5s;

          .drop_content {
            h5 {
              font-size: 14px;
              font-weight: 600;
              line-height: 24px;
              color: $dash-main-title;
              margin: 0;
            }

            p {
              font-size: 12px;
              font-weight: 400;
              line-height: 14px;
              color: #7d89b0;
              margin: 0;
            }
          }

          &:hover {
            background: #eff1f5;
          }
        }
      }

      &:hover {
        .drop_down_wrap {
          display: block;
          animation: drop-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
        }
      }
    }
  }

  .dnxte_dashb_notification {
    margin-left: 18px;

    svg {
      color: #5d6b98;
      font-size: 20px;
      display: inline-block;
      padding: 10px;
      border-radius: 50px;
      cursor: pointer;
      background: transparent;
      transition: all 0.5s;

      &:hover {
        background: #eff1f5;
      }
    }
  }
}

// module category nav filter css
.filter_nav_left {
  ul {
    li {
      display: inline-flex;

      a {
        font-size: 12px;
        line-height: 16px;
        font-weight: 500;
        color: $dash-pra;
        text-decoration: none;
        padding: 9px 10px;
        border: 1px solid #dcdfea;
        text-decoration: none;
        margin-right: 10px;
        border-radius: 4px;
        transition: all 0.5s;

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

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

// @keyframes drop-top {
//     0% {
//         -webkit-transform: translateY(0);
//         transform: translateY(0);
//     }

//     100% {
//         -webkit-transform: translateY(10px);
//         transform: translateY(10px);
//     }
// }

// mobile menu responsive
.mobile-sidebar-menu {
  position: fixed;
  right: 0px;
  top: 46px;
  width: 230px;
  height: 100%;
  background: white;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;

  .mobile-sidebar-menu-header {
    button {
      border: none;
      margin-bottom: 20px;

      svg {
        font-size: 20px;
        color: $dash-main-title;
      }
    }
  }

  ul {
    margin: 0;

    li {
      a {
        // display: block;
        display: flex;
        align-items: center;
        font-size: 16px;
        line-height: 1;
        color: $dash-main-title;
        text-decoration: none;
        padding: 10px;
        border-bottom: 1px solid #30374f21;

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

        svg {
          margin-right: 8px;
          // width: 16px;
          // height: 16px;
        }
      }
    }
  }
}

.mobile-sidebar-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}