@import "../../theme.scss";

.toggle-root-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;

  label {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

.toggle-container {
  display: flex;
  position: relative;
  width: 185px;
  height: 40px;
  background: #f6f6f6;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;

  svg {
    width: 12px;
    height: 12px;
    transition: fill 0.3s ease;
  }

  /* Disabled styles */
  &.toggle-disabled {
    pointer-events: none;

    .toggle-label {
      color: #615d5d;
      svg {
        fill: #615d5d;
      }
    }
  }
}

.toggle-option {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: #333;
  /* Default color */
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  font-size: 12px;
  font-weight: 500;

  &.active {
    color: $secondary;

    svg {
      fill: $secondary;
    }
  }

  svg {
    fill: #333;
  }
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toggle-slider {
  position: absolute;
  top: 10%;
  width: 82px;
  height: 80%;
  background: #ffffff;
  border-radius: 6px;
  transition: left 0.3s ease;
  z-index: 1;
  margin-left: 3px;
  box-shadow: 0px 1px 4px 1px rgba(186, 182, 182, 0.25);
}
