@font-face {
  font-family: proxi;
  src: url("../assets/fonts/ProximaNova-Regular.otf");
  font-weight: 400;
}
@font-face {
  font-family: proxi;
  src: url("../assets/fonts/Proxima-Nova-Medium.otf");
  font-weight: 500;
}
@font-face {
  font-family: proxi;
  src: url("../assets/fonts/Proxima-Nova-Semibold.ttf");
  font-weight: 600;
}
@font-face {
  font-family: proxi;
  src: url("../assets/fonts/Proxima-Nova-Bold.otf");
  font-weight: 700;
}
@font-face {
  font-family: circular;
  src: url("../assets/fonts/Circular-Std-Book.ttf");
  font-weight: 400;
}
@font-face {
  font-family: circular;
  src: url("../assets/fonts/Circular-Std-Bold.ttf");
  font-weight: 700;
}

:root {
  --clr-primary-100: #57A3E5;
  --clr-primary-200: #5CB1FF;
  --clr-primary-300: #477FEE;
  --clr-secondary-50: #F0F0F0;
  --clr-secondary-100: #CCD3D8;
  --clr-secondary-200: #F4F6F8;
  --clr-secondary-300: #E9E9E9;
  --clr-secondary-400: #A0AAB6;
  --clr-secondary-500: #F4F8FC;
  --clr-secondary-600: #A2AAB8;
  --clr-dark-100: #0A0641;
  --clr-dark-200: #314B72;
  --clr-dark-300: #595959;
  --fs-100: 10px;
  --fs-200: 11px;
  --fs-300: 12px;
  --fs-400: 13px;
  --fs-500: 14px;
  --fs-600: 16px;
  --fs-700: 24px;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --ff-secondary: "circular";
}
@media only screen and (min-width: 1400px) {
  :root {
    --fs-100: 12px;
    --fs-200: 13px;
    --fs-300: 14px;
    --fs-400: 15px;
    --fs-500: 16px;
    --fs-600: 18px;
    --fs-700: 26px;
  }
}
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1280px;
  }
}

.fs-100 {
  font-size: var(--fs-100);
}

.fs-200 {
  font-size: var(--fs-200);
}

.fs-300 {
  font-size: var(--fs-300);
}

.fs-400 {
  font-size: var(--fs-400);
}

.fs-500 {
  font-size: var(--fs-500);
}

.fs-600 {
  font-size: var(--fs-600);
}

.fs-700 {
  font-size: var(--fs-700);
}

.text-primary-200 {
  color: var(--clr-primary-200);
}

.text-dark-200 {
  color: var(--clr-dark-200);
}

.text-dark-300 {
  color: var(--clr-dark-300);
}

.text-secondary-400 {
  color: var(--clr-secondary-400);
}

.text-secondary-500 {
  color: var(--clr-secondary-500);
}

.text-secondary-600 {
  color: var(--clr-secondary-600);
}

.bg-secondary-500 {
  background: var(--clr-secondary-500);
}

.fw-400 {
  font-weight: var(--fw-400);
}

.fw-500 {
  font-weight: var(--fw-500);
}

.fw-600 {
  font-weight: var(--fw-600);
}

.fw-700 {
  font-weight: var(--fw-700);
}

.w-max {
  width: max-content;
}

.ff-circular {
  font-family: var(--ff-secondary);
}

.btn-primary {
  color: var(--clr-primary-100);
  border-color: var(--clr-primary-100);
  background: none;

  &:focus,
  &:hover {
    border-color: var(--clr-primary-100);
    background: var(--clr-primary-100);

    img {
      filter: brightness(0) invert(1);
    }
  }
}

.btn-secondary {
  border-color: var(--clr-secondary-100);
  background: none;

  &:focus,
  &:hover {
    background: var(--clr-secondary-100);
    border-color: var(--clr-secondary-100);

    img {
      filter: brightness(0) invert(1);
    }
  }
}
// reset
p {
  margin: 0;
}
// Custom classes
.p-45 {
  padding-top: 1rem!important;
  padding-bottom: 1.875rem!important;
}
@media (min-width: 768px) {
  .p-45 {
    padding-top: 1.875rem!important;
    padding-bottom: 1.875rem!important;
  }
}
@media (max-width: 576px) {
  .p-45 {
    padding-right: 0 !important;
  }
}
// General
body {
  background: var(--clr-secondary-200);
  font-family: proxi;
  font-size: var(--fs-600);
  font-weight: var(--fw-500);
  padding-bottom: 100px;
}

.separator {
  // background: var(--clr-secondary-300);
  // height: 1px;
  width: 100%;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--clr-secondary-300);
}

input[type='checkbox'] {
  cursor: pointer;
}

.btn {
  &:focus {
    outline-color: rgba(87, 163, 229, .35);
    box-shadow: 0 0 0 0.25rem rgba(87, 163, 229, .35);
  }
}

.btn-logout {
  color: rgba(49, 75, 114, 1);

  &:focus {
    outline-color: rgba(49, 75, 114, .25);
    box-shadow: 0 0 0 0.25rem rgba(49, 75, 114, .25);
  }
}

.card {
  letter-spacing: -0.1px;
  border: none;
}

.dropdown-menu {
  width: 100%;
}

.dropdown-toggle::after {
  border: none;
  width: 10px;
  height: 10px;
  background: url("../assets/images/dd-arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
// -----------
.navbar {
  box-shadow: 10px 0 40px 0 rgba(12, 63, 28, 0.06);

  .container {
    gap: 1rem;

    .btn-primary {
      padding-inline: 1.7em;
    }

    .btn-secondary {
      width: 40px;
      height: 40px;
      padding: 0;
      display: grid;
      place-items: center;

      &:focus {
        outline-color: rgba(204, 211, 216, .25);
        box-shadow: 0 0 0 0.25rem rgba(204, 211, 216, .25);
      }
    }
  }
}

.safe-btn {
  padding: 0.45em .9em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}

.cdn-active {
  color: var(--clr-primary-200);

  &::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--clr-primary-200);
    border-radius: 100%;
  }
}

.btn-gradient {
  background: linear-gradient(81.4deg, #59A8E3 -2.9%, #4273F0 100%);
  padding: 0.5em 1.03em;
  border: none;
}

.lock-wrapper {
  background: var(--clr-secondary-50);
  width: 24px;
  height: 24px;
}

.accordion-item {
  border: none;
  margin-top: 1rem;
}

.accordion-button {
  padding: 0;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--clr-dark-300)!important;
}

.accordion-body {
  padding: 0;
  margin-top: 4px;

  .form-switch {
    input {
      width: 52px;
      height: 28px;
      background-image: url("../assets/images/switcher-ball.png") !important;
      background-size: 24px 24px;
      background-color: #F5F9FE;
      border: 2px solid #F5F9FE;
      cursor: pointer;

      &:checked {
        background-color: #F5F9FE;
        outline: none;
        box-shadow: none;
        background-image: url("../assets/images/c-check.svg") !important;
        background-size: 24px 24px;
      }
    }
  }
}

.accordion-button::after {
  background-image: url("../assets/images/accordion-p.png");
  background-size: auto;
  transform: none !important;
  background-position: center;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("../assets/images/accordion-m.png");
}

.checkbox {
  width: 24px;
  height: 24px;

  &:checked {
    background-color: var(--clr-primary-200);
    border-color: var(--clr-primary-200);
    background-image: url("../assets/images/check.svg") !important;
    background-size: auto !important;
    background-position: center;
    box-shadow: none;
  }

  &:focus {
    box-shadow: none;
  }
}

.acbody-label {
  padding: 6px 14px;
  margin-top: 4px;
}

.java-opti {
  .form-check {
    margin-top: 3px;
  }

  .left-col {
    border-bottom: 1px solid var(--clr-secondary-300);
    padding-bottom: 1rem;
    width: 88%;
  }

  .activate-notification {
    background: rgba(70, 123, 239, .1);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 6px;

    p {
      color: var(--clr-primary-300);
      font-size: var(--fs-100);
    }
  }
}

.configuration {
  .card {
    height: 300px;
    padding-top: 5px;

    .card-title {
      margin-top: 40px;
      margin-bottom: 8px;
      line-height: 1;
    }
  }

  .configuration-action {
    margin-top: 17px;

    p {
      color: rgba(84, 156, 231, 0.93);
    }
  }

  .btn-remove {
    &:focus {
      outline-color: rgba(197, 211, 227, 0.93);
      box-shadow: 0 0 0 0.25rem rgba(197, 211, 227, 0.93);
    }

    p {
      color: rgba(197, 211, 227, 0.93);
    }
  }
}
@media (max-width: 992px) and (min-width: 768px) {
  .configuration {
    .card {
      text-align: center;

      .card-title {
        margin-top: 25px;

        p {
          width: min-content;
        }
      }

      .text-secondary-600 {
        padding-inline: 1.5rem;
      }
    }

    .configuration-action {
      margin-top: 12px;
    }
  }
}
@media (min-width: 768px) {
  .configuration {
    .row {
      > div:nth-child(1) {
        padding-right: 12px !important;
      }

      > div:nth-child(2) {
        padding-inline: 12px !important;
      }

      > div:nth-child(3) {
        padding-left: 12px !important;
      }
    }
  }
}

.optimizations {
  .row {
    padding: 0;
    margin: 0;

    > * {
      padding-right: calc(var(--bs-gutter-x) * .4);
    }
  }

  .card {
    padding: 0;
    margin: 0;
    height: 100%;
  }
}
@media (min-width: 768px) {
  .optimizations {
    .row {
      > *:nth-child(3),
      > *:first-child {
        padding-right: 12px !important;
      }

      > *:nth-child(4),
      > *:nth-child(2) {
        padding-left: 12px !important;
      }
    }
  }

  .navbar .container {
    gap: 13.125rem;
  }
}
@media (min-width: 1200px) {
  .optimizations {
    .row {
      > *:nth-child(2) {
        padding-right: 12px !important;
      }

      > *:nth-child(3) {
        padding-left: 12px !important;
      }
    }
  }
}
@media (min-width: 768px) {
  .java-opti {
    .row {
      > div:first-child {
        padding-right: 12px !important;
      }

      > div:last-child {
        padding-left: 12px !important;
      }
    }
  }
}
// New CSS
// -------
// custom element with blue bullet
.bullet-element {
  position: relative;

  p {
    padding-left: 27px;

    &:before {
      content: '';
      position: absolute;
      z-index: 30;
      left: 0;
      top: 5px;
      width: 10px;
      height: 10px;
      background: var(--clr-secondary-300);
      border-radius: 100%;
    }
  }

  p.blue-bullet {
    font-weight: bold;
    &:before {
      background: var(--clr-primary-200);
    }
  }
}

.image-size {
  font-size: 12px;
  color: var(--clr-primary-200);
  line-height: 1;
  background: var(--clr-secondary-500);
  border-radius: 6px;
  padding: 8px 18px;
}

.wpc-slider-text {
  margin-top: 10px;

  > * {
    width: 70px;
  }

  .text-max {
    text-align: right;
  }
}

.action-card {
  padding: 37px 0;
}

.right-col {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
// Popup CSS
.popup {
  display: none;
  position: absolute;
  z-index: 1000;
  top: -135px;
  left: -25px;
  width: 100%;
  padding: 16px;
  border-radius: 3px;
  max-width: 324px;
  background: #5DABF3;
  color: white;
  font-size: 11px;
  box-shadow: 0px 14px 16px 0px rgba(104, 113, 130, 0.2);


  .pop-header {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  p {
    margin-top: 8px;
    margin-bottom: 16px;
    padding-left: 0;

    &:before {
      content: none;
    }
  }

  .active-checkbox {
    background: white;
    color: #5DABF3;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 100px;
    padding: 7px;
    width: max-content;
    line-height: 1;
    font-weight: normal;
    transition: 0.25s;
    border: 1px solid white;
    cursor: pointer;

    &:hover {
      // border: 1px solid white;
      background: #5DABF3;
      color: white;

      img {
        filter: brightness(0) invert(1);
      }
    }
  }

  &::after {
    content: '';
    position: absolute;
    background: url("../assets/images/popup-triangle.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    bottom: -12px;
    left: 16px;
  }
}

.popup h2 {
  font-size: 36px;
  color: #000;
}

.popup a {
  font-size: 16px;
  color: #000;
  text-transform: uppercase;
  -webkit-transition: 0.25s ease;
  transition: 0.25s ease;
}

.popup a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .popup {
    left: -2px;
  }
}

// checkbox animation
input[type='checkbox']{ height: 0; width: 0; position: absolute; pointer-events: none;}

input[type='checkbox'] + label{
  position: relative;
  display: flex;
  align-items: center;
  color: #9e9e9e;
  transition: color 250ms cubic-bezier(.4,.0,.23,1);
}

input[type='checkbox'] + label > span{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid rgba(0,0,0,.25);
  border-radius: .25em;
  cursor: pointer;
  transition: all 250ms cubic-bezier(.4,.0,.23,1);
}

input[type='checkbox'] + label:hover > span, input[type='checkbox']:focus + label > span{
  background: rgba(255,255,255,.1);
}

input[type='checkbox']:checked + label > span{
  border: 12px solid var(--clr-primary-200);
  animation: shrink-bounce 200ms cubic-bezier(.4,.0,.23,1);
}

input[type='checkbox']:checked + label > span:before{
  content: "";
  position: absolute;
  top: .7em;
  left: .55em;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg);
  transform-origin: 0% 100%;
  animation: checkbox-check 125ms 250ms cubic-bezier(.4,.0,.23,1) forwards;

}

@keyframes shrink-bounce{
  0%{
    transform: scale(1);
  }
  33%{
    transform: scale(.85);
  }
  100%{
    transform: scale(1);
  }
}
@keyframes checkbox-check{
  0%{
    width: 0;
    height: 0;
    border-color: white;
    transform: translate3d(0,0,0) rotate(45deg);
  }
  33%{
    width: 4px;
    height: 0;
    transform: translate3d(0,0,0) rotate(45deg);
  }
  100%{
    width: 4px;
    height: 8px;
    border-color: white;
    transform: translate3d(0,-.4em,0) rotate(45deg);
  }
}

.form-check {
  padding-left: 0px;
}

// range slider
.wpc-range-slider {
  width: 100%;
  margin: 0 auto;
  position: relative;
}
#optimizationLevel {
  -webkit-appearance: none;
  width: 100%;
}
#optimizationLevel:focus {
  outline: none;
}
#optimizationLevel::before,
#optimizationLevel::after {
  position: absolute;
  top: 2rem;
  color: #333;
  font-size: 14px;
  line-height: 1;
  padding: 3px 5px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  opacity: 0;
}
#optimizationLevel::before {
  left: 0;
  content: attr(data-min);
}
#optimizationLevel::after {
  right: 0;
  content: attr(data-max);
}
#optimizationLevel::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  animate: 0.2s;
  background: linear-gradient(90deg, #5498F9 var(--range-progress), #E7F4FE var(--range-progress));
  border-radius: 1rem;
}
#optimizationLevel::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 4px solid #5498F9;
  border-radius: 100%;
  background: #fff;
  cursor: pointer;
  height: 20px;
  width: 20px;
  margin-top: -5px;
}
#optimizationLevel_img {
  -webkit-appearance: none;
  width: 100%;
}
#optimizationLevel_img:focus {
  outline: none;
}
#optimizationLevel_img::before,
#optimizationLevel_img::after {
  position: absolute;
  top: 2rem;
  color: #333;
  font-size: 14px;
  line-height: 1;
  padding: 3px 5px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  opacity: 0;
}
#optimizationLevel_img::before {
  left: 0;
  content: attr(data-min);
}
#optimizationLevel_img::after {
  right: 0;
  content: attr(data-max);
}
#optimizationLevel_img::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  animate: 0.2s;
  background: linear-gradient(90deg, #5498F9 var(--range-progress), #E7F4FE var(--range-progress));
  border-radius: 1rem;
}
#optimizationLevel_img::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 4px solid #5498F9;
  border-radius: 100%;
  background: #fff;
  cursor: pointer;
  height: 20px;
  width: 20px;
  margin-top: -5px;
}