/* 사이트맵 트리 전체 박스 */
.sitemap-tree-container {
    margin-top: 20px;
    margin-bottom: 100px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* 버튼 영역 */
.tree-controls { margin-bottom: 15px; }
.tree-controls button {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9em;
    margin-right: 8px;
    transition: background 0.2s;
}
.tree-controls button:hover { background: #f5f5f5; }

/* 리스트 초기화 */
.tree, .tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 자식 폴더 들여쓰기 */
.tree ul {
    padding-left: 24px;
    border-left: 1px dashed #e0e0e0; /* 세로 가이드라인 */
    margin-left: 5px;
}

/* 숨김/보임 처리 */
.nested { display: none; }
.nested.active { display: block; }

/* 📂 폴더 디자인 */
.folder-item { margin: 2px 0; }

.folder-name {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #444;
    padding: 4px 0;
    user-select: none;
}

.folder-name:hover { color: #007bff; }

/* 화살표 아이콘 */
.folder-name::before {
    content: "▶";
    font-size: 0.7em;
    margin-right: 8px;
    color: #999;
    transition: transform 0.2s;
}

.folder-name.open::before {
    transform: rotate(90deg); /* 열리면 회전 */
    color: #007bff;
}

/* 📄 파일 디자인 */
.file-item {
    margin: 2px 0;
}

.file-item a {
    text-decoration: none;
    color: #666;
    display: block;
    padding: 2px 0 2px 24px; /* 아이콘 위치만큼 들여쓰기 */
    position: relative;
    transition: color 0.2s;
}

/* 파일 아이콘 */
.file-item a::before {
    content: "•"; /* 또는 📄 */
    position: absolute;
    left: 8px;
    color: #ccc;
}

.file-item a:hover {
    color: #d6336c; /* 하이라이트 색상 */
    text-decoration: underline;
}