@import "./colors";
@import "./fonts";
@import "./variables";

// This file will be injected to the all scss files
// Here will be defied rules which will be shared to other components

.card-title {
  display: flex;
  color: white;
  background-color: map-get($orange, 2) !important;
  margin: 0px 0px;
  padding: 10px 25px;
  border-radius: 10px 10px 0 0;
}

.card-title.new {
  background-color: map-get($blue, 3) !important;
}

.card-content {
  width: 100%;
  border-style: solid;
  border-width: 1px;
  border-color: map-get($orange, 2);
}

.card-content.new {
  border-color: map-get($blue, 3);
  min-height: 100%;
  box-sizing: border-box;
}

.title {
  width: 100%;
}

.widget-box {
  border-radius: 8px;
  flex: 1;
  cursor: default;
}

.light-theme {
  .title {
    border-radius: 8px 8px 0 0;
    color: #3f4277;
  }

  ul {
    margin: 2px !important;
  }

  li {
    display: flex;
    flex-direction: column;
    // border: 1px solid map-get($orange, 2);
    // border-radius: 11px 11px 0 0;
  }

  .dark-logo {
    display: none;
  }

  .c-range-input {
    color: #0d155b;
  }

  .c-range-input__border_labels {
    color: rgba(13, 21, 91, 0.4);
  }
  color: #0d155b;

  .c-policy-widget__content {
    div {
      background: #ffffff;
      background-color: #ffffff;
    }
  }

  .modal {
    background-color: rgba(255,255,255,0.5);

    div {
      background: #ffffff;
      background-color: #ffffff;
    }
  }

  .unlock-button {
    color: #0d155b;
    border-color: #0d155b66;
    background: #fff;
  }
}

.dark-theme {
  .light-logo {
    display: none;
  }

  ul {
    margin: 2px !important;
  }

  li {
    display: flex;
    flex-direction: column;
    // border: 1px solid map-get($orange, 2);
    // border-radius: 11px 11px 0 0;
  }

  .dark-logo {
    width: 25%;
    margin-left: 25px;
  }

  .modal {
    background-color: rgba(0,0,0,0.5);

    div {
      background: #111827;
      background-color: #111827;
    }
  }

  .c-policy-widget__content {
    div {
      background: #111827;
      background-color: #111827;
    }
  }

  .title {
    border-radius: 8px 8px 0 0;
    color: #9e9e9e;
    border-bottom: 1px solid rgba(200,200,200,0.15);
  }

  .unlock-button {
    color: #0d155b;
    border-color: #0d155b66;
    background: #aaa;
  }

  background: #111827;
  color: #808080;
}

.error {
  color: map-get($red, 2);
  margin-top: 5px !important;
  margin-bottom: 0px !important;
}

.warning {
  color: map-get($yellow, 2);
  margin-top: 5px !important;
  margin-bottom: 0px !important;
}

.AtomicaWidget--ActivateProtection {
  input {
    margin-right: 0.5em;
  }
  display: flex;
  align-items: center;
  .widget-title {
    div {
      margin-right: 5px;
    }
    span {
      padding: 0 0.2em;
    }
    margin: 0.1em 0;
    display: flex;
    align-items: center;
  }
}


a.link-button {
  text-decoration: 1px dashed underline;
}

a.link {
  font-family: Arial;
  border-bottom: 1px dashed;
  color: darkcyan;
}

a.button {
  background: #2d7fff;
  color: #fff;
  padding: 10px 10px;
  border-radius: 25px;
  border: 1px solid;
  font-size: 15px;
  cursor: default;
  &:disabled {
    opacity: 0.5;
  }
}

a.violet-button {
  background: darkmagenta;
  color: #fff;
  padding: 10px 10px;
  border-radius: 4px;
  border: 1px solid;
  font-size: 15px;
  cursor: default;
  &:disabled {
    opacity: 0.5;
  }
}

a.external-link {
  color: #3f4277;
  border: none;
  font-size: 14px;
  margin-bottom: 5px;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  &:hover {
    cursor: pointer;
  }
}

.gray {
  color: map-get($grey, 15) !important;
  height: 1.5em;
}

.theme-zerion {
  margin: 2em 0;
  color: var(--zeric60);
}

.wizard-step-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  align-items: center;

  button {
    align-self: center;
    margin: 1em;
  }

  input {
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;
    width: 100%;
    color: map-get($dark-blue, 1);
    background-color: $white;
    padding: 10px 15px;
    margin-top: 15px;
    border: 1px solid map-get($grey, 10);
    border-radius: 5px;
    &:focus,
    &:focus:active {
      border: 1px solid map-get($dark-blue, 1);
    }
    &[disabled] {
      color: map-get($grey, 10);
    }
    margin-bottom: 0px;
    text-align: center;
    box-sizing: border-box;
    &.error-field {
      border: 1px solid red;
      &:focus,
      &:focus:active {
        outline: none;
        border: 1px solid map-get($dark-blue, 1);
      }
    }
  }
}

.wizard {
  font-family: "Poppins", sans-serif !important;

  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1em;

  h1 {
    font-weight: 400;
    margin: 0;
  }

  .step-line {
    color: map-get($grey, 15);
    justify-content: flex-start;
    font-size: 12px;
    border-bottom: 1px solid;
    padding-bottom: 7px;
    width: 100%;
  }

  .wizard-content {
    width: 30em;
    min-height: 20em;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;

    >div {
      width: 100%;
    }

    .step-is-done {
      font-size: 10em;
      align-self: center;
      display: flex;
      justify-content: center;
    }

    .wizard-step-error {
      color: map-get($red, 1);
    }
  }

  .wizard-footer {
    align-self: center;
    margin: 1em 0 0;
  }

  .spinner-container {
    margin: 1em;
  }
}

.slide-in {
  position: relative;
  left: 100%;
  -webkit-animation: slide-in 1s forwards;
  -webkit-animation-delay: 0s;
  animation: slide-in 1s forwards;
  animation-delay: 0s;
}

.slide-out {
  position: relative;
  left: 0%;
  -webkit-animation: slide-out 1s forwards;
  -webkit-animation-delay: 1s;
  animation: slide-out 1s forwards;
  animation-delay: 1s;
}

@-webkit-keyframes slide-in {
  100% { left: 0; }
}

@keyframes slide-in {
  100% { left: 0; }
}


@-webkit-keyframes slide-out {
  100% { left: -100%; }
}

@keyframes slide-out {
  100% { left: -100%; }
}

.step-line {
  margin-bottom: 1em;
  display: flex;
  justify-content: center;

  .step {
    color: map-get($dark-blue, 1);
    text-align: center;
    border: 2px solid map-get($grey, 15);
    border-radius: 50px;
    padding: 0.7em;
    width: 1em;
    height: 1em;
    line-height: 15px;
  }

  .active-step {
    border-color: map-get($blue, 1);
    background-color: map-get($blue, 1);
    color: $white;
  }

  .step-connector {
    flex-grow: 1;
    flex-shrink: 1;
    border: 1px solid map-get($grey, 15);
    height: 0px;
    align-self: center;
    margin: 0.5em;
  }
}