@use "base";
@use "responsive";
@use "viewer_tab";
@use "gcode_viewer";
@use "model_viewer";
@use "settings";
@use "sidebar";
@use "preferences";

body, html {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

#tab-strip {
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--tab-height);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-bottom: 1px solid var(--grey-2);
  user-select: none;

  overflow-x: scroll;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }

  #logo_svg {
    height: 2.5rem;
  }

  h1 {
    margin: 0px;
    margin-left: 0.5rem;
    margin-right: 1rem;
    font-size: 1.4rem;

    @include responsive.mobile() {
      display: none;
    }
  }

  .tab {
    margin-top: auto;
    padding: 0.3rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    background-color: var(--background-2);
    clip-path: polygon(0.4rem 0%, calc(100% - 0.4rem) 0%, 100% 100%, 0% 100%);
  }
  .tab[data-active="true"] {
    background-color: var(--grey-2);
  }

  .info-link {
    font-size: 0.9rem;
    margin-left: 1rem;

    @include responsive.mobile() {
      display: none;
    }
  }

  a, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration: none;
  }
}

.tab-content {
  display: flex;
  width: 100%;
  flex-grow: 1;
  overflow: auto;
}
.tab-content[data-active="false"] {
  display: none;
}

#loading {
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;

  h1 {
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    > img {
      height: 2em;
    }
  }
}

.fullscreen {
  position: absolute;

  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;
}

@keyframes blur-out {
  0% {
    filter: opacity(100%);
  }

  100% {
    filter: opacity(0%);
  }
}

#notifications {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  .notification {
    background-color: var(--background-2);
    border: 1px var(--grey-2) solid;
    border-radius: 0.5rem;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);

    height: 5rem;
    width: 15rem;
    padding: 0.5rem;

    .title-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;

      font-size: 1.2rem;
      font-weight: 600;

      width: 100%;

      cura-icon {
        color: var(--grey);
        height: 1.2rem;
        width: 1.2rem;

        &:hover {
          color: var(--text);
          transform: scale(1.1);
        }
      }
    }

    .description {
      font-weight: 400;
      color: var(--grey);
      font-size: 0.9rem;
    }
  }
}
