.hidden,
.hidden * {
  pointer-events: none;
  visibility: hidden;
}

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: sans-serif;
}

.rnMotherBoard {

  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  /* z-index: -2; */
}

/** css for bgr toolset*/
.bgr-tool-set-zig4Ee {

  position: absolute;
  background-color: var(--mine-shaft);
  mix-blend-mode: normal;
  border-radius: 6px;
  top: 10px;
  left: 50%; /* center of canvas-area */
  transform: translateX(-50%); /* shift toolbar to align center */
  display: flex;
  padding: 6px;
  gap: 6px;
  z-index: 6;

}


.rnButton {
  background-color: transparent;
  border: none;
  stroke: rgba(255, 255, 255, 1);
  color: rgba(255, 255, 255, 1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: normal;  
}
.rnButton:hover {
  background: rgba(0, 194, 255, 0.7);
  stroke: rgba(255, 255, 255, 1);
  color: rgba(255, 255, 255, 1);
  mix-blend-mode: normal;
  border-radius: 4px;
}
.rnButton.active,
.rnButton:active {
  /*stroke:rgba(0, 194, 255, 1);*/
  stroke: rgba(0, 194, 255, 1);
  color: rgba(0, 194, 255, 1);
  background-color: transparent;
  mix-blend-mode: normal;
}

.toolsetIcons {
  background-color: transparent;
  height: 36px;
  width: 36px;
  mix-blend-mode: normal;
  cursor: pointer;
}


.rnButtonGroup {
  display: flex;
  flex-direction: row; /* This is actually default for flex, but adding it is explicit */
}

.rnButtonGroup {
  display: flex;
  gap: 4px; /* spacing between buttons */
}

/* For horizontal groups (side-by-side buttons) */
.row-group {
  flex-direction: row;
}

/* For vertical groups (stacked buttons) */
.column-group {
  flex-direction: column;
}

.content-area {
  display: flex;
  flex: 1;
}


.rnProgressBar {
  display: flex;
  flex-direction: column; /* stack text and progress bar vertically */
  align-items: flex-end;   /* align content to right edge */
  /* justify-content: center; */
  justify-content: flex-start;  
  margin-right: 8px;      /* space from the right edge */
  /* min-width: 50px;    */
  width: 122px;                /* Fixed width for progress area */
  max-width: 100%;             /* Prevent overflow */
}

.rnProgressBar #rnProgText {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: rgb(112, 116, 121);
  /* margin-bottom: 4px; */
  text-align: left;
  border: none;
  padding-bottom: 2px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
  width: 100%;                 /* Match width of progress bar */
  /* min-width: 50px;        */
}

.rnProgressBar .w3-light-grey {
  /* background-color: #ccc; */
  background-color: #FFF0E6;
  border-radius: 4px;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: none;
  /* padding-top: 4px; */
}

.rnProgressBar #rnBar {
  /* background-color: rgb(240, 157, 4); */
  /* background-color: #CC5500;  */
  /* background-color: #FF852E;  */
  background-color: #FFA05C;
  
  height: 100%;
  width: 0%; /* will be updated dynamically via JS */
  transition: width 0.3s ease;
  border: none;
  /* padding-top: 4px; */
}


.left-vt-bar-zig4Ee {
  /* background-color: var(--mine-shaft);
  height: 95%;
  left: 0px;
  mix-blend-mode: normal;
  position: absolute;
  z-index: 6; 
  top: 5%;
  width: 3%; */

  background-color: var(--mine-shaft);
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 1px;
  /* gap: 10px; */

}

.top-hz-bar-zig4Ee {
  background-color: #1e1e1e;
  height: 44px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1px;
  color: white;
}

.rupitrnwindowscreen {
  position: absolute;
   /* outline: #ff0000bd 2px solid; */
  background-color: #ffffff;
  height: 100%; /*904px;*/
  width: 100%; /*1920px;*/
  left: 0px;/*46px; /*2%; /*44px;*/
  top: 0px;/*44px; /*4%; /*44px;*/
  mix-blend-mode: normal;
  /*overflow: hidden;
  overflow-x: hidden;
  visibility: hidden;
  position: relative;*/
  z-index: -1;
  /* pointer-events: none; */
  
}

.rn-canvas-area {
      display: flex;
      flex: 1;
      position: relative;
  
}


.rnCanvases {
  /* position: absolute;
  width: 48.5%;
  height: 95%; 
  left: 3%;
  top: 5%;
  z-index: 0;
  background-color: #ffffff;  */
  /* pointer-events: none; */
  position: relative; /* Needed to anchor absolute canvases */
  flex: 1;
  border: 1px solid #ddd;
}

.rnRightCanvases {
  /* position: absolute;
  width: 48.5%;
  height: 95%; 
  left: 51.5%;
  top: 5%;
  z-index: 0;
  background-color: #ffffff;  */
  /*background-color: #525252;*/
  /*pointer-events: none;*/
  position: relative; /* Needed to anchor absolute canvases */
  flex: 1;
  border: 1px solid #ddd;
}
#rnOutputCanvas {
  /* position: absolute;
  width: 100%;
  height: 100%;
  left: 0%;
  top: 0%; 
  z-index: 0; */
  /* outline: #ff00ddbb 2px solid; */
  /* background-color: #fafafa00; */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  /*background-color: #525252;*/
}


#rnImgCanvas {
  /* position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #fafafa00;  */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  image-rendering: pixelated;
  pointer-events: none;
}

#rnContrCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #fafafa00;  /* Debug colors #00ff0d93;  #fafafa00;*/
  pointer-events: none; /* https://stackoverflow.com/questions/39821340/how-do-i-register-a-click-event-on-the-bottom-canvas-of-two-layered-canvases */
  /*background-color: #525252;/*transparent;*/
}


#rnSplineCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: #fafafa00;
  pointer-events: none; /*  https://stackoverflow.com/questions/39821340/how-do-i-register-a-click-event-on-the-bottom-canvas-of-two-layered-canvases */
  /*background-color: #525252;/*transparent;*/
}

#rnMarkingCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background-color: #fafafa00;
  /*pointer-events: none;*/ /*  https://stackoverflow.com/questions/39821340/how-do-i-register-a-click-event-on-the-bottom-canvas-of-two-layered-canvases */
  /*background-color: #525252;/*transparent;*/
}




/* Circular Toolbar Container */
#circularToolbar {
  position: absolute;
  width: 200px; /* Diameter of the circle */
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.0);
  display: none;
  z-index: 1000;
}

/* Toolbar Icons */
.toolbar-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background: grey;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toolbar-icon.finish {
  background: rgb(97, 97, 97);
}

.toolbar-icon.close {
  background: rgb(97, 97, 97);
}

.toolbar-icon.eraser {
  background: rgb(97, 97, 97);
}



/**Adding Custom Bgr Marker Mouse Pointer*/
/*body{
  cursor: none;
}*/

.customPointerRounded{
  position: absolute;
  width: 30px;
  height: 30px;
  left: 0%;/*3%;/*3%; 44px;*/
  top: 0%;/*5%;/*5%; 44px;*/
  z-index: 7;
  border: 2px solid rgb(33, 255, 152);
  border-radius: 50%;
  visibility: hidden;     /**This property is changed through js to hide or show the custom cursor*/
  pointer-events: none;
}


:root {
  --eerie-black: rgba(30, 30, 30, 1);
  --mine-shaft: rgba(51, 51, 51, 1);
}


/* Mobile Layout Adjustments */
@media (max-width: 768px) {
  .content-area {
    flex-direction: column;
  }

  .left-vt-bar-zig4Ee {
    flex-direction: row;
    width: 100%;
    height: 44px;
    /* justify-content: space-around; */
  }

  .column-group {
    flex-direction: row;
  }

  .rn-canvas-area {
    flex-direction: column;
  }


  /* .rnCanvases, .rnRightCanvases {
    width: 100%;
    height: 50%;
  } */
}
