/** Form input reset **/
[type='text'],
[type='email'],
[type='url'],
[type='password'],
[type='number'],
[type='date'],
[type='datetime-local'],
[type='month'],
[type='search'],
[type='tel'],
[type='time'],
[type='week'],
[multiple],
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  border-radius: 0px;
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-shadow: 0 0 #0000;
}

.dxp-radio-input,
.dxp-checkbox-input {
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
  --tw-shadow: 0 0 #0000;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-origin: border-box;
  border-width: 1px;
  display: inline-block;
  flex-shrink: 0;
  padding: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.dxp-radio-input {
  border-radius: 100%;
}

.dxp-radio-input:focus,
.dxp-checkbox-input:focus {
  --tw-ring-offset-width: 2px;
}

.dxp-checkbox-input:checked {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");
}

.dxp-radio-input:checked {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E");
}

.dxp-radio-input:checked,
.dxp-checkbox-input:checked {
  background-color: currentColor;
}
*,
::after,
::before {
  border: 0 solid #e5e7eb;
  box-sizing: border-box;
}

.dxp-input__input-wrapper {
  display: flex;
  align-items: center;
}

select {
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Toggle switch container */
.toggle-container {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

/* The toggle switch itself */
.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider (the visual part of the toggle) */
.toggle-slider {
  width: 40px; /* Adjust the width as needed */
  height: 20px; /* Adjust the height as needed */
  background-color: #ccc; /* Default background color */
  border-radius: 20px; /* Round slider (half of height) */
  position: relative;
  transition: background-color 0.4s;
}

/* Rounded sliders (for visual effect) */
.toggle-slider:before {
  content: "";
  height: 16px; /* Height of the slider circle */
  width: 16px; /* Width of the slider circle */
  background-color: white;
  border-radius: 50%; /* Circle shape */
  position: absolute;
  top: 50%; /* Center the circle vertically */
  left: 2px; /* Initial position of the circle */
  transform: translateY(-50%) translateX(0); /* Center the circle vertically and keep it inside the slider */
  transition: transform 0.4s;
}

/* Change background color when the toggle is on */
.toggle-input:checked + .toggle-slider {
  background-color: #2196F3; /* Toggle is on (blue color) */
}

/* Move the slider circle when the toggle is on */
.toggle-input:checked + .toggle-slider:before {
  transform: translateY(-50%) translateX(20px); /* Move circle to the right while keeping it centered vertically */
}
