@use '../../assets/scss/customVariables.scss' as *;

.profileCard {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  max-width: 54px;
  max-height: 54px;
  border-radius: 50%;
  position: relative;

  .dropdown {
    position:absolute;
    bottom: 0;
    right: 0;
    border: 3px solid $primary-color;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    border-radius: 50%;
    background-color: $secondary-color;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.shadow {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

.popperBox{
  background-color: #fff;
  margin-top: 20px;
  border-radius: 10px;
  border-bottom: 0;
  z-index: 10000 !important;
  position: relative;
  box-shadow: 0 0 10px #4271D642;
  min-width: 192.88px;
  
  
  &::-webkit-scrollbar {
    width: 10px;
    border-radius: 5px;
  }

  &::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
  }

  &::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
  }

  &::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  .links {
    color: #000;
    text-decoration: none;
  }

  .listItemText{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    justify-content: center;
    font-family: "Raleway", sans-serif;
    box-sizing: border-box;

    &__selected {
      @extend .listItemText;

      background-color: $primary-color;

      &:hover {
        background-color: $primary-color-alt !important;
        cursor: pointer;
  
      }

      .text {
        color: $white;
      }
    }
    
    &:hover {
      background-color: #e7e7e7;
      cursor: pointer;

    }

    .text {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 7px;
      font-size: 15.78px;
      font-weight: 500;
      color: $primary-color;
    }

    .iconAndLabel {
      display: flex;
      flex-direction: row;
      align-items: center;

      .icon {
        font-size: 16px;
      }
  
    }
  }

  .showButton{
    border: 3px solid $secondary-color;
    width: 90%;
    max-height: 47.73px;
    color: #fff;
    background: $secondary-color;
    display: flex;
    align-items: center;
    margin: 0 auto;
    flex-direction: row;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 13.39px;
    margin-top: 10px;
    
    @media screen and (max-width: 600px) {
      margin-bottom: 10px;
    }

    & > p {
      font-weight: 700;
      font-size: 16px;
      line-height: 30px;
      margin-bottom: 0;
    }

    & > img {
      margin-left: 10px;
    }
  }
}

.popperBox::before {
  content: '';
  position: absolute;
  top: -17px; /* Altura del triángulo + sombra */
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 10px #4271D642;
  background-color: #fff;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-top-left-radius: 6px;
}

.shadow {
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 10000;
}

.headerContainer {
  width: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  
  @media screen and (max-width: 700px) {
    padding: 20px 10px;
  }

  

  .maxContainer {
    width: 100%;
    max-width: $max-width-layout;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    justify-content: center;
    position: relative;

    @media screen and (max-width: 650px) {
      flex-direction: column;
    }

    .menuIcon {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 15px;
      display: none;
      flex-direction: row;
      align-items: center;
      gap: 3px;
      cursor: pointer;

      @media screen and (max-width: 700px) {
        display: flex;
      }
    }

    .profileCard {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 15px;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 3px;
      cursor: pointer;

      @media screen and (max-width: 700px) {
        display: none;
      }
    }


    .imageContainer {
      .image {
        @media screen and (max-width: 700px) {
          max-width: 150px;
        }
      }
    }

    

    .buttons{
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
      padding-right: 40px;

      @media screen and (max-width: 650px) {
        display: none;
      }

      .home {
        color: $primary-color;
        font-size: 14px;
        font-weight: 700;
      }

      
      .logout {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 7px;
      }
    }

    @media screen and (max-width: $max-width-layout) {
      padding: 0 20px;
    }
  }
}

.drawerContainer {
  display: none;

  @media screen and (max-width: 700px) {
    display: block;
  }
}

.gradient {
  width: 100%;
  height: 18px;
  background-image: linear-gradient(to right, #94C12E, #04BBF1, #1D4370);
}

.bottomNavigation{
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 73px;
  background-color: #fff;
  box-shadow:  0 0 10px #0000001f;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  display: none;
  z-index: 3;

  @media screen and (max-width: 650px) {
    display: flex;
  }


  .bottomNavigationButton {
    width: 32%;
    background-color: #fff;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 9px;
  }
}

.drawerHeader {
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  align-items: center;
  box-shadow:  0 0 10px #A1AED4;
  
  .minidivisor {
    width: 50px;
    border-radius: 100px;
    height: 5px;
    background-color: #A1AED4;
  }

  &> p {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 0;
  }
}