@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ############
CONTENT IN FILE
```````````````
Scrollbar
Background
Section elements
Copyright
Buttons
Page main elements
Forms
General graphic styles
Graphic Table
Comparator
Popup
Toast
############ */


/* TMP */
.login-form {
  position: relative;
  z-index: 1;
}

/* END TMP */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family: "Poppins", sans-serif;
  color: #2d2d2d;
  scrollbar-width: none;
  /* hide scrollbar on firefox */
}

:root {
  --color-main: #01C7AC;
  --color-main-20-opac: #E6FAF7;
  --color-main-20: #01C7AC20;
  --color-main-40: #01C7AC40;
  --color-main-60: #01C7AC60;
  --color-main-80: #01C7AC80;


  --color-secondary: #005852;
  --color-secondary-20: #00585220;
  --color-secondary-40: #00585240;
  --color-secondary-60: #00585260;
  --color-secondary-80: #00585280;


  --color-red: #F34747;
  --color-red-60: #F3474760;
  --color-red-20: #F3474720;

  --color-success: #4DD869;
  --color-info: #2E87EC;
  --color-warning: #FFC228;

  /* TMP VAR */
  --legend-color-red: #EE8E8D;
  --legend-color-blue: #64A8DC;
  --legend-color-violet: #A865DA;
  --legend-color-green: #5DDBCA;
}


body {
  --body-padding: 20px;
  width: 100vw;
  min-height: 100vh;
  padding: var(--body-padding);
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  display: none;
}

/* Background */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-main-40) !important;
}

.bg-overlay::before,
.bg-overlay::after {
  position: absolute;
  content: '';
  width: 24%;
  aspect-ratio: 1/1;
  background-color: var(--color-main-60);
  border-radius: 50%;
  filter: blur(50px);
}

.bg-overlay::before {
  top: 15%;
  left: -2%;
}

.bg-overlay::after {
  bottom: 15%;
  right: -2%;
}

/* End Background */

.page-content {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 40px);
  z-index: 1;

  display: grid;
  grid-template-columns: 20% 80%;
}

/* Section elements */
.section-title {
  font-size: 14px;
  color: #6d6d6d;
  margin-bottom: 1rem;
}

/* end section elements */
main {
  position: relative;
  background: #fff;
  width: 100%;
  height: calc(100vh - var(--body-padding)*2);
  border-radius: 20px;
  box-shadow: 0 0 6px #00000020;
  padding: 4rem;
  overflow-y: auto;
}

/* copyright */
.copy {
  font-size: 14px;
  color: #3d3d3d;
  width: 100%;
  text-align: center;
  margin: 2rem 0;
}

/* Buttons */
.btn-main {
  position: relative;
  border: none;
  outline: none;
  border-radius: 5px;
  background: var(--color-main);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fit-content {
  width: fit-content;
}

.btn-main::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url('/static/images/mask/button_bg_mask.svg');
  background-position: center;
  background-size: 240px;
  opacity: .4;
  top: 0;
  left: 0;
}

.btn-secondary {
  position: relative;
  border: 2px solid var(--color-main);
  outline: none;
  border-radius: 5px;
  background: var(--color-main-20-opac);
  color: var(--color-main);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}


.btn-main.default,
.btn-secondary.default {
  height: 40px;
  font-size: 18px;
  padding: 0 40px;
}


/* Page main elements */
p.url {
  font-size: 14px;
  color: #7d7d7d;
  margin-bottom: 2rem;
  cursor: default;
}

p.url>a {
  text-decoration: none;
  cursor: pointer;
  color: var(--color-secondary);
  color: #2d2d2d;
}

p.url>a:hover {
  text-decoration: underline;
}

h1.page_header {
  font-size: 20px;
  font-weight: 500;
}

p.page_information {
  font-size: 16px;
  margin-bottom: 2rem;
}


/* Forms */
/* input */
.input-box {
  position: relative;
  width: fit-content;
  margin: 1.5rem 0;
  padding-bottom: 24px;
}

.input-box:has(.error-message)>input {
  background: var(--color-red-20);
}

.input-box>textarea,
.input-box>input {
  width: 400px;
  height: 50px;
  box-shadow: 1px 1px 4px #00000020;
  border-radius: 5px;

  border: none;
  outline: none;
  background: #fff;
  padding: 0 20px;
  font-size: 16px;
}

.input-box>textarea {
  resize: none;
  padding: 10px 20px 0 20px;
  line-height: 20px;
}

.input-box>label {
  font-size: 15px;
  color: var(--color-secondary);
  transform: translateY(-5px);
}

.input-box>.error-message {
  font-size: 14px;
  color: var(--color-red);
  margin-top: 6px;
}

/* select */
.select-box {
  position: relative;
  height: auto;
  width: fit-content;
  background: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;

}

.select-box.enable-errors {
  padding-bottom: 24px;
}

.select-box:has(.error-message)>select {
  background: var(--color-red-20);
}

p.error-message {
  position: absolute;
  bottom: 0;
  color: var(--color-red);
  font-size: .9rem;
  padding-left: 20px;
}

p.error-message::before {
  content: '❌';
  font-size: .6rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.select-box::before {
  position: absolute;
  content: ">";
  right: 15px;
  transform: translateX(50%) rotate(90deg);
  font-weight: 300;
  pointer-events: none;
}

.select-box>label {
  position: absolute;
  font-size: 15px;
  color: var(--color-secondary);
  top: -5px;
  transform: translateY(-100%);
  white-space: nowrap;
}

.select-box>select {
  border-radius: 5px;
  border: none;
  outline: none;
  height: 30px;
  line-height: 30px;
  padding: 0 30px 0 10px;
  background-color: transparent;
  appearance: none;
  cursor: pointer;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  box-shadow: 0 0 3px #00000020;
}

/* files */
.file-box {
  position: relative;
  border-radius: 5px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
}

input[type="file"] {
  position: absolute;
  appearance: none;
  background: red;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  cursor: pointer;
}

/* End Forms */

/* legend */
.legend-items {
  margin: 4rem 0 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.legend-items>.item {
  display: flex;
  align-items: center;
  margin: 0 1rem;
  cursor: pointer;
  padding: .25rem 1rem;
  border-radius: 8px;
  border: 1px solid #00000000;
  transition: .2s;
}

.legend-items>.item:hover {
  background: #00000008;
  border: 1px solid #00000020;
}

.legend-items>.item.active {
  background: var(--color-main-60);
  border: 1px solid var(--color-main);

}

.legend-items>.item>.color {
  width: 25px;
  aspect-ratio: 1/1;
  border-radius: 5px;
  border: 2px solid #fff;
  box-shadow: 1px 3px 6px #00000025;
  background-color: var(--color);
}


.legend-items>.item>p {
  font-size: 14px;
  margin-left: 10px;
}

/* General graphic styles */
.graphic-title {
  font-size: 14px;
  color: var(--color-secondary);
  margin-bottom: .5rem;
}

/* graphic table */
.graphic-table {
  --y-values-width: 25px;
  --graphic-table-height: 400px;
  position: relative;
  margin-bottom: 6rem;
}


.graphic-table-content {
  position: relative;
  background: var(--color-main-20);
  border-radius: 5px;
  width: 100%;
  height: var(--graphic-table-height);

  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
}

.y-values {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-evenly;
  transform: translateX(calc(var(--y-values-width)*-1));
}

.y-values>p {
  position: relative;
  font-size: 14px;
}

.y-values>p::before {
  position: absolute;
  top: 50%;
  left: var(--y-values-width);
  transform: translateY(calc(-50% - 1px));
  content: '';
  width: 100%;
  height: 2px;
  background: #ffffff80;
}

.graphic-table-content>.graphic-bar {
  position: relative;
  z-index: 1;
  width: 40px;
  height: calc(var(--value-y) * (var(--graphic-table-height)/5*4) / var(--max-value-y));
  /* max value == max height/5*4 */
  background: var(--color);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.graphic-table-content>.graphic-bar::before {
  position: absolute;
  content: attr(bar-value);
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 5px;
  background: var(--color);
  top: -10px;
  transform: translateY(-100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}


.graphic-table-content>.graphic-bar>p {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 100%);
  text-align: center;
}

.graphic-table-content>.graphic-bar>p.title {
  bottom: -5px;
  font-size: 14px;
}

.graphic-table-content>.graphic-bar>p.subtitle {
  bottom: -20px;
  font-size: 12px;
}

.graphic-table-content>.graphic-bar>.bar-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.graphic-table-content>.graphic-bar>.bar-overlay::before {
  position: absolute;
  content: '';
  height: 100%;
  aspect-ratio: 1/1;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background-image: url('/static/images/mask/button_bg_mask.svg');
  background-position: center;
  background-size: calc(81 * var(--graphic-table-height) / 100);
  transform: rotate(90deg);
  opacity: .4;
}

/* Comparator */
.graphic-comparator {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: auto;
  max-width: calc(320px * 3 + 8%);
  grid-gap: 4%;
}

.graphic-comparator>.comparator-block {
  --side-values-space: 50px;
  position: relative;
  padding-left: var(--side-values-space);
  max-width: 320px;
}

.graphic-comparator>.comparator-block>.comparator-values-list {
  padding-top: calc(30px * 2 + 10px * 2 + 15px + 5px + 30px);
  position: absolute;
  left: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: var(--side-values-space);
  padding-bottom: 15px;
}

.graphic-comparator>.comparator-block>.comparator-values-list>p {
  height: 20px;
  line-height: 20px;
  font-size: 12px;
  width: 100%;
  text-align: right;
  text-align: center;
  padding-right: 5px;
  margin-top: 2px;
  color: #5d5d5d;
}

.graphic-comparator>.comparator-block>.comparator-content {
  background: var(--color-main-20);
  padding-top: 15px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.comparator-selector {
  position: relative;
  padding: 10px 20px;
  background: var(--color-main-40);
  border-radius: 5px;
  width: calc(100% - 40px);
  margin: auto;
}

.comparator-selector::before {
  content: '';
  top: 0;
  left: 0;
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: url('/static/images/mask/view_filter_mask.svg');
  background-position: center;
  background-size: 250%;
  opacity: .05;
}


.comparator-selector .select-box {
  width: 100%;
}

.graphic-comparator>.comparator-block>.comparator-content .select-box.margin-bottom {
  margin-bottom: 5px;
}

.comparator-selector select {
  width: 100%;
}

.graphic-comparator>.comparator-block>.comparator-content>.comparator-graphic {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 100%;
  padding: 30px 0 15px 0;
}

.graphic-comparator>.comparator-block>.comparator-content>.comparator-graphic>.bar {
  position: relative;
  --bar-height: 20px;
  height: var(--bar-height);
  width: calc((var(--value) * (95% - var(--bar-height) - 5px) / var(--max-value)));
  /* max width == 95% - height - 5px */
  background: var(--color);
  margin-top: 2px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;

}

.graphic-comparator>.comparator-block>.comparator-content>.comparator-graphic>.bar::after {
  content: '';
  position: absolute;

  height: 100%;
  width: 100%;


  background-image: url('/static/images/mask/button_bg_mask.svg');
  background-size: 220px;
  background-position: left;
  background-repeat: no-repeat;

  opacity: .4;

}

.graphic-comparator>.comparator-block>.comparator-content>.comparator-graphic>.bar::before {
  content: attr(bar-value);
  position: absolute;
  top: 50%;
  right: -5px;
  height: var(--bar-height);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(100%, -50%);
  font-size: 14px;
  font-weight: 300;
}


/* Popup */
.popup {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-main-20);
  backdrop-filter: blur(1px);
  left: 0;

  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.popup.show {
  display: flex;
}

.popup .content {
  position: relative;
  z-index: 1;
  padding: 2rem 4rem;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 1px 3px 6px #00000020;
  max-width: 800px;
  pointer-events: all;
}

.popup .content .close {
  position: relative;
  width: 35px;
  align-self: flex-end;
  aspect-ratio: 1/1;
  margin-bottom: 1rem;
  opacity: .4;
  transition: .2s;
}

.popup .content .close:hover {
  opacity: 1;
}

.popup .content .close::before,
.popup .content .close::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 2px;
  background: var(--color-main);
  transform: rotate(45deg);
  pointer-events: none;
}

.popup .content .close::before {
  transform: rotate(-45deg);
}

.popup .content h2 {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.popup .content p {
  text-align: center;
  margin-bottom: 2rem;
}


/* Toast */
.toast-list {
  position: fixed;
  right: 1rem;
  top: 1rem;
  width: 350px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 999;
  pointer-events: none;
}

.toast-list>.toast {
  position: relative;
  width: 100%;
  transform: translateX(200%);
  background: #fff;
  box-shadow: 1px 3px 8px #00000020;
  margin-bottom: 1rem;
  border-radius: 5px;
  padding: 1rem;
  padding-left: 2rem;
  animation: toast-appear 20s linear;
}

.toast-list>.toast.delay-1 {
  animation-delay: .25s;
}

.toast-list>.toast.delay-2 {
  animation-delay: .5s;
}

.toast-list>.toast.delay-3 {
  animation-delay: .75s;
}

.toast-list>.toast.delay-4 {
  animation-delay: 1s;
}

.toast-list>.toast.delay-5 {
  animation-delay: 1.25s;
}

@keyframes toast-appear {
  0% {
    transform: translateX(200%);
  }

  2% {
    transform: translateX(0);
  }

  98% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(200%);
  }

}

.toast-list>.toast.success {
  --toast-color: var(--color-success);
}

.toast-list>.toast.error {
  --toast-color: var(--color-red);
}

.toast-list>.toast.info {
  --toast-color: var(--color-info);
}

.toast-list>.toast.warning {
  --toast-color: var(--color-warning);
}

.toast-list>.toast::before {
  content: '';
  position: absolute;
  height: 80%;
  width: 4px;
  left: 0;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  background: var(--toast-color);
}

.toast-list>.toast>.close {
  justify-self: end;
  position: relative;
  outline: none;
  border-radius: 5px;
  border: 1px solid #00000000;
  height: 30px;
  aspect-ratio: 1/1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
}

.toast-list>.toast>.close:hover {
  border: 1px solid #00000020;
}

.toast-list>.toast>.close::before,
.toast-list>.toast>.close::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 1px;
  background: #00000060;
  transform: rotate(45deg);
  border-radius: 4px;
  pointer-events: none;
}

.toast-list>.toast>.close::before {
  transform: rotate(-45deg);
}

.toast-list>.toast>h3 {
  color: var(--toast-color);
}
