@use "../abstracts/variables" as *;
@use "../abstracts/mixins" as *;

.distance-text-wrapper,
.zone-name-wrapper,
.pointer-none {
  pointer-events: auto !important;
  background-color: gray;
}

.zone-name-wrapper {
  background: var(--background-color-accent);
  color: var(--text-button-color);
  outline: 1px solid var(--border-color);
  border-radius: #{$border-radius-medium};
  backdrop-filter: blur(12px);
}

.distance-text {
  pointer-events: none !important;

  div {
    position: absolute;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none !important;
    white-space: nowrap;
    // style
    font-size: var(--font-size-large);
    padding: 2px 8px;
    background: var(--background-color-accent);
    color: var(--text-button-color);
    border-radius: #{$border-radius-medium};
    box-shadow: var(--box-shadow-light);
  }

  .area {
    background: #008cff;
  }
}

.zone-name {
  padding: 2px 10px;
  text-wrap: nowrap;
  color: var(--text-button-color);
}

//
//
//
//
// ------------------------------- temp -----------------------------
.select-floorplane-wrapper {
  position: absolute;
  @include flex-center;
  gap: 12px;
  top: 0;
  left: 50%;
  padding: 8px;
  padding-left: 14px;
  background: var(--background-color);
  backdrop-filter: blur(12px);
  border-radius: #{$border-radius-large};
  outline: 1px solid var(--border-color);
  transform: translate(-50%, 12px);
  z-index: 2;

  .presets-container {
    @include flex-center;
    gap: 6px;

    .preset {
      background: var(--background-color);
      padding: 2px 8px;
      border-radius: #{$border-radius-large};
      outline: 1px solid var(--border-color);
    }
    .upload-btn {
      padding: 4px 16px !important;
    }
    .generate-walls-btn {
      padding: 4px 16px;
      @include flex-center;
      gap: 4px;
      color: var(--text-button-color);
      background: var(--background-color-button);
      border-radius: #{$border-radius-extra-large};
    }
    .active {
      background: var(--background-color-accent);
      color: var(--text-button-color);
    }
  }
}

.label-toogler {
  position: fixed;
  bottom: 4%;
  right: 1.5%;
  z-index: 10;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  .input-toggle-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 12px;

    .check-box {
      width: 35px;
      height: 20px;

      .check-box-style {
        width: 16px;
        height: 16px;
        background: var(--text-button-color) !important;
      }
    }
  }
}
.label-toogler.bottom {
  bottom: 32%;
}

.scene-performance-stats {
  bottom: 36px !important;
  left: 12px !important;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  svg {
    display: none;
  }
  .c-jiwtRJ{
    align-items: center;
  }
}

.stats{
  top: auto !important;
  bottom: 36px !important;
  left: 12px !important;
  border-radius: 6px;
  overflow: hidden;
}
