/* Google Font Link */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.mysidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 78px;
  background: #0d0a2f;
  padding: 6px 14px;
  z-index: 99;
  transition: all 0.5s ease;
}
.mysidebar.open {
  width: 270px;
}
.mysidebar .logo-details {
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}
.mysidebar .logo-details .icon {
  opacity: 0;
  transition: all 0.5s ease;
}
.mysidebar .logo-details .logo_name {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.5s ease;
}
.mysidebar.open .logo-details .icon,
.mysidebar.open .logo-details .logo_name {
  opacity: 1;
}
.mysidebar .logo-details #btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 22px;
  transition: all 0.4s ease;
  font-size: 23px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease;
}
.mysidebar.open .logo-details #btn {
  text-align: right;
}
.mysidebar i {
  color: #fff;
  height: 60px;
  min-width: 50px;
  font-size: 28px;
  text-align: center;
  line-height: 60px;
}
.mysidebar .nav-list {
  margin-top: 20px;
  height: 100%;
}
.mysidebar li {
  position: relative;
  margin: 8px 0;
  list-style: none;
}
.mysidebar li .tooltip {
  position: absolute;
  top: -20px;
  left: calc(100% + 15px);
  z-index: 3;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: 0s;
}
.mysidebar li:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
  top: 50%;
  transform: translateY(-50%);
}
.mysidebar.open li .tooltip {
  display: none;
}
.mysidebar input {
  font-size: 15px;
  color: #fff;
  font-weight: 400;
  outline: none;
  height: 50px;
  width: 100%;
  width: 50px;
  border: none;
  border-radius: 12px;
  transition: all 0.5s ease;
  background: #1c1846;
}
.mysidebar.open input {
  padding: 0 10px 0 60px;
  width: 100%;
}
.mysidebar .bx-search {
  position: absolute;

  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 22px;
  background: #221c64;

  color: #fff;
}
.mysidebar.open .bx-search:hover {
  background: #ffffff;
  color: rgb(2, 2, 2);
}
.mysidebar .bx-search:hover {
  background: #fff;
  color: #0d0a2f;
}
.mysidebar li a {
  display: flex;
  height: 100%;
  width: 100%;
  border-radius: 12px;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s ease;
  background: #0d0a2f;
}
.mysidebar li a:hover {
  background: #fff;
}
.mysidebar li a .links_name {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
}
.mysidebar.open li a .links_name {
  opacity: 1;
  pointer-events: auto;
}
.mysidebar li a:hover .links_name,
.mysidebar li a:hover i {
  transition: all 0.5s ease;
  color: #0d0a2f;
}
.mysidebar li i {
  height: 50px;
  line-height: 50px;
  font-size: 18px;
  border-radius: 12px;
}
.mysidebar li.profile {
  position: fixed;
  height: 60px;
  width: 78px;
  left: 0;
  bottom: -8px;
  padding: 10px 14px;
  background: #1c1846;
  transition: all 0.5s ease;
  overflow: hidden;
}
.mysidebar.open li.profile {
  width: 270px;
}
.mysidebar li .profile-details {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.mysidebar li img {
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}
.mysidebar li.profile .name,
.mysidebar li.profile .job {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}
.mysidebar li.profile .job {
  font-size: 12px;
}
.mysidebar .profile #log_out {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #1c1846;
  width: 100%;
  height: 60px;
  line-height: 60px;
  border-radius: 0px;
  transition: all 0.5s ease;
  cursor: pointer;
}
.mysidebar.open .profile #log_out {
  width: 50px;
  background: none;
}
.home-section {
  position: relative;

  top: 0;

  left: 78px;
  width: calc(100% - 78px);
  transition: all 0.5s ease;
  z-index: 2;
}
.mysidebar.open ~ .home-section {
  left: 270px;
  width: calc(100% - 270px);
}
.home-section .heading {
  display: inline-block;
  color: #fdfdfd;
  font-size: 25px;
  font-weight: 500;
  padding: 20px 0px 10px;
  background: rgb(13, 10, 47);
}
form {
  padding: 50px 80px 0;
}
.rating {
  border: none;
  float: left;
}

.rating > input {
  display: none;
}
.rating > label:before {
  margin: 0 15px 0;
  font-size: 1.3em;
  font-family: FontAwesome;
  display: inline-block;
  content: "\f005";
}

.rating > .half:before {
  content: "\f089";
  position: absolute;
}

.rating > label {
  color: #ddd;
  float: right;
}

/***** CSS Magic to Highlight Stars on Hover *****/

.rating > input:checked ~ label, /* show gold star when clicked */
      .rating:not(:checked) > label:hover, /* hover current star */
       .rating:not(:checked) > label:hover ~ label {
  color: #ffd700;
}
/*        hover previous stars in list */

.rating > input:checked + label:hover,
.rating > input:checked ~ label:hover,
.rating > label:hover ~ input:checked ~ label,
.rating > input:checked ~ label:hover ~ label {
  color: #ffed85;
}

@media (max-width: 680px) {
  .mysidebar li .tooltip {
    display: none;
  }
  .mysidebar {
    width: 52px;
    padding: 1px;
  }
  .mysidebar.open {
    width: 220px;
    position: fixed;
  }
  .mysidebar.open li.profile {
    width: 220px;
  }
  .mysidebar .logo-details .logo_name {
    font-size: 18px;
  }
  .mysidebar li.profile {
    width: 50px;
  }
  .home-section {
    left: 50px;
    width: calc(100% - 50px);
  }
  .mysidebar.open ~ .home-section {
    left: 220px;
    width: calc(100% - 50px);
  }
  .home-section {
    width: calc(100% - 50px);
  }
  form {
    padding: 10px 20px 0;
  }
  .home-section .heading {
    font-size: 18px;
    padding: 5px;
  }
}
