/* dark theming start */

.dark-theme{
  .theme-switch {
    &::before {
      background: #272B30;
    }
  }
}

/* dark theming end */

/* When Half Expand start */

.half-expand {
  .theme-switch {
    .switch-field {
      justify-content: center;

      label {
        width: 34px;
        height: 34px;
        justify-content: center;
        p {
          display: none;
        }
      }
    }
  }
}

/* When Half Expand start*/



.theme-switch {
  height: 10%;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  position: relative;

  &::before {
    content: "";
    width: 80%;
    height: 2px;
    border-radius: 10px;
    background: #fcfcfc;
    margin-right: 10px;
    position: absolute;
    top: 5px;
  }

  .switch-field {
    overflow: hidden;
    display: flex;
    align-items: center;
    background: $ot-bg-secondary;
    padding: 10px;
    border-radius: 2rem;

    input {
      display: none;
    }

    label {
      display: flex;
      align-items: center;
      gap: 8px;
      background-color: transparent;
      color: #333;
      font-size: 1em;
      font-weight: normal;
      text-align: center;
      text-shadow: none;
      padding: 0.5em 1em;
      -webkit-transition: all 0.1s ease-in-out;
      -moz-transition: all 0.1s ease-in-out;
      -ms-transition: all 0.1s ease-in-out;
      -o-transition: all 0.1s ease-in-out;
      transition: all 0.1s ease-in-out;
      border-radius: 2rem;
      cursor: pointer;
      color: $ot-text-primary;

      p {
        margin: 0;
        font-weight: 600;
      }
    }

    &:hover {
      cursor: pointer;
    }

    input:checked + label {
      background: linear-gradient(90deg, #0f6aff 0%, #21c6fb 100%);
      box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.04);
      border-radius: 50px;
      p {
        color: #fff;
      }
    }
  }
}

.dark-theme{
  .theme-switch {
    .switch-field{
      background-color: $ot-bg-primary;
    }
  }
}