

/* Styles for the TreeView */
#tree {
    padding-top: 10px;
    min-width: 240px;
}

.tree-leaf {
    position: relative;
}

.tree-leaf-content {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tree-leaf-content:hover {
    background-color: #f3f4f6;
}

.tree-expando {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 1.2rem;
    margin-right: 8px;
    color: #6b7280;
    user-select: none;
    /* Prevents text selection */
}

.tree-expando.expanded {
    color: #1f2937;
}

.tree-leaf-text {
    flex-grow: 1;
}

.tree-child-leaves {
    margin-left: 20px;
    padding-left: 15px;
    border-left: 1px dashed #d1d5db;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.hidden {
    display: none;
}