header {

  .navbar-collapse {
    @media (max-width: 991px) {
      position: absolute;
      background: whitesmoke;
      left: 0;
      right: 0;
      top: 72px;
      padding: 0;
    }
    @media (max-width: 575px) {
      z-index: auto;
    }
  }

  .navbar {
    padding: 10px 0 15px;
    background: #fff;
    border-radius: 15px;
    margin: 20px 40px 0 0;
    @media (max-width: 991px) {
      padding: 20px 0;
      margin: 0;
    }

    .text-cont {
      h2 {
        font-size: 20px;
        font-weight: 600;
        line-height: 32px;
        margin-bottom: 0;
        color: #282828;

        a {
          svg {
            margin-right: 10px;
          }
        }
      }
    }
  }

  .navbar-toggler-icon {
    @media (max-width: 991px) {
      display: inline;
    }
  }


  .navbar-nav {
    align-items: center;
    @media (max-width: 991px) {
      height: 100vh;
      align-items: start;
      z-index: 99;
      position: relative;
      background: #fff;
      padding: 10px;
    }

    li.nav-links {
      @media (max-width: 991px) {
        margin-bottom: 15px;
      }

      &:nth-child(1) {
        width: 660px;
        margin-right: 10px;
        position: relative;
        border-right: 1px solid #E0E0E0;
        padding-right: 15px;
        @media (max-width: 1499px) {
          width: 530px;
        }
        @media (max-width: 1366px) {
          width: 550px;
        }
        @media (max-width: 1299px) {
          width: 370px;
        }
        @media (max-width: 1199px) {
          width: 200px;
        }
        @media (max-width: 991px) {
          width: 100%;
          padding: 0;
          border: 0;
        }

        .input-group {
          border: 1.12px solid #F0F0F0;
          border-radius: 56px;
          padding: 15px 30px;

          .input-group-text {
            background: transparent;
            padding: 0 15px 0 0;
            border: 0;
          }

          .form-control {
            border: 0;
            border-radius: 0;
            background: transparent;
            padding: 0;

            &::placeholder {
              font-size: 11px;
              font-weight: 400;
              line-height: 12px;
              color: #565656;
            }

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

        .search-sugestion {
          border: 1px solid #EBEBEB;
          border-radius: 12px;
          box-shadow: 11px 18px 37px 0 #00000026;
          background: #fff;
          padding: 20px 25px;
          position: absolute;
          right: 0;
          left: 0;
          margin-top: 15px;

          .recent-searches {
            display: flex;
            justify-content: space-between;
            margin-bottom: 35px;

            .left {
              h3 {
                font-size: 14px;
                font-weight: 600;
                line-height: 16px;
                letter-spacing: -0.03em;
                color: #303030;
              }
            }

            .right {
              a {
                text-decoration: none;
                font-size: 14px;
                font-weight: 600;
                line-height: 16px;
                letter-spacing: -0.03em;
                color: #303030;
              }
            }
          }

          ul {
            list-style: none;
            padding: 0;
            margin: 0;

            li {
              display: flex;
              align-items: center;
              justify-content: space-between;
              font-size: 14px;
              font-weight: 600;
              line-height: 16px;
              color: #838383;
              margin: 0 0 15px;
              width: auto;

              &:nth-last-child(1) {
                margin-bottom: 0;
              }

              a {
                background: transparent;
                padding: 0 !important;
              }
            }
          }
        }
      }

      &:nth-child(2) {
        margin-right: 12px;
      }

      .profile-box {
        margin-left: 15px;
        @media (max-width: 991px) {
          margin-left: 0;
        }

        .dropdown-toggle {
          padding: 0;
          font-size: 14px;
          font-weight: 600;
          line-height: 16px;
          color: #060B16;

          img {
            margin-right: 5px;
          }

          &:after {
            display: none;
          }

          &:focus {
            box-shadow: none;
          }

          svg {
            margin-left: 5px;
          }
        }

        .dropdown-menu {
          left: 20px;
          width: 150px;
          background: #fff;
          border-radius: 16px;
          padding: 15px 20px;
          margin-top: 12px;
          border: 1px solid #F1F5F9;

          li {
            margin-bottom: 10px;

            .dropdown-item {
              font-size: 12px;
              font-weight: 400;
              line-height: 19px;
              letter-spacing: 0.20000000298023224px;
              color: #64748B;
              padding: 0;

              &:hover {
                background: transparent;
              }
            }

            &:nth-last-child(1) {
              margin-bottom: 0;

              .dropdown-item {
                color: #ED4B3B;
              }
            }

            &:nth-child(3) {
              .dropdown-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding-right: 10px;

                .form-check-input {
                  padding: 10px 18px;

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

                .form-check-input:checked {
                  background-color: #00A1FF;
                  border-color: #00A1FF;
                }
              }
            }
          }

        }
      }

      .notification-box {
        margin: 0;
        position: relative;
        border-right: 1px solid #E0E0E0;
        padding-right: 15px;
        @media (max-width: 991px) {
          border: 0;
          padding-right: 0;
        }

        &:after {
          content: '';
          width: 10px;
          height: 10px;
          background: #F65555;
          border-radius: 100%;
          position: absolute;
          top: 4px;
          right: 16px;
          @media (max-width: 991px) {
            right: 3px;
          }
        }

        .dropdown-toggle {
          padding: 0;

          &:focus {
            box-shadow: none;
          }

          &:after {
            display: none;
          }

          svg {
            margin-left: 0;
          }
        }

        // dropdown css
        .dropdown-menu {
          min-width: 400px;
          padding: 20px;
          top: 80px;
          box-shadow: 0 0 60px 0 #0000001F;
          border-radius: 16px;
          border: none;
          left: -180px;
          @media(max-width: 425px) {
            min-width: 300px;
          }
          @media(max-width: 375px) {
            min-width: 270px;
          }

          &::before {
            content: "";
            width: 30px;
            height: 30px;
            background: #fff;
            position: absolute;
            top: -15px;
            right: 0;
            transform: rotate(45deg);
            left: 0;
            margin: auto;
            @media(max-width: 991px) {
              display: none;
            }
          }

          .dropdown-title {
            font-size: 18px;
            font-weight: 600;
            line-height: 24px;
            text-align: center;
            color: #181A20;
            margin: 0;
          }

          .backBtn {
            display: none;
            @media(max-width: 767px) {
              display: block;
              width: 20px;
              height: 20px;
              position: absolute;
              top: 15px;
            }
          }

          .notify-lists {
            border-top: 1px solid #E2E8F0;
            margin: 15px 0 0;
            padding: 15px 0;

            .all-notifications {
              a {
                font-size: 14px;
                font-weight: 600;
                line-height: 22px;
                letter-spacing: 0.20000000298023224px;
                color: #2563EB;
                background: #EFF6FF;
                border-radius: 23px;
                text-decoration: none;
                padding: 8px 17px;
              }
            }

            .unread {
              a {
                font-size: 14px;
                font-weight: 500;
                line-height: 22px;
                letter-spacing: 0.20000000298023224px;
                color: #94A3B8;
                background: #F1F5F9;
                border-radius: 23px;
                text-decoration: none;
                padding: 8px 17px;
              }

            }
          }

          ul {
            list-style-type: none;
            padding: 0;

            li {
              @media(max-width: 991px) {
                margin-bottom: 0;
              }
            }
          }

          .today {
            font-family: "Gilroy";
            font-size: 12px;
            font-weight: 600;
            line-height: 19.2px;
            letter-spacing: 1px;
            color: #94A3B8;
            margin-block: 8px;
          }

          .chats {
            height: 500px;
            overflow-y: scroll;

            .message-wrapper {
              border-radius: 12px;

              .chat-message {
                h3 {
                  a {
                    display: inline-block;
                    font-size: 14px !important;
                    font-weight: 600;
                    line-height: 22.4px;
                    letter-spacing: 0.20px;
                    color: #282828;
                    text-decoration: none;
                    background: none;
                    padding-left: 0 !important;

                  }
                }

                h4 {
                  font-size: 12px;
                  font-weight: 500;
                  line-height: 19.2px;
                  color: #94A3B8;
                }
              }
            }

            .unread {
              background-color: #F6F8FB;
              border: 1px solid #F8FAFC;
              padding: 18px 16px;
            }

            .read {
              padding: 18px 16px;
            }

            .time {
              font-size: 10px;
              font-weight: 500;
              line-height: 16px;
              color: #94A3B8;
            }
          }

          // Scrollbar styles
          .chats::-webkit-scrollbar {
            width: 8px; /* Adjust size as needed */
          }

          .chats::-webkit-scrollbar-track {
            background: #ffffff; /* Background color */
            border-radius: 5px;
          }

          .chats::-webkit-scrollbar-thumb {
            background: #e2e8f0; /* Thumb color */
            border-radius: 5px;
          }

        }
      }

      .chat-icon {
        position: relative;
        margin: 0 10px;
        @media (max-width: 991px) {
          margin: 0;
        }

        &:after {
          content: '';
          width: 10px;
          height: 10px;
          background: #F65555;
          border-radius: 100%;
          position: absolute;
          top: -10px;
          right: 3px;
        }
      }
    }
    li.nav-item{
      @media (max-width: 991px) {
        margin: 0 0 15px;
      }
    }
  }

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


