@import 'src/assets/styles/responsive-base.scss';

:host {
  //min-height: 48px;
  // height: 48px;
  // width: 100%;
  // display: flex;
  // justify-content: flex-start;
  // align-items: center;
  // flex-direction: row;
  // box-sizing: border-box;
  position: relative;
}

#header-container {
  display: none;
  flex-direction: column;
  position: relative;
  z-index: 102;

  &.visible{
    display: flex;
  }
}

#minimal-header-container{
  display: none;
  justify-content: flex-end;
  position: relative;
  z-index: 102;

  &.visible{
    display: flex;
  }

  .mat-mdc-icon-button{
    width: 58px;
    height: 58px;
  }
  mat-icon{
    font-size: 30px;
    width: 30px;
    height: 30px;
  }
}

#header-content {
  position: relative;
  z-index: 102;
  display: flex;
  height: 100%;
  align-items: center;
  padding: 10px 0 14px;
  justify-content: space-between;
}

#logo {
  height: 20px;
  flex-basis: 252px;
  margin: 0 14px;
  box-sizing: border-box;
  @include screen('phone') {
    flex-basis: unset;
  }

  a {
    text-decoration: none;
  }
}

.status-container {
  display: flex;
  align-content: center;
}

mat-icon {
  font-size: 20px;
  width: 20px;
  height: 20px;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  cursor: pointer;
}

#logo {
  img {
    height: 100%;
  }

  #environment {
    font-weight: bold;
  }

  @include screen('phone') {
    display: none;
  }
}
app-search-input {
  flex: 1 1 auto;
  margin: 0 22px;
  @include screen('phone') {
    max-width: 50%;
  }
}

#expander {
  flex: 1 1 0;
}

app-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
}

#name {
  @include screen('phone') {
    display: none;
  }
}

#burger-icon {
  display: none;
  @include screen('phone') {
    display: block;
    margin-left: 14px;
  }
}

#account-info {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mat-toolbar {
  position: absolute;
  top: -544px;
  z-index: 101;
  right: 0;
  width: auto;
  min-width: 200px;
  height: auto;
  padding: 8px 0;
  transition: top ease-in-out 0.25s;

  .navlink-container {
    display: flex;
    flex-direction: column;
    width: 100%;

    a {
      text-decoration: none;
      display: flex;
      padding: 2px 14px;
      cursor: pointer;
    }
  }

  mat-divider {
    margin: 8px 0;
  }

  .link-text {
    font-weight: normal;
    font-size: 14px;
    margin-left: 6px;
  }

  &.open {
    top: 100%;
  }
}

#download-button {
  padding: 0;
  height: 28px;
  width: 28px;
  margin-right: 6px;
}

.pulse {
  border-radius: 50%;
  animation: pulse 1s infinite;
}

#disconnected-icon {
  animation: opacity-pulse 1s infinite;
  margin-right: 20px;
  font-size: 20px;
}

@keyframes opacity-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 159, 6, 0.9);
    background-color: rgba(254, 159, 6, 0.9);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(254, 159, 6, 0);
    background-color: rgba(254, 159, 6, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(254, 159, 6, 0);
    background-color: rgba(254, 159, 6, 0);
  }
}

#header-login {
  text-decoration: none;
  margin: 0 12px;
  padding: 4px 8px;
  border-radius: 4px;
}
