/* Tree structure with connecting lines */
.document-tree {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.8;
}

.tree-list {
    position: relative;
    list-style: none;
    padding-left: 1.5rem;
    margin: 0;
}

/* Vertical connector */
.tree-list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 1px;
    background: #ccc;
}

.tree-item {
    position: relative;
    padding-left: 1.5rem;
}

/* Folder styling */
.tree-item.folder > details > summary {
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
}

/* File styling */
.tree-item.file {
    color: #7f8c8d;
    margin-left: 5px;
}

/* Icons */
.tree-item .icon {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* Last item in group shouldn't have full height vertical line */
.tree-item:last-child::after {
    content: "";
    position: absolute;
    top: 0;
    left: -15px;
    height: 12px;
    width: 15px;
    background: white;
    z-index: 1;
}