@import "../../assets/scss/variables";

:root {
  --footer-background: white;
}

:root[data-theme="dark"] {
  --footer-background: #212529;
};

#main-layout {
  height: 100vh;
background: $app-background;
  & .sidebar {
    //@include themify($themes) {
	//		background: themed('sidebarBackgroundColor');
	//	}
    &--logo {
      .logo-image {
        .DuaLogoBeta .DuaLogoLive {
          margin-left: 15px;
        }
      }
    }

    position: fixed;
    height: 100vh;
    width: $sidebarWidth;
    background-color: $main-color;
    left: 0;
    top: 0;
    padding: 2.5rem 0;
    border-right: 3px solid $main-color;

    & button {
      position: absolute;
      left: 100%;
      top: 10px;
    }

    @media(min-width: 3000px) {
      position: absolute;
    }

    @media(max-width: 991px) {
      position: relative;
      height: auto;
      width: auto;
      flex-direction: row;
      justify-content: space-between;
      padding: 1.5rem 2rem;
    }


    &--demokritos-logo {
      width: 100%;
    }
  }

  & .sidebar-mobile {
    &--logo {
      @media (max-width: 766px) {
        margin-top: -8px;
      }

    }

    position: initial;
    height: auto;
    width: auto;
    background-color: $main-color;
    padding: 1.5rem;
  }

  & .quick-access {

    //@include themify($themes) {
	//		background: themed('backgroundColor');
	//	}

    position: fixed;
    top: 0;
    left: 0;
    margin-left: 91px;
    height: 100%;
    width: 307px;
    background-color: $quick-access-background;
    padding-top: 35px;
    transition: 0.5s;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
    overflow: visible;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    & img.open {
      vertical-align: baseline;

    }

    & .toggle-access {

      position: absolute;
      top: 37px;
      right: -26px;
      height: 28px;
      border-radius: 4px;
      width: 106px;
      outline: none;
      border: none;
      background-color: $attention-color;
      z-index: -10;
      display: flex;
      .text {
        font-size: 10px;
        text-transform: uppercase;
        color: $white;
        font-weight: 700;
      }
      .img-wrapper{
        border-left: 1px dashed white;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 25px;
        height: 25px;
        margin-left: 10px;
      }
    }

    &.closed {
      width: $quickAccessClosedWidth;

      .toggle-access {
        width: 26px;
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
.img-wrapper{
  border-left: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  margin-left: 0px;
}
        .text {
          display: none;
        }
      }
    }

    @media(min-width: 3000px) {
      position: absolute;
    }
  }

  & .main-content {
    height: 100%;
    background-color: $app-background;
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    container-name: content;
    margin-left: $mixedClosedWidth;
    @media(max-width: 991px) {
      margin-left: 0;
    }

    & #header {

      //@include themify($themes) {
		//		background: themed('backgroundColor');
		//	}

      transition: 0.5s;
      padding-right: $paddingClosed;
      padding-left: $paddingClosed;
      background-color: $app-background;
      transition: 0.5s;

      & .top-header {
        transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
      }

    }

    & .inner-content {
      //@include themify($themes) {
		//		background: themed('backgroundColor');
		//	}

      transition: 0.5s;
      flex-grow: 1;
      overflow-x: hidden;
      overflow-y: scroll;
      z-index: 4;
      padding-top: 55px;
      padding-left: $paddingClosed;
      padding-right: $paddingClosed;
      @media (max-width: 1010px) {
        padding-top: 15px;
      }
      /* for firefox */
      &.scrollbar {
        //scrollbar-color: #ccc #e9f0f9;
        scrollbar-width: thin;
        scroll-behavior: smooth;
      }

      &::-webkit-scrollbar {
        width: 5px;
        height: 50% !important;
        transform: scaleY(0.5) !important;
      }

      /* Track */
      &::-webkit-scrollbar-track {
        background: #e9f0f9;
        border-radius: 10px;
        margin-top: 70px;
        margin-bottom: 20px;
      }

      /* Handle */
      &::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
      }

      /* Handle on hover */
      &::-webkit-scrollbar-thumb:hover {
        background: transparent;
      }
    }

    & #footer {

      @media (max-width: 991px) {
        background: var(--footer-background);
        z-index: 100000000000000;
        height: 10vh;
        min-height: 90px;
        max-height: 90px;
        position: sticky;
        bottom: 0;
        //bottom:-4px;
        padding-left: 2vw;
        .footer-inner {
          position: unset;
        }
      }
      transition: 0.5s;
      margin-top: auto;

      .footer-inner {
        .dark-mode{
          position:fixed;
          bottom:10px;
          right:10px;
        }
        .footer_copyrights {
          padding-left: $paddingOpen;
          color: $title-color
        }
      }

      background: transparent;
    }

    &.open {

      @media(min-width: 1400px) {
        margin-left: $mixedWidth;
      }

      & .inner-content {
        position: relative;
        padding-left: $paddingOpen;
        padding-right: $paddingOpen;

        #Services {
          .roles-container {
            display: flex;
            justify-content: center;
            align-items: center;
          }
        }
      }

      & #header {
        padding-left: $paddingOpen;
        padding-right: $paddingOpen;

        .top-header {
          padding-left: 30px;

          @media(max-width: 1070px) {
            padding: 0px;
          }
        }
      }

    }
  }

  .overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - 91px);
    height: 100%;
    background-color: rgba(12, 52, 61, 0.3);
    z-index: 9998;
  }

  @media(min-width: 3000px) {
    position: relative;
    width: 3000px;
    margin: auto;
  }
}
