@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
* {
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
}

.header {
  width: 100%;
  height: 100vh;
  background: #e2e9f7;
}

.side-nav {
  width: 250px;
  height: 100%;
  background: #0d74f5;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 30px;
}

.logo {
  display: block;
  margin-bottom: 130px;
}

.logo-img {
  width: 150px;
}

.nav-links {
  list-style: none;
  position: relative;
}

.nav-links li {
  padding: 10px 0;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  display: flex;
  align-items: center;
}

.nav-links li a i {
  font-size: 22px;
  margin-right: 20px;
}

.active {
  background: #fff;
  width: 100%;
  height: 47px;
  position: absolute;
  left: 0;
  top: 2.5%;
  z-index: -1;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(255, 255, 255, 0.4);
  display: none;
  transition: top 0.5s;
}

.nav-links li:hover a {
  color: #0d74f5;
  transition: 0.3s;
}

.nav-links li:hover ~ .active {
  display: block;
}

.nav-links li:nth-child(1):hover ~ .active {
  top: 2.6%;
}
.nav-links li:nth-child(2):hover ~ .active {
  top: 19.2%;
}
.nav-links li:nth-child(3):hover ~ .active {
  top: 35.8%;
}
.nav-links li:nth-child(4):hover ~ .active {
  top: 52.4%;
}
.nav-links li:nth-child(5):hover ~ .active {
  top: 69%;
}
.nav-links li:nth-child(6):hover ~ .active {
  top: 85.6%;
}

.logo-icon {
  display: none;
  width: 45px;
}

@media only screen and (max-width: 600px) {
  .side-nav {
    width: 110px;
  }
  .logo-icon {
    display: block;
  }
  .logo-img {
    display: none;
  }
  .nav-links li a p{
    display: none;
  }

  .nav-links li a i{
    margin-right: 0;
  }
  .nav-links li a {
    justify-content: center;
  }
}
