html,
body,
#root {
  height: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* === General Styles === */
body {
  background-color: #fafdff !important;
}
@font-face {
  font-family: "PowerGrotesk";
  src: url(fonts/PowerGrotesk-Regular.b052d3329dc6f87ae610.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base scrollbar setup (hidden by default) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: transparent;
  transition: background-color 0.3s ease;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:vertical,
::-webkit-scrollbar-thumb:horizontal {
  transition: background-color 0.3s ease-in-out;
}

/* Show scrollbars on hover */
*:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.32);
}

/* Firefox scrollbars hidden by default */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* Show Firefox scrollbars on hover */
*:hover {
  scrollbar-color: rgba(0, 0, 0, 0.32) transparent;
}

/* ===== TOUCH DEVICE LOGIC ===== */
@media (hover: none) and (pointer: coarse) {
  /* Always show scrollbars on touch devices */
  ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.32);
  }

  * {
    scrollbar-color: rgba(0, 0, 0, 0.32) transparent;
  }
}

/* ===== Optional smoothness for both directions ===== */
.scrollable {
  overflow: auto; /* enables both vertical and horizontal */
  -webkit-overflow-scrolling: touch; /* smooth on iOS */
  overscroll-behavior: contain;
}
/* tooltipAnimations.css */
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(0);
  }
}

.shake-tooltip {
  animation: shake 0.6s ease-in-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.tree-menu-new {
  padding: 12px 16px;
}

.tree-node {
  position: relative;
  margin-bottom: 8px; /* Increased spacing to prevent white box overlap */
}

.tree-node-content {
  position: relative;
  display: flex;
  align-items: center;
}

/* Connection Lines - Only rounded corners */
.connection-container {
  position: absolute;
  top: 16px; /* Center of button height (32px/2) */
  width: 32px;
  height: 1px;
}

.vertical-line {
  position: absolute;
  left: 0;
  top: -30px; /* Adjusted for 8px spacing */
  width: 1px;
  bottom: 0px;
  border-left: 1px dashed #3192d0;
}

.corner-line {
  position: absolute;
  left: 0;
  top: 0px;
  width: 16px;
  height: 8px;
  border-left: 1px dashed #3192d0;
  border-bottom: 1px dashed #3192d0;
  border-bottom-left-radius: 12px;
  background: none;
}

.corner-line:not(.last)::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0px;
  bottom: 0;
  width: 1px;
  /* Dynamic height based on total expanded children count */
  height: var(--connection-height, 39px);
  border-left: 1px dashed #3192d0;
  /* Smooth transition for height changes when nodes expand/collapse */
  transition: height 0.3s ease;
}

/* Button Styles */
.tree-node-button {
  position: relative;
  z-index: 10;
  margin-right: 12px;
}

.expand-button {
  width: 28px;
  height: 28px;
  border: 1px solid #919eab52;
  border-radius: 500px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #637381;
  transition: all 0.2s ease;
}

.leaf-button {
  width: 28px;
  height: 28px;
  border: 1px solid #919eab52;
  border-radius: 500px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #999;
}

/* Content Card */
.tree-node-info {
  flex: 1;
  display: flex;
  align-items: flex-start;
  background: transparent; /* Default transparent background */
  border-radius: 12px;
  padding: 6px 8px;
  min-height: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
}

.tree-node-info.active {
  background: #ffffff !important;
  flex: 1;
  min-width: 0; /* White background for active/selected node */
}

.tree-node-info.active .tree-node-label {
  color: #161c24 !important; /* Dark text on white background */
  font-weight: 500;
}

.tree-node-content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tree-node-label {
  color: #161c24;
  font-weight: 400;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.tree-node-progress {
  width: 100%;
}

.progress-text {
  font-size: 13px;
  color: #666;
  font-weight: 600;
  min-width: 35px;
  text-align: right;
}

/* Children Container */
.tree-children {
  position: relative;
  /* Smooth animation when children are shown/hidden */
  transition: all 0.3s ease;

  /* CSS custom properties that can be set from JavaScript for dynamic height calculations */
  --child-height: 60px; /* Adjusted for 8px spacing to prevent overlap */
  --base-height: 8px;
  --expanded-children-count: 0;
}

/* Continuing vertical lines for expanded nodes */
.continuing-vertical-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: red;
}

/* Animation */
.tree-children {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/*# sourceMappingURL=main.7ef2a85c87dd0e178937.css.map*/