/* 1) Shift the slider “thumb” up */
.super-range::-webkit-slider-thumb {
  /* original rules… */
  margin-top: -6px;
  /* tweak this value until it’s centered */
}

.super-range::-moz-range-thumb {
  margin-top: -6px;
}

.super-range::-ms-thumb {
  margin-top: -6px;
}

/* FANCY RANGE CONTROL 2025 */
.fancy-range-control {
  background: linear-gradient(120deg, #232526 0%, #414345 100%);

  box-shadow: inset 0 0px 16px 0 rgba(0, 0, 0, 0.12), 0 1.5px 6px 0 rgba(0, 0, 0, 0.12);
  padding: 1.2rem 1.5rem;
  position: relative;
  transition: box-shadow 0.3s;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.fancy-range-control:hover {
  box-shadow: inset 0 8px 40px 0 rgba(0, 0, 0, 0.38), 0 2px 8px 0 rgba(0, 0, 0, 0.28);
}

.fancy-range-control label {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px #0008;
}

.fancy-range-control .range-value {
  background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
  color: #232526;
  font-weight: bold;
  border-radius: 1.2em;
  padding: 0.3em 1em;
  font-size: 1.1em;
  box-shadow: 0 2px 8px 0 rgba(252, 182, 159, 0.18);
  transition: background 0.3s, color 0.3s;
  min-width: 48px;
  text-align: center;
  margin-left: 0.5em;
  border: 1.5px solid #fff3;
  animation: pop-in 0.5s cubic-bezier(.68, -0.55, .27, 1.55);
}

@keyframes pop-in {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  80% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Super Fancy Range Input */
.super-range {
  width: 100%;
  accent-color: #ff7e5f;
  background: transparent;
  height: 2.2em;
  margin: 0 1em;
  --track-bg: linear-gradient(90deg, #ff7e5f 0%, #feb47b 100%);
  --track-height: 0.5em;
  --thumb-size: 1.6em;
  /* --thumb-shadow: 0 0 0.5em 0.2em #ff7e5f88, 0 2px 8px #0004; */
  --thumb-bg: linear-gradient(135deg, #fff 60%, #ffecd2 100%);
  --thumb-border: 2.5px solid #ff7e5f;
  /* --thumb-glow: 0 0 0.8em 0.2em #ff7e5f88; */
}

.super-range:focus {
  outline: none;
}

/* Track */
.super-range::-webkit-slider-runnable-track {
  height: var(--track-height);
  background: var(--track-bg);
  border-radius: 1em;
  box-shadow: 0 1px 8px #ff7e5f33;
}

.super-range::-moz-range-track {
  height: var(--track-height);
  background: var(--track-bg);
  border-radius: 1em;
  box-shadow: 0 1px 8px #ff7e5f33;
}

.super-range::-ms-fill-lower,
.super-range::-ms-fill-upper {
  background: var(--track-bg);
  border-radius: 1em;
}

/* Thumb */
.super-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: var(--thumb-bg);
  border: var(--thumb-border);
  box-shadow: var(--thumb-shadow), var(--thumb-glow);
  transition: box-shadow 0.2s, border 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.super-range:focus::-webkit-slider-thumb {
  /* box-shadow: 0 0 0.8em 0.3em #feb47b99, 0 2px 8px #0004; */
  /* border-color: #feb47b; */
}

.super-range::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: var(--thumb-bg);
  border: var(--thumb-border);
  box-shadow: var(--thumb-shadow), var(--thumb-glow);
  transition: box-shadow 0.2s, border 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.super-range:focus::-moz-range-thumb {
  /* box-shadow: 0 0 0.8em 0.3em #feb47b99, 0 2px 8px #0004;
  border-color: #feb47b; */
}

.super-range::-ms-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: var(--thumb-bg);
  border: var(--thumb-border);
  box-shadow: var(--thumb-shadow), var(--thumb-glow);
  transition: box-shadow 0.2s, border 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.super-range:focus::-ms-thumb {
  box-shadow: 0 0 0.8em 0.3em #feb47b99, 0 2px 8px #0004;
  border-color: #feb47b;
}

/* Remove default outline and background */
.super-range::-ms-tooltip {
  display: none;
}

.super-range:focus {
  outline: none;
}

/* Hide ugly number input arrows in Chrome/Safari */
input[type=range].super-range::-webkit-outer-spin-button,
input[type=range].super-range::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.range-value {
  min-width: 10% !important;
}

.fancy-range-control label {
  min-width: 15%
}

.range-bubble {
  display: none !important
}

/* Responsive */
@media (max-width: 600px) {
  .fancy-range-control {
    padding: 0.7rem 0.5rem;
    font-size: 0.95em;
  }

  .super-range {
    --thumb-size: 1.1em;
  }
}

/*Container*/



/*-----------------------------------------------------------
  Style for the container element (wrapper)
-----------------------------------------------------------*/
.input-values.add-element__wrapper {
  background: linear-gradient(135deg, #ece9e6, #f5f5f5);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  max-width: 400px;
  margin: 2rem auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/*-----------------------------------------------------------
  Style for the helper part (dropdown control)
-----------------------------------------------------------*/
.input-values.add-element__wrapper .helper-part {
  margin-bottom: 1rem;
}

.input-values.add-element__wrapper .helper-part label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  display: block;
  margin-bottom: 0.5rem;
}

.input-values.add-element__wrapper .helper-part select {
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  /* remove default arrow styling if desired; note that
     appearance can be vendor prefixed */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/*-----------------------------------------------------------
  Style for the "Add to Wall" button
-----------------------------------------------------------*/
.input-values.add-element__wrapper .add-to-wall button {
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: block;
  width: 100%;
  margin-top: 1rem;
}

.input-values.add-element__wrapper .add-to-wall button:hover,
.show-element__button:hover {
  background: linear-gradient(90deg, #feb47b, #ff7e5f);
  transform: translateY(-2px);
}

.input-values.add-element__wrapper .add-to-wall button:active {
  transform: translateY(0);
}

.show-element__button {
  background: linear-gradient(135deg, #ff7e5f 60%, #ffecd2 100%);
  color: #232526;
  font-weight: bold;
  border: none;
  border-radius: 1.2em;
  padding: 0.5em 1em;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  cursor: pointer;
}

.show-element__button:hover {
  background: linear-gradient(90deg, #feb47b, #ff7e5f);
  transform: translateY(-2px);
}

.disabled {
  background: linear-gradient(90deg, gray, gray);
  filter: grayscale(1);
  opacity: 0.5;
  transform: translateY(0px) !important;
}

.disabled:hover {
  background: linear-gradient(90deg, gray, gray);
}

#wall-position-select {
  width: 100%;
  background-color: #353738;
}


/* 
  Styles for the "add-element__wrapper" control.
  These rules add a gradient background, spacing, and
  a modern look to the label, select and button elements.
*/
.add-element__wrapper {
  /* Use a gradient background similar to the fancy range control */
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  padding: 1.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.12), 0 1.5px 6px rgba(0, 0, 0, 0.12);

  color: #fff;
  /* Ensure child elements stack vertically with a gap */
  display: flex;
  gap: 1rem;
  flex-direction: row;
  justify-content: space-between;
}

.add-element__wrapper:hover {
  /* Use a gradient background similar to the fancy range control */
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  /* padding: 1.5rem; */
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.48), 0 1.5px 6px rgba(0, 0, 0, 0.68);

  color: #fff;
  /* Ensure child elements stack vertically with a gap */
  display: flex;
  gap: 1rem;
  flex-direction: row;
  justify-content: space-between;
}

.add-element__wrapper .helper-part {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-element__wrapper .helper-part label {
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.add-element__wrapper .helper-part select {
  background: transparent;
  color: #fff;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.4rem;
  outline: none;
  /* Hide default arrow in IE */
  -ms-appearance: none;
  /* Hide default arrow in most browsers */
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

.add-element__wrapper .add-to-wall {
  display: flex;
  justify-content: flex-end;
}

.add-element__wrapper .add-to-wall button {
  background: linear-gradient(135deg, #ff7e5f 60%, #ffecd2 100%);
  color: #232526;
  font-weight: bold;
  border: none;
  border-radius: 1.2em;
  padding: 0.5em 1em;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  cursor: pointer;
}



.add-element__wrapper .add-to-wall button:hover {
  background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Optional: Make the select element’s focus state more visible */
.add-element__wrapper .helper-part select:focus {
  border-color: #ff7e5f;
  box-shadow: 0 0 4px rgba(255, 126, 95, 0.6);
}

.add-button button,
.add-to-wall-button button,
.add-to-wall button {
  width: max-content;
  white-space: no-wrap !important;
}

.helper-part {
  width: 100%;
  margin-right: 10px;
}

button#add-to-wall-button {
  white-space: nowrap;
}

#wall-position-select {
  width: 100%;
}

.add-element__element-name {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

</style><style>.secondary-side-menu__container {
  height: 100vh;
  position: absolute;
  /* width:20vw; */
  overflow: auto;

}

@media screen and (max-width:992px) {
  .secondary-side-menu__container {
    height: min-content;
    width: 100vw;
  }
}

button.show-element__button.active {
  background: linear-gradient(135deg, #97ff5f 60%, #d5ffd2 100%);

}

button.show-element__button.active:hover {
  background: linear-gradient(90deg, #d2ffdc 0%, #9ffca1 100%);
}

button.show-element__button.active.mute {
  background: linear-gradient(90deg, #d2e7ff 0%, #9fcafc 100%);
}

button#add-door-button {
  white-space: nowrap;
}

button.remove-element {
  background: linear-gradient(135deg, #fd471b 60%, #ff7474 100%);
  color: #232526;
  font-weight: bold;
  border: none;
  border-radius: 1.2em;
  padding: 0.5em 1em;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  cursor: pointer;
  margin-bottom: 10px;

  margin-left: 10px;
}

.secondary-side-menu .fancy-range-control {
  display: flex;
  flex-direction: column;
}

.secondary-side-menu .fancy-range-control>* {
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important
}

</style><style>.scrollbar::-webkit-scrollbar {
  width: 14px;
}

.scrollbar::-webkit-scrollbar-track {
  background: #2B2B2B;
  border-radius: 0px;
}

.scrollbar::-webkit-scrollbar-thumb {
  background: #797979;
  border-radius: 0px;
  border: 0px solid #555777;
}

/* Estilos para Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #797979 #2B2B2B;
}

/* .side-menu{
    background-color:#343637;
  }
  .secondary-side-menu__container{
    background: linear-gradient(120deg, #232526ee 0%, #414345aa 100%);
  } */

.add-entity {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
}

.add-entity__entity-name {
  color: white;
  display: flex;
  font-size: 1.1rem;
  font-weight: 600;
  align-items: center;
}


.add-entity {
  /* Use a gradient background similar to the fancy range control */
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.12), 0 1.5px 6px rgba(0, 0, 0, 0.12);
  color: #fff;
  gap: 1rem;
  padding: 1.5rem;
  display: grid;
  /* flex-direction: row;
  justify-content: space-between; */
}

.add-entity:hover {
  /* Use a gradient background similar to the fancy range control */
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  /* padding: 1.5rem; */
  /* border: 1.5px solid rgba(255,255,255,0.08); */
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.48), 0 1.5px 6px rgba(0, 0, 0, 0.68);
  /* gap:1rem;
  color: #fff; */
  /* Ensure child elements stack vertically with a gap */
  /* display: flex; */
  /* flex-direction: row;
  justify-content: space-between; */
}


.add-entity__button {
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: block;

}

.add-entity__button:hover {
  background: linear-gradient(90deg, #feb47b, #ff7e5f);
  transform: translateY(-2px);
}

.add-entity__button:active {
  transform: translateY(0);
}


.entity-primary {
  /* Use a gradient background similar to the fancy range control */
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.12), 0 1.5px 6px rgba(0, 0, 0, 0.12);
  color: #fff;
  padding: 1.5rem;
  gap: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.entity-primary:hover {
  /* Use a gradient background similar to the fancy range control */
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  padding: 1.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.48), 0 1.5px 6px rgba(0, 0, 0, 0.68);
  gap: 1rem;
  color: #fff;
  /* Ensure child elements stack vertically with a gap */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}



.entity-primary__entity-primary-name {
  color: white;
  display: flex;
  font-size: 1.1rem;
  font-weight: 600;
  align-items: center;
}

.entity-primary__entity-primary-name {
  color: white;
  display: flex;
  font-size: 1.1rem;
  font-weight: 600;
  align-items: center;
}

.primary-controller__toggle-button {}

.primary-controller__hide-button {
  display: none !important
}

.primary-controller__remove-button {
  display: none !important
}

.primary-controller__show-button {
  display: none !important
}



.primary-controller__toggle-button,
.primary-controller__toggle-button {
  background: linear-gradient(90deg, #d4fe7b, #97ff5f);
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: block;

}

.primary-controller__toggle-button:hover {
  background: linear-gradient(90deg, #d4fe7b, #97ff5f);
  transform: translateY(-2px);
}

.primary-controller__toggle-button.active {
  background: linear-gradient(90deg, #7ccfeb, #5abfeb);
}

.primary-controller__toggle-button.active:hover {
  background: linear-gradient(90deg, #89dbee, #53c3e1);
  transform: translateY(-2px);
}

.add-entity {
  display: grid !important
}

.add-entity {
  display: grid;
  grid-template-columns: 1fr auto;

  gap: 10px;
  /* Adjust spacing as needed */
}

.add-entity__entity-name {
  grid-column: 1;
  grid-row: 1;
}

.add-entity__button {
  grid-column: 2;
  grid-row: 1;
}

.add-entity__wall-selector {
  grid-column: 1 / -1;
  /* Spans from first column to last column */
  grid-row: 2;
}


.add-entity__wall-select {
  width: 100%;
  background-color: #353738;

}

.add-entity__wall-select {
  /* background: transparent; */
  color: #fff;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.4rem;
  outline: none;
  -ms-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

.add-entity__wall-select select:focus {
  border-color: #ff7e5f;
  box-shadow: 0 0 4px rgba(255, 126, 95, 0.6);
}

.add-entity__wall-selector {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
  align-items: center !important;
}

.add-entity__wall-selector__label {
  font-size: 1.1rem !important;
  color: #fff;
}

.entity-control__remove-button {
  background: linear-gradient(90deg, #fd471b, #fe675b) !important;
  /* width:100%; */

  margin-top: 12px;
  border-radius: 4px;
  border:0px; 
}

.entity-control__remove-button:hover {
  background: linear-gradient(90deg, #ff562b, #ff7167) !important;

}

.greek-vars {
  display: none !important;
}

@media screen and (max-width:992px) {

  .secondary-container {
    inset: 0 !important;
    overflow: scroll;
    max-height: 200px !important;
    transform: translate(20px, 0px);
  }

}

.secondary-controls .fancy-range-control {
  flex-wrap: wrap;
  padding-left: 0px !important;
}

.secondary-controls .fancy-range-control .form-label {
  flex-basis: 100% !important;
  margin-left: 0.5em;
}

.secondary-controls .fancy-range-control .super-range {
  flex-basis: 60% !important;

}

.secondary-controls .fancy-range-control .range-value {
  flex-grow: 1 !important;
  width: 60px !important;
}

.main-container .range-value {
  min-width: 60px !important;
  margin-left: 0 !important
}

.range-input-value {
  flex-grow: 1 !important;
  width: 80px !important;
  min-width: 80px !important;


  background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
  color: #232526;
  font-weight: bold;
  border-radius: 1.2em;
  padding-top: 0.3em;
  padding-bottom: 0.3em;
  padding-right: 0.15em;
  font-size: 1.1em;
  box-shadow: 0 2px 8px 0 rgba(252, 182, 159, 0.18);
  transition: background 0.3s, color 0.3s;

  text-align: center;

  border: 1.5px solid #fff3;
  animation: pop-in 0.5s cubic-bezier(.68, -0.55, .27, 1.55);

}

.range-value {
  display: none !important
}

@media (min-width:992px) {
  .disclaimer-container {
    top: auto !important;
    /* Reset the top positioning */
    bottom: 20px !important;


  }
}

@media (max-width:992px) {

  [data-sort-order="9000"] .add-element__wrapper {
    padding-bottom: 140px !important
  }
}
@media (max-width:992px) {
#shadowButtonContainer{
  top:8px !important
}
}

@media (max-width:992px) {
.fancy-range-control:first-of-type {
padding-top:32px !important;
}
}