.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: sans-serif;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 25px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch2 {
  position: relative;
  display: inline-block;
  width: 85px;
  height: 25px;
}

.toggle-switch2 input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 9999px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: background-color 0.4s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 6px;
  top: 4px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}

/* When checked */
.toggle-switch input:checked + .slider {
  background-color: #6ABFA1;
  /* Emerald green */
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(42px);
}

.toggle-switch2 input:checked + .slider {
  background-color: #6ABFA1;
  /* Emerald green */
}

.toggle-switch2 input:checked + .slider::before {
  transform: translateX(62px);
}

.toggle-text {
  font-size: 11px;
  font-weight: 700;
  color: #888;
}

.toggle-switch input:checked ~ .toggle-text .off {
  display: none;
}

.toggle-switch input:not(:checked) ~ .toggle-text .on {
  display: none;
}

.toggle-switch2 input:checked ~ .toggle-text .off {
  display: none;
}

.toggle-switch2 input:not(:checked) ~ .toggle-text .on {
  display: none;
}

.toggle-text span {
  display: inline-block;
  min-width: 35px;
  text-align: center;
  color: black;
  position: absolute;
  top: 9%;
  right: 23%;
  font-weight: 600;
  cursor: pointer;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 69px;
  height: 25px;
}

.toggle-switch2 {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 25px;
}
.toggle-text span {
  display: inline-block;
  min-width: 35px;
  text-align: center;
  color: black;
  position: absolute;
  top: 20%;
  right: 24%;
  font-weight: 600;
  cursor: pointer;
}

.custom-radio-group {
  margin-bottom: 20px;
}

.custom-radio {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  user-select: none;
}

.custom-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-btn {
  position: absolute;
  left: 0;
  top: 3px;
  height: 18px;
  width: 18px;
  background-color: white;
  border: 2px solid #ccc;
  border-radius: 50%;
  transition: 0.2s;
}

.custom-radio input:checked ~ .radio-btn {
  border-color: #facc15;
  /* yellow-400 */
  background-color: #fef9c3;
}

.custom-radio input:checked ~ .radio-btn::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #facc15;
}

.label-text {
  margin-left: 6px;
}


@keyframes pulseShadow {
  0% {
    box-shadow: 0 0 0px rgba(0, 255, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
  }
  100% {
    box-shadow: 0 0 0px rgba(0, 255, 0, 0.3);
  }
}

.model-shadow {
  animation: pulseShadow 1.5s infinite ease-in-out;
  transition: all 0.3s ease;
}


.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

label {
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  /* padding-left: 1rem; */
  margin-top: -4px;
}

.range-wrapper {
  position: relative;
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem 1.5rem 1rem;
}

.range-label-wrapper {
  position: absolute;
  top: -5px;
  left: 0;
}

.range-label {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 14px;
  font-weight: 600;
  color: #000000d6;
  background-color: #8debb0;

  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid #4b5563;
}

.custom-range {
  width: 100%;
  height: 4px;
  background-color: #bbf7d0;

  border-radius: 0.5rem;
  cursor: pointer;
  appearance: none;
}

.custom-range::-webkit-slider-thumb {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  background-color: #8ed7a8;

  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  position: relative;
}

.custom-range::-moz-range-thumb {
  width: 1.2rem;
  height: 1.2rem;
  background-color: #8ed7a8;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.add-to-dashboard-button{
      display: flex;
      justify-content: end;
}

.text-width {
  width: 80%;
}

.show {
  display: block;
  transform: scale(1);
  transition: all 0.5s ease-in-out;
}

.hidden-box {
  display: none;
  transform: scale(0.9);
  transition: all 0.5s ease-in-out;
}

.bg-disabled {
  background-color: #9f9f9f99 !important;
}
.button-width {
  width: 162px !important;
}