/*
 * Copyright (c) 2023 D2ArmorPicker by Mijago.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

.loading {
  cursor: progress;
}

.info-container {
  z-index: 1000;
  position: fixed;
  top: 37px;

  // on small screens, right is 0 and left is auto
  // on large screens, left is maximum 1200px and right is auto
  right: 0;

  // large screens
  @media (min-width: 1650px) {
    left: 1380px;
    right: auto;
  }

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  overflow: auto;

  pointer-events: none;
}

.info {
  width: 200px;
  margin-bottom: 5px;

  border: antiquewhite 1px solid;

  // API calls
  &.info-updating-manifest {
    border-color: #f09c4e;
  }
  &.info-updating-inventory {
    border-color: #f0ad4e;
  }
  // Async API Call
  &.info-updating-vendor {
    border-color: #f0e54e;
  }
  // Calculations
  &.info-calculating-permutations {
    border-color: #5cb85c;
  }
  &.info-calculating-results {
    border-color: #89b85c;
  }
  // display
  &.info-updating-results {
    border-color: #5cb85c;
  }
}

.sidenav-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 20;
}

.sidenav {
  width: 200px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 20;
}

.sidenav .mat-toolbar {
  background: inherit;
}

.sidenav .active {
  background-color: rgba(255, 255, 255, 0.07);
  color: #b8c4dc;
}

.mat-toolbar.mat-primary {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* HEADER */
#header {
  position: relative;
  height: 42px;
  margin-bottom: 5px;
}

.header-spacer {
  flex: 1 1 auto;
}

.changelogText {
  cursor: pointer;
}

#loading {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.d2ap-router-link {
  cursor: pointer;
}

:host ::ng-deep .mat-tab-link {
  min-width: 75px;
  opacity: 1;
}

.bar-api-warn {
  background-color: #f0894e;
  position: relative;
  height: 20px;
  margin-bottom: 2px;

  font-size: 16px;
}
