.tree-container {
    margin: 20px 0;
}

.tree-node {
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    margin: 2px 0;
    background-color: #f5f5f5;
    border-left: 2px solid #ccc;
    transition: all 0.2s ease;
}

    .tree-node:hover {
        background-color: #e9e9e9;
    }

    .tree-node.expanded {
        border-left: 2px solid #4CAF50;
        background-color: #f0f7f0;
    }

    .tree-node .node-label {
        display: flex;
        align-items: center;
    }

        .tree-node .node-label .icon {
            margin-right: 8px;
            transition: transform 0.2s ease;
            display: inline-block;
        }

    .tree-node.expanded > .node-label .icon {
        transform: rotate(90deg);
    }

    .tree-node .children {
        margin-left: 20px;
        display: none;
        padding-top: 4px;
    }

    .tree-node.expanded > .children {
        display: block;
    }

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #4CAF50;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.node-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.action-button {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

    .action-button:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

.add-button {
    color: #4CAF50;
}

.delete-button {
    color: #F44336;
}

.rename-button {
    color: #fcbc37;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 450px;
    border-radius: 4px;
}


    .modal-content h3 {
        margin-top: 0;
    }

    .modal-content input {
        width: 100%;
        padding: 8px;
        margin: 8px 0;
        box-sizing: border-box;
    }

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

    .modal-buttons button {
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .modal-buttons .cancel {
        background-color: #f5f5f5;
    }

    .modal-buttons .confirm {
        background-color: #4CAF50;
        color: white;
    }
