* {
    font-size: 62.5%;
    padding: 0;
    font-family: 'Pretendard GOV Variable', sans-serif;
}

.wrap {
    overflow: auto;
    position: relative;
    border: 1px solid;
    width: 92.5vw;
    height: 92.5vh;
}

.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 커스텀 토글 스위치 스타일 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 2rem;
    top: 8.4rem;
}
.checkbox-group p {
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: #007bff;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* 체크박스 그룹 스타일 업데이트 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group label {
    margin-left: 0;
    vertical-align: middle;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 5px;
}
.tree,
.tree ul {
    list-style: none;
}

.tree  {
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: auto;
    padding-bottom: 1.6rem;
}

.tree .node {
    cursor: pointer;
    display: flex;
    /* margin: 1.5px; */
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--gray-400);
    min-height: 4rem;
    width: calc(100% - 1rem);
    align-items: center;
    padding-left: 1rem;
    line-height: 160%;
}

/* 
   SVG를 CSS background로 사용하여 트리 토글 아이콘을 대체합니다.
   아래 SVG는 ▼ (아래 화살표) 이미지입니다.
   열림/닫힘 회전은 transform으로 변화
*/

.tree .node:before {
    content: "";
    display: flex;
    margin-right: 10px;
    width: 26px;
    height: 26px;
    vertical-align: middle;
    transition: transform 100ms;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26" fill="none"><path d="M6 10L13.1846 16.58L20.3668 10" stroke="%238A949E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center/contain;
    /* no font settings needed since arrow is image */
}

.tree .node.leaf:before {
    content: "";
    margin: 0;
    width: 0;
    height: 0;
    background: none;
}

.tree input[type="checkbox"] {
    display: none;
}

/* 닫혀 있을 때는 아이콘을 왼쪽(→) 방향으로 회전 */
.tree input[type="checkbox"]:not(:checked) ~ .node:not(.leaf):before {
    transform: rotate(-180deg);
    transition: transform 100ms;
}

/* 열려 있을 때는 자식 ul을 숨김 */
.tree input[type="checkbox"]:checked ~ ul {
    display: none;
}

.tree .tree-list {
    display: flex;
    flex-direction: column;
}

.tree .tree-list li {
    display: flex;
    align-items: center;
    min-height: 4rem;
    width: calc(100% - 4.4rem);
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 4.4rem;
}

/* input radio */
.tree .tree-list li input[type="radio"] {
    display: none;
}

.tree .tree-list li input[type="radio"] + label {
    display: flex;
    align-items: center;
    min-height: 4rem;
    position: relative;
    padding-left: 34px; /* enough for custom radio */
    cursor: pointer;
}

/* Custom radio button */
.tree .tree-list li input[type="radio"] + label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--gray-900);
    border: 2px solid var(--gray-400); /* 기본은 gray-200 */
    border-radius: 50%;
    box-sizing: border-box;
    display: block;
}

.tree .tree-list li input[type="radio"]:checked + label:before {
    border: 2px solid var(--blue-500); /* 체크 시 border는 blue */
}

.tree .tree-list li input[type="radio"]:checked + label:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--blue-500);
    border-radius: 50%;
    display: block;
}

.tree .tree-list li input[type="radio"] + label:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: transparent;
    border-radius: 50%;
    display: block;
}

/* 스크롤 커스텀 */
.tree {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) var(--gray-900);
}
.tree::-webkit-scrollbar {
    width: 8px;
}
.tree::-webkit-scrollbar-track {
    background: var(--gray-900);
}

.tree::-webkit-scrollbar-thumb {
    background: var(--gray-400);
}

.tree::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* 기존 파일 */

/* .wrap {
    overflow: auto;
    position: relative;
    border: 1px solid;
    width: 92.5vw;
    height: 92.5vh;
}

.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
}

.checkbox-group label {
    margin-left: 5px;
    vertical-align: middle;
}

.button-group {
    display: flex;
    gap: 5px;
}



.tree,
.tree ul {
    list-style: none;
}

.tree  {
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.tree .node {
    cursor: pointer;
    display: inline-block;
    /*margin: 1.5px;
}

.tree .node:before {
    content: "\25B6";
    color: black;
    display: inline-block;
    margin-right: 6px;
    transition: transform 100ms;
}

.tree .node.leaf:before {
    content: "";
    margin-left: 0;
}

.tree input[type="checkbox"] {
    display: none;
}

.tree input[type="checkbox"]:not(:checked) ~ .node:not(.leaf):before {
    transform: rotate(90deg);
    transition: transform 100ms;
}

.tree input[type="checkbox"]:checked ~ ul {
    display: none;
} */
