﻿:root {
  --theme-color: rgb(156, 188, 255);
  --theme-color-lighter: #e1ebff;
  --theme-color-darker: #5f90e6;
  --text-color-dark: rgba(0, 0, 0, 0.9);
  --text-color-light: rgba(255, 255, 255, 0.9);
}


@font-face {
  font-family: "Roboto";
  src: url(/fonts/Roboto-Regular.ttf) format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
}

body, input, h1, h2 {
  font-family: "Roboto"
}

  input[type=text], input[type=password], select, textarea {
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    font-size: 16px;
  }

input {
  padding: 4px 10px;
}

  input:focus {
    outline: 1px solid #061E92;
  }

select {
  padding: 4px 6px;
}

.title .logo {
  width: 40px;
  vertical-align: bottom;
  margin-bottom: -3px;
  margin-right: 10px;
}

.button {
  border: none;
  background-color: #010760;
  color: white;
  min-width: 8em;
  padding: 7px 9px;
  cursor: pointer;
  border-radius: 5px;
  transition: all .15s ease-in;
  font-size: 16px;
}

  .button:hover, .button:focus {
    background-color: var(--theme-color);
  }

  .button:focus {
    outline: none;
  }

  .button.warning {
    background-color: #ff4d00;
  }

.page.main {
  display: grid;
  grid-template-rows: auto auto 1fr;
  height: 100%;
}

  .page.main .banner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    padding: 10px 30px 0 30px;
  }

    .page.main .banner > * {
      white-space: nowrap;
    }

      .page.main .banner > *:nth-child(1) {
        justify-self: left;
      }

      .page.main .banner > *:nth-child(3) {
        justify-self: right;
      }


  .page.main > .title {
    position: relative;
    box-shadow: 0 2px 2px rgba(0,0,0,0.2);
    padding: 0 40px 6px 48px;
    z-index: 1;
    pointer-events: none;
    margin-top: -24px;
  }

    .page.main > .title.backLink {
      margin-top: 8px;
    }

    .page.main > .title h1 {
      margin: 0;
      padding: 0;
      font-size: 28px;
    }

    .page.main > .title.backLink h1 {
      font-size: 24px;
    }


    .page.main > .title .action {
      position: absolute;
      right: 40px;
      bottom: 4px;
    }

  .page.main .content {
    padding: 0; /*20px 30px 0 38px*/
    background-color: #f7f7fa;
  }

a, a:visited {
  color: black;
}

.backlink a {
  text-decoration: none;
}

  .backlink a:hover {
    text-decoration: underline;
  }


.management {
  padding-left: 10px;
}

  .management.grid {
    height: 100%;
    display: grid;
    grid-template-columns: min-content min-content;
    grid-column-gap: 10px;
  }

    .management.grid > div {
      background: white;
      border: 1px solid #e4e4e6;
      padding: 0 40px 10px 40px;
    }

  .management .links {
  }

    .management .links a {
      display: inline-block;
      width: 100%;
      line-height: 50px;
      border-radius: 9px;
      box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
      margin: 10px 0;
      box-sizing: border-box;
      text-decoration: none;
      text-align: left;
      color: black;
      font-size: 16px;
      padding: 0 20px;
      white-space: nowrap;
    }

      .management .links a:hover {
        background-color: #e0e0f0;
        transition: background-color 0.2s linear;
      }


.form {
}

  .form .row {
    display: grid;
    grid-template-columns: 100px min-content min-content;
  }


  .form h3 {
    margin-top: 32px;
    margin-bottom: 8px;
  }

  .form label {
    display: inline-block;
  }

  .form .row {
    margin-bottom: 6px;
  }

    .form .row > div {
      white-space: nowrap;
    }

  .form .button.bottom {
    margin-top: 8px;
    float: right;
  }

.icon {
  min-width: 24px;
  min-height: 24px;
  background-repeat: no-repeat;
  background-size: contain;
}

  .icon.top {
    margin-top: 16px;
    float: right;
    margin-right: -16px;
  }

  .icon.delete {
    background-image: url(/icons/delete.svg)
  }

  .icon.add {
    background-image: url(/icons/add.svg)
  }

button.icon {
  border: none;
  background-color: transparent;
  transition: opacity 0.2s;
  opacity: 0.6;
}

  button.icon:hover {
    opacity: 1.0;
    cursor: pointer;
  }


/* ---------- asp-client-validation ---------- */
.field-validation-error {
  font-size: 0
}

  .field-validation-error:before {
    margin-left: 8px;
    font-size: 16px;
    content: "*";
    position: relative;
    top: -6px;
  }

.input-validation-error {
  border-color: red !important;
  outline-color: red !important;
}

.validation-summary-errors {
  color: red;
  font-style: italic;
}

.validation-summary-valid span {
  display: none;
}

.hidden {
  display: none;
}


.dashboard {
  margin: 20px 20px;
}

  .dashboard .tag {
    display: block;
    width: fit-content;
    background: var(--theme-color);
    color: white;
    padding: 4px 16px;
    border-radius: 999px;
    margin-top: 4px;
    margin-bottom: 4px;
    border: 1px solid var(--theme-color);
    background: var(--theme-color);
    color: var(--text-color-light);
  }

    .dashboard .tag.indented {
      margin-left: 20px;
      background: var(--theme-color-lighter);
      color: var(--text-color-dark);
    }

  .dashboard ul {
    margin: 0 20px 20px 20px;
    list-style: none;
    padding-left: 0;
  }


  .dashboard input[type=text], .dashboard .sizing-helper {
    padding: 1px 8px;
    border: none;
    width: 100%;
    max-width: 100%;
    min-width: 200px;
    box-sizing: content-box;
    vertical-align: top;
    margin-top: 5px;
  }

    .dashboard input[type=text]:not(:focus) {
      display: inline-block;
      background: none;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .dashboard input[type=text]:placeholder-shown:not(:focus) {
      margin-left: 6px;
      background: rgba(0, 0, 0, 0.05);
    }

  .dashboard .sizing-helper {
    position: absolute;
    visibility: hidden;
    white-space: pre;
    width: fit-content;
  }

  .dashboard .icon.action {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: bottom;
    margin-top: 4px;
  }

  

  .dashboard input::placeholder {
    color: gray;
    font-style: italic;
    opacity: 0.7;
    transition: opacity 0.1s ease-in-out;
  }

  .dashboard input:focus::placeholder {
    opacity: 0;
  }

  .dashboard li select {
    padding: 3px 2px;
    font-size: 13px;

  }

  .dashboard select {
    background-color: var(--theme-color-lighter);

  }

  .dashboard .settings {
    border: 1px solid #e4e4e6;
    display: inline-block;
    padding: 4px 20px;
    float: right;
  }

    .dashboard .settings h2 {
      margin: 0 0 12px 0;
      font-size: 120%;
      font-weight: bold;
    }

    .dashboard .settings label {
      display: inline-block;
      min-width: 80px;
      vertical-align: top;
      margin-top: 4px;
    }

    .dashboard .settings select {
      margin-left: 10px;
      margin-bottom: 10px;
      padding: 2px 6px;
    }

    .dashboard .settings .value {
      display: inline-block;
      min-width: 40px;
      text-align: center;
      background-color: var(--theme-color-lighter);
      font-size: 85%;
      vertical-align: top;
      margin-top: 7px;
    }


.slider {
  -webkit-appearance: none;
  background: none;
}

  .slider::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    width: 20px;
    height: 8px;
    background: #ddd;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .slider::-webkit-slider-thumb {
    height: 24px;
    width: 14px;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    border-radius: 3px;
    background: var(--theme-color);
    margin-top: -8px;
    -webkit-appearance: none;
  }

  .slider:focus {
    outline: none;
  }

.icon.action.empty {
  background-image: url(/icons/none.svg);
}

.icon.action.play {
  background-image: url(/icons/play.svg);
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

  .icon.action.play:hover {
    transform: scale(1.3);
  }

.icon.action.waiting {
  background-image: url(/icons/spinner.svg);
  animation: rotate 2s linear infinite;
}

.icon.action.badge {
  position: relative;
  display: inline-block;
}

.icon.action.badge::after {
  content: '';
  position: absolute;
  top: 0; 
  right: 0;
  width: 8px;
  height: 8px;
  background-color: var(--theme-color-darker); 
  border-radius: 50%; 
  border: 2px solid white; 
}

/* ---------- empty on purpose ---------- */

.autosize {
}


/* ---------- gmodal ---------- */
.gmodal-dialog .button {
  text-decoration: none;
}

  .gmodal-dialog .button.ok {
  }

  .gmodal-dialog .button.cancel {
  }



/* ---------- Animations ---------- */
@keyframes fadeOut {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.animationFadeOut {
  animation-name: fadeOut;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
